| 1 |
titanofold |
1.1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.8.0.ebuild,v 1.2 2009/02/25 13:43:06 gentoofan23 Exp $ |
| 4 |
|
|
|
| 5 |
|
|
EAPI="4" |
| 6 |
|
|
|
| 7 |
|
|
inherit eutils |
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Perl updater client for dynamic DNS services" |
| 10 |
|
|
HOMEPAGE="http://ddclient.sourceforge.net/" |
| 11 |
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
| 12 |
|
|
|
| 13 |
|
|
LICENSE="GPL-2" |
| 14 |
|
|
SLOT="0" |
| 15 |
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
| 16 |
|
|
IUSE="hardened" |
| 17 |
|
|
|
| 18 |
|
|
RDEPEND=">=dev-lang/perl-5.1 |
| 19 |
|
|
dev-perl/Digest-SHA1 |
| 20 |
|
|
dev-perl/IO-Socket-SSL |
| 21 |
|
|
hardened? ( sys-apps/iproute2 ) |
| 22 |
|
|
" |
| 23 |
|
|
|
| 24 |
|
|
pkg_setup() { |
| 25 |
|
|
enewgroup ${PN} |
| 26 |
|
|
enewuser ${PN} -1 -1 -1 ${PN} |
| 27 |
|
|
} |
| 28 |
|
|
|
| 29 |
|
|
src_prepare() { |
| 30 |
|
|
# Remove pid line, because it is specified in /etc/init.d/ddclient |
| 31 |
|
|
ebegin "Removing PID setup from ${PN}.conf" |
| 32 |
|
|
if ! sed '/^pid/d' -i "sample-etc_${PN}.conf"; then |
| 33 |
|
|
eerror "Failed to remove pid from /etc/${PN}/${PN}.conf" |
| 34 |
|
|
fi |
| 35 |
|
|
eend $? |
| 36 |
|
|
|
| 37 |
|
|
use hardened && epatch "${FILESDIR}/iproute2.patch" |
| 38 |
|
|
|
| 39 |
|
|
epatch "${FILESDIR}/cmd-over-cfg.patch" |
| 40 |
|
|
} |
| 41 |
|
|
|
| 42 |
|
|
src_install() { |
| 43 |
|
|
dosbin ${PN} |
| 44 |
|
|
dodoc Change* COPYRIGHT README* RELEASENOTE sample* |
| 45 |
|
|
|
| 46 |
|
|
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
| 47 |
|
|
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN} |
| 48 |
|
|
keepdir /var/cache/${PN} |
| 49 |
|
|
fowners -R ${PN}:${PN} /var/cache/${PN} |
| 50 |
|
|
|
| 51 |
|
|
insinto /etc/${PN} |
| 52 |
|
|
insopts -m 0600 -o ${PN} -g ${PN} |
| 53 |
|
|
newins sample-etc_${PN}.conf ${PN}.conf |
| 54 |
|
|
newins sample-etc_${PN}.conf ${PN}.conf.sample |
| 55 |
|
|
fowners -R ${PN}:${PN} /etc/${PN} |
| 56 |
|
|
} |