aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-30 03:55:47 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-30 03:55:47 +0000
commit4599e9a80f92bc07557dffe385007389a11ed499 (patch)
treed18dc09bce5156dffa7bf3c39053f10b92a13a97 /security
parent04b7b7e434ab39b57cc3f69a77fb553bfde75057 (diff)
downloadports-4599e9a80f92bc07557dffe385007389a11ed499.tar.gz
ports-4599e9a80f92bc07557dffe385007389a11ed499.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/fakeident/Makefile5
-rw-r--r--security/fakeident/files/fakeident.sh34
2 files changed, 37 insertions, 2 deletions
diff --git a/security/fakeident/Makefile b/security/fakeident/Makefile
index 24b280844da1..18f5d6efadbf 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 000000000000..8f7f117e66ac
--- /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
+
+