diff options
author | edwin <edwin@FreeBSD.org> | 2003-01-30 11:55:47 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-01-30 11:55:47 +0800 |
commit | 479d88d417ec445c12a6d431ab87ea64bda9bccc (patch) | |
tree | 75238191779b5ede50cb2a592dc5944ef69d5e10 /security | |
parent | c04996dae40ec3d88f65b82ec1490f3ff542ac30 (diff) | |
download | freebsd-ports-graphics-479d88d417ec445c12a6d431ab87ea64bda9bccc.tar.gz freebsd-ports-graphics-479d88d417ec445c12a6d431ab87ea64bda9bccc.tar.zst freebsd-ports-graphics-479d88d417ec445c12a6d431ab87ea64bda9bccc.zip |
Maintainer update:
Updated Port: security/fakeident - rc.d script and localbase fix
PR: ports/47390
Submitted by: Dean Hollister <dean@odyssey.apana.org.au>
Diffstat (limited to 'security')
-rw-r--r-- | security/fakeident/Makefile | 5 | ||||
-rw-r--r-- | security/fakeident/files/fakeident.sh | 34 |
2 files changed, 37 insertions, 2 deletions
diff --git a/security/fakeident/Makefile b/security/fakeident/Makefile index 24b280844da..18f5d6efadb 100644 --- a/security/fakeident/Makefile +++ b/security/fakeident/Makefile @@ -7,6 +7,7 @@ PORTNAME= fakeident PORTVERSION= 1.7 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.wa.apana.org.au/~dean/sources/ \ ftp://ftp.wa.apana.org.au/pub/pc/unix/packages/ @@ -26,7 +27,7 @@ do-build: @echo "" do-install: - $(INSTALL) -m 755 -o root -g wheel $(WRKSRC)/identd $(PREFIX)/sbin - $(INSTALL) -m 755 -o root -g wheel $(WRKSRC)/fakeident.sh $(PREFIX)/etc/rc.d + $(INSTALL_SCRIPT) $(WRKSRC)/identd $(PREFIX)/sbin + $(INSTALL_SCRIPT) $(FILESDIR)/fakeident.sh $(PREFIX)/etc/rc.d .include <bsd.port.mk> diff --git a/security/fakeident/files/fakeident.sh b/security/fakeident/files/fakeident.sh new file mode 100644 index 00000000000..8f7f117e66a --- /dev/null +++ b/security/fakeident/files/fakeident.sh @@ -0,0 +1,34 @@ +#! /bin/sh +# + +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin + +# This can be changed as desired. +# The username does not need to exist anywhere in your system. + +USERNAME=nobody + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + $PREFIX/sbin/identd $USERNAME && echo -n ' fakeidentd' + ;; + +stop) + if [ -r /var/run/identd.pid ] ; then + kill -9 `cat /var/run/identd.pid` >>/dev/null 2>&1 + rm -f /var/run/identd.pid + fi + ;; + +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + + |