Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 76625 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-dns/ddclient/ddclient-3.6.6.ebuild (-17 / +10 lines)
Lines 16-48 Link Here
16
RDEPEND="dev-lang/perl"
16
RDEPEND="dev-lang/perl"
17
17
18
pkg_setup() {
18
pkg_setup() {
19
	enewgroup ddclient 460
19
	enewgroup ddclient -1
20
	enewuser  ddclient 460 /bin/false /dev/null ddclient
20
	enewuser ddclient -1 /bin/false /dev/null ddclient
21
}
21
}
22
22
23
src_unpack() {
23
src_unpack() {
24
	unpack ${A}; cd ${S}
24
	unpack ${A}
25
	cd ${S}
25
	epatch ${FILESDIR}/${PN}-mss1.diff
26
	epatch ${FILESDIR}/${PN}-mss1.diff
26
	epatch ${FILESDIR}/${PN}-daemon0inconfig.diff
27
	epatch ${FILESDIR}/${PN}-daemon0inconfig.diff
27
}
28
}
28
29
29
src_install() {
30
src_install() {
30
	dosbin ddclient || die "dosbin"
31
	dosbin ddclient || die "dosbin"
31
	insinto /etc/ddclient
32
	
32
	doins sample-etc_[c-p]*
33
	newins sample-etc_ddclient.conf ddclient.conf
34
35
	dodoc README* Change* COPYRIGHT
33
	dodoc README* Change* COPYRIGHT
34
	dodoc sample-etc_[c-p]*
36
35
37
	exeinto /etc/init.d
36
	newinitd ${FILESDIR}/ddclient.init ddclient
38
	newexe ${FILESDIR}/ddclient.init ddclient
39
37
40
	chown root:ddclient ${D}/etc/ddclient/*
38
	insinto /etc/ddclient
41
	chmod 640 /etc/ddclient/*
39
	insopts -m 0640 -g ddclient -o root
40
	newins sample-etc_ddclient.conf ddclient.conf
42
}
41
}
43
42
44
pkg_postinst() {
43
pkg_postinst() {
45
	echo
46
	einfo
44
	einfo
47
	ewarn "The files in ${ROOT}etc/ddclient will be chowned to"
45
	ewarn "The files in ${ROOT}etc/ddclient will be chowned to"
48
	ewarn "root:ddclient, and chmodded to 640:"
46
	ewarn "root:ddclient, and chmodded to 640:"
Lines 54-62 Link Here
54
	ewarn "In other words, please follow the ownership/permissions scheme"
52
	ewarn "In other words, please follow the ownership/permissions scheme"
55
	ewarn "that has been laid out in /etc/ddclient for you."
53
	ewarn "that has been laid out in /etc/ddclient for you."
56
	einfo
54
	einfo
57
	ebeep
58
	epause
59
60
	chown root:ddclient ${ROOT}/etc/ddclient/*
61
	chmod 640 ${ROOT}/etc/ddclient/*
62
}
55
}

Return to bug 76625