blob: 6bb1cfaba773009c1c141ea19a01f50bc8e1c3de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.7.0.ebuild,v 1.1 2006/09/08 00:22:30 seemant Exp $
inherit eutils
DESCRIPTION="Perl updater client for dynamic DNS services"
HOMEPAGE="http://ddclient.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND=">=dev-lang/perl-5.1
dev-perl/IO-Socket-SSL"
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 /dev/null ${PN}
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-reasonable-security.patch
sed -i ${PN} \
-e 's:$etc$program.cache:/var/cache/ddclient/$program.cache:' \
|| die "sed ${PN} failed"
# Remove pid line, because it is specified in /etc/conf.d/ddclient
sed -i sample-etc_${PN}.conf \
-e "/^pid=*/d" \
|| die "sed sample failed"
}
src_install() {
dosbin ${PN} || die "dosbin failed"
dodoc README* Change* COPYRIGHT sample*
newinitd "${FILESDIR}"/${PN}.initd ${PN}
# Determine name of sample configuration file
local sample=${PN}.conf
[[ -e /etc/${PN}/${sample} ]] && sample=${PN}-sample.conf
insinto /etc/${PN}
insopts -m 0640 -o root -g ${PN}
newins sample-etc_${PN}.conf ${sample}
insinto /etc/conf.d
insopts -m 0644 -o root -g root
newins "${FILESDIR}"/${PN}.confd ${PN}
diropts -m 0755 -o ${PN} -g ${PN}
keepdir /var/{cache,run}/${PN}
}
|