diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-02-10 07:26:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-02-10 07:26:08 +0000 |
commit | b17b872d44f7583a19544c20106c30e9959f46ec (patch) | |
tree | 226ae672ae2f3521b577b3b9b72df251d8146087 /net-misc/fakeidentd | |
parent | sed expression fix (diff) | |
download | gentoo-2-b17b872d44f7583a19544c20106c30e9959f46ec.tar.gz gentoo-2-b17b872d44f7583a19544c20106c30e9959f46ec.tar.bz2 gentoo-2-b17b872d44f7583a19544c20106c30e9959f46ec.zip |
fix pid file writing
Diffstat (limited to 'net-misc/fakeidentd')
-rw-r--r-- | net-misc/fakeidentd/ChangeLog | 5 | ||||
-rw-r--r-- | net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild | 5 | ||||
-rw-r--r-- | net-misc/fakeidentd/files/fakeidentd.rc | 6 |
3 files changed, 12 insertions, 4 deletions
diff --git a/net-misc/fakeidentd/ChangeLog b/net-misc/fakeidentd/ChangeLog index 2ec410029281..524c0d777547 100644 --- a/net-misc/fakeidentd/ChangeLog +++ b/net-misc/fakeidentd/ChangeLog @@ -1,9 +1,12 @@ # ChangeLog for net-misc/fakeidentd # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/ChangeLog,v 1.10 2003/02/03 06:59:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/ChangeLog,v 1.11 2003/02/10 07:26:08 vapier Exp $ *fakeidentd-1.7-r1 (03 Feb 2003) + 10 Feb 2003; Mike Frysinger <vapier@gentoo.org> : + Fixed the filename of the pid the script writes to. + 03 Feb 2003; Mike Frysinger <vapier@gentoo.org> : Version bump to fix init.d script #14703. diff --git a/net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild b/net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild index d83dd9c6ede4..d60da96ebf4b 100644 --- a/net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild +++ b/net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild,v 1.1 2003/02/03 06:59:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/fakeidentd-1.7-r1.ebuild,v 1.2 2003/02/10 07:25:28 vapier Exp $ # This identd is nearly perfect for a NAT box. It runs in one # process (doesn't fork()) and isnt very susceptible to DOS attack. @@ -23,6 +23,9 @@ src_unpack() { } src_compile() { + cp identd.c{,.old} + sed -e "s:identd.pid:${PN}.pid:" \ + identd.c.old > identd.c gcc identd.c -o ${PN} ${CFLAGS} || die } diff --git a/net-misc/fakeidentd/files/fakeidentd.rc b/net-misc/fakeidentd/files/fakeidentd.rc index bacd469c1140..24fdd8ecb72e 100644 --- a/net-misc/fakeidentd/files/fakeidentd.rc +++ b/net-misc/fakeidentd/files/fakeidentd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/files/fakeidentd.rc,v 1.2 2003/02/03 06:59:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/files/fakeidentd.rc,v 1.3 2003/02/10 07:25:28 vapier Exp $ depend() { need net @@ -15,6 +15,8 @@ start() { stop() { ebegin "Stopping fakeidentd" - killall fakeidentd + [ -e /var/run/fakeidentd.pid ] \ + && kill `cat /var/run/fakeidentd.pid` \ + && rm -f /var/run/fakeidentd.pid eend $? } |