summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2005-04-04 13:44:05 +0000
committerSeemant Kulleen <seemant@gentoo.org>2005-04-04 13:44:05 +0000
commit691145a67cc7a7cb5439499f9e7c9e38ddb27472 (patch)
tree3bcb078d8f139dfd8ad53ed45e73539f576948f2 /net-dns/ddclient
parentdep on new revs for oro/regexp, because they moved (diff)
downloadgentoo-2-691145a67cc7a7cb5439499f9e7c9e38ddb27472.tar.gz
gentoo-2-691145a67cc7a7cb5439499f9e7c9e38ddb27472.tar.bz2
gentoo-2-691145a67cc7a7cb5439499f9e7c9e38ddb27472.zip
more fixes (this time from flameeyes) for running ddclient daemon as non-root user. Fixes were in bug #76625, which was opened by: Giacomo Graziosi <darkssj@email.it> for the version bump
(Portage version: 1.585-cvs)
Diffstat (limited to 'net-dns/ddclient')
-rw-r--r--net-dns/ddclient/ChangeLog7
-rw-r--r--net-dns/ddclient/ddclient-3.6.6.ebuild28
2 files changed, 20 insertions, 15 deletions
diff --git a/net-dns/ddclient/ChangeLog b/net-dns/ddclient/ChangeLog
index 98df3026b8de..f6c1cd6ae7e4 100644
--- a/net-dns/ddclient/ChangeLog
+++ b/net-dns/ddclient/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dns/ddclient
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.14 2005/04/02 16:34:29 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.15 2005/04/04 13:44:05 seemant Exp $
+
+ 04 Apr 2005; Seemant Kulleen <seemant@gentoo.org> ddclient-3.6.6.ebuild:
+ more fixes (this time from flameeyes) for running ddclient daemon as
+ non-root user. Fixes were in bug #76625, which was opened by: Giacomo
+ Graziosi <darkssj@email.it> for the version bump
02 Apr 2005; Jason Wever <weeve@gentoo.org> ddclient-3.6.3.ebuild:
Stable on SPARC wrt bug #76625.
diff --git a/net-dns/ddclient/ddclient-3.6.6.ebuild b/net-dns/ddclient/ddclient-3.6.6.ebuild
index fc7f611038d9..878ea70ebbfc 100644
--- a/net-dns/ddclient/ddclient-3.6.6.ebuild
+++ b/net-dns/ddclient/ddclient-3.6.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.6.6.ebuild,v 1.1 2005/04/01 22:20:38 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.6.6.ebuild,v 1.2 2005/04/04 13:44:05 seemant Exp $
inherit eutils
@@ -16,29 +16,32 @@ IUSE=""
RDEPEND="dev-lang/perl"
pkg_setup() {
- enewgroup ddclient 460
- enewuser ddclient 460 /bin/false /dev/null ddclient
+ enewgroup ddclient -1
+ enewuser ddclient -1 /bin/false /dev/null ddclient
}
src_unpack() {
unpack ${A}; cd ${S}
epatch ${FILESDIR}/${PN}-mss1.diff
epatch ${FILESDIR}/${PN}-daemon0inconfig.diff
+
+ sed -i 's:/var/run/ddclient.pid:/var/run/ddclient/ddclient.pid:' \
+ sample-etc_ddclient.conf
}
src_install() {
dosbin ddclient || die "dosbin"
- insinto /etc/ddclient
- doins sample-etc_[c-p]*
- newins sample-etc_ddclient.conf ddclient.conf
-
dodoc README* Change* COPYRIGHT
+ dodoc sample-etc_[c-p]*
- exeinto /etc/init.d
- newexe ${FILESDIR}/ddclient.init ddclient
+ newinitd ${FILESDIR}/ddclient.init ddclient
+
+ insinto /etc/ddclient
+ insopts -m 0640 -g ddclient -o root
+ newins sample-etc_ddclient.conf ddclient.conf
- chown root:ddclient ${D}/etc/ddclient/*
- chmod 640 /etc/ddclient/*
+ diropts -m 0755 -g ddclient -o ddclient
+ keepdir /var/run/ddclient
}
pkg_postinst() {
@@ -56,7 +59,4 @@ pkg_postinst() {
einfo
ebeep
epause
-
- chown root:ddclient ${ROOT}/etc/ddclient/*
- chmod 640 ${ROOT}/etc/ddclient/*
}