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

Collapse All | Expand All

(-)ddclient-3.6.6.ebuild (-17 / +17 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.6.6.ebuild,v 1.8 2005/08/23 21:58:23 dragonheart Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.6.7.ebuild,v 1.8 2005/08/23 21:58:23 dragonheart Exp $
4
4
5
inherit eutils
5
inherit eutils
6
6
Lines 22-29 Link Here
22
22
23
src_unpack() {
23
src_unpack() {
24
	unpack ${A}; cd ${S}
24
	unpack ${A}; cd ${S}
25
	epatch ${FILESDIR}/${PN}-mss1.diff
25
	epatch ${FILESDIR}/${P}-combined.patch
26
	epatch ${FILESDIR}/${PN}-daemon0inconfig.diff
27
26
28
	sed -i 's:/var/run/ddclient.pid:/var/run/ddclient/ddclient.pid:' \
27
	sed -i 's:/var/run/ddclient.pid:/var/run/ddclient/ddclient.pid:' \
29
		sample-etc_ddclient.conf
28
		sample-etc_ddclient.conf
Lines 45-62 Link Here
45
}
44
}
46
45
47
pkg_postinst() {
46
pkg_postinst() {
48
	echo
47
	local conf perms owner group
49
	einfo
48
50
	ewarn "The files in ${ROOT}etc/ddclient *NEED* be chowned to"
49
	conf="/etc/ddclient/ddclient.conf"
51
	ewarn "root:ddclient, and chmodded to 640:"
50
	perms=`stat -c %a $conf`
52
	ewarn "(user/group read; user write)"
51
	owner=`stat -c %U $conf`
53
	ewarn "Please run etc-update and update your initscript to take"
52
	group=`stat -c %G $conf`
54
	ewarn "advantage of non-root permissions on the daemon"
53
55
	ewarn "Further, please note that your config files must be owned"
54
	if [ $owner != "root" -o $group != "ddclient" -o $perms != "640" ]; then
56
	ewarn "by the user ddclient or have group ownership by ddclient."
55
		ewarn "It is recommended that /etc/ddclient/ddclient.conf be chown'ed"
57
	ewarn "The initscript will NOT run unless you do this.  Please see"
56
		ewarn "root:ddclient with '640' permissions if you want to run the"
58
	ewarn "bug #88225"
57
		ewarn "ddclient initscript at startup. You can use the following"
59
	einfo
58
		ewarn "commands to do this:"
60
	ebeep
59
		ewarn "	chown root:ddclient /etc/ddclient/ddclient.conf"
61
	epause
60
		ewarn "	chmod 640 /etc/ddclient/ddclient.conf"
61
	fi
62
}
62
}

Return to bug 117124