Use new style start/stop rc.d script

Unrestrict port since we are able to distribute crypto
This commit is contained in:
Andrey A. Chernov 2000-07-18 03:20:08 +00:00
parent 463306f7e2
commit ad3c55ffdd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30764
2 changed files with 20 additions and 2 deletions

View file

@ -17,7 +17,6 @@ MAINTAINER= green@FreeBSD.org
ALL_TARGET= cfs
MAN1= cattach.1 cdetach.1 cmkdir.1 cpasswd.1 cfssh.1
MAN8= ccat.8 cfsd.8 cname.8
RESTRICTED= "contains crypto code"
NO_WRKSUBDIR= yes
@ -30,6 +29,6 @@ do-install:
${INSTALL_MAN} ${MAN8} ${PREFIX}/man/man8; \
${MKDIR} ${PREFIX}/share/doc/cfs; \
${INSTALL_DATA} README.install notes.ms ${PREFIX}/share/doc/cfs; \
${INSTALL_SCRIPT} cfsd.sh ${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${FILESDIR}/cfsd.sh ${PREFIX}/etc/rc.d
.include <bsd.port.mk>

View file

@ -0,0 +1,19 @@
#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case "$1" in
start)
[ -x ${PREFIX}/sbin/cfsd ] && ${PREFIX}/sbin/cfsd > /dev/null 2>&1 && echo -n ' cfsd'
;;
stop)
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0