1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

Maintainer update:

Updated Port: security/fakeident - rc.d script and localbase fix

PR:		ports/47390
Submitted by:	Dean Hollister <dean@odyssey.apana.org.au>
This commit is contained in:
Edwin Groothuis 2003-01-30 03:55:47 +00:00
parent 04b7b7e434
commit 4599e9a80f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74234
2 changed files with 37 additions and 2 deletions

View File

@ -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>

View File

@ -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