mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
As threatened on freebsd-ports: all startup scripts know about the two
options `start' and `stop' now (unless I have forgotten any). This allows us to call the scripts from /etc/rc.shutdown with the correct option. The (42 or so) ports that already DTRT before are unchanged.
This commit is contained in:
parent
01ab6da99c
commit
546041ba31
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30229
@ -34,9 +34,7 @@ post-install:
|
||||
.endfor
|
||||
.if !exists(${PREFIX}/etc/rc.d/rplayd.sh)
|
||||
@${ECHO} "===> Installing ${PREFIX}/etc/rc.d/rplayd.sh startup file"
|
||||
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/rplayd.sh
|
||||
@${ECHO} "[ -x ${PREFIX}/sbin/rplayd ] && ( ${PREFIX}/sbin/rplayd & ) && ${ECHO} -n ' rplayd'" >> ${PREFIX}/etc/rc.d/rplayd.sh
|
||||
@${CHMOD} 751 ${PREFIX}/etc/rc.d/rplayd.sh
|
||||
@${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd.sh
|
||||
.endif
|
||||
.if !exists(${PREFIX}/etc/rplay.hosts)
|
||||
@${ECHO} localhost > ${PREFIX}/etc/rplay.hosts
|
||||
|
20
audio/rplay/files/rplayd.sh
Normal file
20
audio/rplay/files/rplayd.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/rplayd ] && ( ${PREFIX}/sbin/rplayd & ) && echo -n ' rplayd'
|
||||
;;
|
||||
stop)
|
||||
killall rplayd && echo -n ' rplayd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -2,13 +2,26 @@
|
||||
# script to create the lock directory in case it was
|
||||
# removed in /etc/rc
|
||||
#echo -n ' Xemacs'
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
# nothing to do
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -37,11 +37,8 @@ post-extract:
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/conserver.sh ]; then \
|
||||
${ECHO} "Installing ${PREFIX}/etc/rc.d/conserver.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${ECHO} "if [ -x ${PREFIX}/sbin/conserver -a -f ${PREFIX}/etc/conserver.cf ]; then" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${ECHO} " ${PREFIX}/sbin/conserver -d -n ; ${ECHO} -n ' conserver'" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${ECHO} "fi" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/conserver.sh \
|
||||
${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
22
comms/conserver/files/conserver.sh
Normal file
22
comms/conserver/files/conserver.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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)
|
||||
if [ -x ${PREFIX}/sbin/conserver -a -f ${PREFIX}/etc/conserver.cf ]; then
|
||||
${PREFIX}/sbin/conserver -d -n ; echo -n ' conserver'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall conserver && echo -n ' conserver'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
22
comms/conserver/files/conserver.sh.in
Normal file
22
comms/conserver/files/conserver.sh.in
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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)
|
||||
if [ -x ${PREFIX}/sbin/conserver -a -f ${PREFIX}/etc/conserver.cf ]; then
|
||||
${PREFIX}/sbin/conserver -d -n ; echo -n ' conserver'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall conserver && echo -n ' conserver'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -4,6 +4,20 @@
|
||||
# server: /usr/local/sbin/faxsetup
|
||||
# modems: /usr/local/sbin/faxaddmodem
|
||||
# incoming calls: /etc/ttys
|
||||
if [ -x /usr/local/sbin/faxq ]; then
|
||||
/usr/local/sbin/faxq && echo -n ' hylafax'
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/faxq ]; then
|
||||
/usr/local/sbin/faxq && echo -n ' hylafax'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall faxq && echo -n ' hylafax'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -20,9 +20,8 @@ MAN1= qpage.1
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/qpage.sh ]; then \
|
||||
${ECHO} "Install ${PREFIX}/etc/rc.d/qpage.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/qpage.sh; \
|
||||
${ECHO} "[ -x ${PREFIX}/bin/qpage ] && ${PREFIX}/bin/qpage -q10 && ${ECHO} -n ' qpage'" >> ${PREFIX}/etc/rc.d/qpage.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/qpage.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/qpage.sh \
|
||||
${PREFIX}/etc/rc.d/qpage.sh \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
20
comms/qpage/files/qpage.sh
Normal file
20
comms/qpage/files/qpage.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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}/bin/qpage ] && ${PREFIX}/bin/qpage -q10 && echo -n ' qpage'
|
||||
;;
|
||||
stop)
|
||||
killall qpage && echo -n ' qpage'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -44,9 +44,8 @@ post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/rc.d
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/msql2.sh ]; then \
|
||||
${ECHO} "Installing ${PREFIX}/etc/rc.d/msql2.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/msql2.sh; \
|
||||
${ECHO} "[ -x ${PREFIX}/bin/msql2d ] && su -l msql -c 'exec ${PREFIX}/bin/msql2d' > /dev/null 2>&1 & && ${ECHO} -n ' msql2'" >> ${PREFIX}/etc/rc.d/msql2.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/msql2.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/msql2d.sh \
|
||||
${PREFIX}/etc/rc.d/msql2d.sh; \
|
||||
fi
|
||||
.if !defined(BATCH)
|
||||
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
|
||||
|
20
databases/msql/files/msql2.sh
Normal file
20
databases/msql/files/msql2.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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}/bin/msql2d ] && su -l msql -c 'exec ${PREFIX}/bin/msql2d' > /dev/null 2>&1 & && echo -n ' msql2'
|
||||
;;
|
||||
stop)
|
||||
killall msql2d && echo -n ' msql2d'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -44,9 +44,8 @@ post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/rc.d
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/msql2.sh ]; then \
|
||||
${ECHO} "Installing ${PREFIX}/etc/rc.d/msql2.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/msql2.sh; \
|
||||
${ECHO} "[ -x ${PREFIX}/bin/msql2d ] && su -l msql -c 'exec ${PREFIX}/bin/msql2d' > /dev/null 2>&1 & && ${ECHO} -n ' msql2'" >> ${PREFIX}/etc/rc.d/msql2.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/msql2.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/msql2d.sh \
|
||||
${PREFIX}/etc/rc.d/msql2d.sh; \
|
||||
fi
|
||||
.if !defined(BATCH)
|
||||
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
|
||||
|
20
databases/msql3/files/msql2.sh
Normal file
20
databases/msql3/files/msql2.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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}/bin/msql2d ] && su -l msql -c 'exec ${PREFIX}/bin/msql2d' > /dev/null 2>&1 & && echo -n ' msql2'
|
||||
;;
|
||||
stop)
|
||||
killall msql2d && echo -n ' msql2d'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -13,6 +13,6 @@ case "$1" in
|
||||
echo ""
|
||||
echo "Usage: `basename $0` { start | stop }"
|
||||
echo ""
|
||||
exit 1
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -26,9 +26,7 @@ do-install:
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
|
||||
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
${ECHO} "[ -x \"${PREFIX}/sbin/dhid\" -a -f \"${PREFIX}/etc/dhid.conf\" ] && ${PREFIX}/sbin/dhid > /dev/null && ${ECHO} -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhid.sh ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
fi;
|
||||
@${ECHO} "--------------------------------------------------------------------------"
|
||||
@${ECHO} "Before dhid can run, you will need to register with a DHIS provider."
|
||||
|
20
dns/dhid/files/dhid.sh
Normal file
20
dns/dhid/files/dhid.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/dhid" -a -f "${PREFIX}/etc/dhid.conf" ] && ${PREFIX}/sbin/dhid > /dev/null && echo -n ' dhid'
|
||||
;;
|
||||
stop)
|
||||
killall dhid && echo -n ' dhid'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,10 +1,21 @@
|
||||
#!/bin/sh
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,10 +1,21 @@
|
||||
#!/bin/sh
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,10 +1,21 @@
|
||||
#!/bin/sh
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,10 +1,21 @@
|
||||
#!/bin/sh
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -152,16 +152,7 @@ post-install:
|
||||
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
||||
if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} '#${ECHO} -n " Mule"' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'if [ -d /var/run/emacs/lock ]; then' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' rm -f /var/run/emacs/lock/*' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} "else" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " mkdir -p /var/run/emacs/lock" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} "fi" >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} "${CHMOD} 1777 /var/run/emacs/lock${lockdir}" >> ${STARTUP_SCRIPT} ; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT} ; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/mule.sh ${STARTUPSCRIPT}; \
|
||||
fi
|
||||
|
||||
post-package:
|
||||
|
21
editors/mule-common/files/mule.sh
Normal file
21
editors/mule-common/files/mule.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -2,13 +2,25 @@
|
||||
# script to create the lock directory in case it was
|
||||
# removed in /etc/rc
|
||||
#echo -n ' Xemacs'
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -2,13 +2,25 @@
|
||||
# script to create the lock directory in case it was
|
||||
# removed in /etc/rc
|
||||
#echo -n ' Xemacs'
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -2,13 +2,25 @@
|
||||
# script to create the lock directory in case it was
|
||||
# removed in /etc/rc
|
||||
#echo -n ' Xemacs'
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -2,13 +2,25 @@
|
||||
# script to create the lock directory in case it was
|
||||
# removed in /etc/rc
|
||||
#echo -n ' Xemacs'
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
# delete any junk which may have been left around
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
# can always do this
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -2,7 +2,18 @@
|
||||
|
||||
kmod=@@PREFIX@@/modules/rtc.ko
|
||||
|
||||
if [ -x $kmod ]; then
|
||||
echo -n ' rtc'
|
||||
kldload $kmod
|
||||
fi
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $kmod ]; then
|
||||
echo -n ' rtc'
|
||||
kldload $kmod
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
kldunload $kmod && echo -n ' rtc'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -32,9 +32,8 @@ do-install:
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/bnetd.sh ]; then \
|
||||
${ECHO} "Installing ${PREFIX}/etc/rc.d/bnetd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/bnetd.sh; \
|
||||
${ECHO} "cd ${PREFIX}; [ -x sbin/bnetd -a -f bnetd/conf/bnetd.conf ] && sbin/bnetd -c bnetd/conf/bnetd.conf > /dev/null && ${ECHO} -n ' bnetd'" >> ${PREFIX}/etc/rc.d/bnetd.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/bnetd.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/bnetd.sh \
|
||||
${PREFIX}/etc/rc.d/bnetd.sh; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
20
games/bnetd/files/bnetd.sh
Normal file
20
games/bnetd/files/bnetd.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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)
|
||||
cd ${PREFIX}; [ -x sbin/bnetd -a -f bnetd/conf/bnetd.conf ] && sbin/bnetd -c bnetd/conf/bnetd.conf > /dev/null && echo -n ' bnetd'
|
||||
;;
|
||||
stop)
|
||||
killall bnetd && echo -n ' bnetd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -32,9 +32,10 @@ do-extract:
|
||||
|
||||
do-configure:
|
||||
@ ${CP} ${FILESDIR}/readme.port ${WRKSRC}
|
||||
@ ${CP} ${FILESDIR}/quakeserver.sh ${WRKSRC}
|
||||
@ ${CP} ${FILESDIR}/qserver.sh ${WRKSRC}
|
||||
@ ${CP} ${FILESDIR}/stopserver.sh ${WRKSRC}
|
||||
@ ${SETENV} ${MAKE_ENV} ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme.port ${WRKSRC}/qserver.sh ${WRKSRC}/stopserver.sh
|
||||
@ ${SETENV} ${MAKE_ENV} ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme.port ${WRKSRC}/quakeserver.sh ${WRKSRC}/qserver.sh ${WRKSRC}/stopserver.sh
|
||||
|
||||
do-install:
|
||||
@ ${MKDIR} ${PREFIX}/quakeserver
|
||||
@ -43,6 +44,7 @@ do-install:
|
||||
${INSTALL} -c -o nobody -g nobody -m 0500 ${WRKSRC}/unixded ${PREFIX}/quakeserver
|
||||
${INSTALL_DATA} ${WRKSRC}/readme.unixded ${PREFIX}/quakeserver
|
||||
${INSTALL_DATA} ${WRKSRC}/readme.port ${PREFIX}/quakeserver
|
||||
${INSTALL_SCRIPT} -m 0750 ${WRKSRC}/quakeserver.sh ${PREFIX}/etc/rc.d
|
||||
${INSTALL} -c -o nobody -g nobody -m 0500 ${WRKSRC}/qserver.sh ${PREFIX}/quakeserver
|
||||
${INSTALL} -c -o nobody -g nobody -m 0500 ${WRKSRC}/stopserver.sh ${PREFIX}/quakeserver
|
||||
@ ${RM} -f ${PREFIX}/quakeserver/quakeserver.in
|
||||
@ -50,15 +52,6 @@ do-install:
|
||||
${TOUCH} ${PREFIX}/quakeserver/quakeserver.log
|
||||
@ ${CHMOD} 700 ${PREFIX}/quakeserver/quakeserver.in ${PREFIX}/quakeserver/quakeserver.log
|
||||
@ ${CHOWN} -R nobody.nobody ${PREFIX}/quakeserver
|
||||
@ ${ECHO} "Installing ${PREFIX}/etc/rc.d/quakeserver.sh startup script"
|
||||
@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${ECHO} "if [ -x ${PREFIX}/quakeserver/unixded ]" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${ECHO} " su nobody -c ${PREFIX}/quakeserver/qserver.sh && ${ECHO} -n ' quakeserver'" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
@ ${CHMOD} 750 ${PREFIX}/etc/rc.d/quakeserver.sh
|
||||
.if !defined(BATCH)
|
||||
@ /usr/bin/more -e ${PREFIX}/quakeserver/readme.port
|
||||
.endif
|
||||
|
21
games/quakeserver/files/quakeserver.sh
Normal file
21
games/quakeserver/files/quakeserver.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x %%PREFIX%%/quakeserver/unixded ]
|
||||
then
|
||||
su nobody -c %%PREFIX%%/quakeserver/qserver.sh \
|
||||
&& echo -n ' quakeserver'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
su nobody -c %%PREFIX%%/quakeserver/qserver.sh && echo -n ' quakeserver'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
[ -x /usr/local/tetrinet-x/tetrix.freebsd ] && cd /usr/local/tetrinet-x && \
|
||||
tetrix.freebsd > /dev/null && echo -n ' tetrinet-x'
|
||||
|
||||
tetrixdir=/usr/local/tetrinet-x
|
||||
tetrix=tetrix.freebsd
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x ${tetrixdir}/${tetrix} ] && cd ${tetrixdir} && \
|
||||
${tetrixdir}/${tetrix} > /dev/null && echo -n ' tetrinet-x'
|
||||
;;
|
||||
stop)
|
||||
killall ${tetrix} && echo -n ' tetrinet-x'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -1,5 +1,18 @@
|
||||
#!/bin/sh
|
||||
[ -x /usr/local/uox3/uox3 ] && \
|
||||
cd /usr/local/uox3 && \
|
||||
/usr/local/uox3/uox3 > /usr/local/uox3/stdout.log & && \
|
||||
echo -n ' uox3'
|
||||
|
||||
uox3dir=/usr/local/uox3
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x ${uox3dir}/uox3 ] && \
|
||||
cd ${uox3dir} && \
|
||||
uox3 > ${uox3dir}/stdout.log & && \
|
||||
echo -n ' uox3'
|
||||
stop)
|
||||
killall uox3 && echo -n ' uox3'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -50,10 +50,7 @@ do-install:
|
||||
post-install:
|
||||
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} "[ -f ${PREFIX}/etc/ircd/ircd.conf ] && ${PREFIX}/sbin/ircd && ${ECHO} -n ' ircd'" >> ${STARTUP_SCRIPT} ; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT} ; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/ircd.sh ${STARTUP_SCRIPT};\
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
15
irc/irc/files/ircd.sh
Normal file
15
irc/irc/files/ircd.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -f %%PREFIX%%/etc/ircd/ircd.conf ] && %%PREFIX%%/sbin/ircd && echo -n ' ircd'
|
||||
;;
|
||||
stop)
|
||||
killall ircd && echo -n ' ircd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,4 +1,17 @@
|
||||
#!/bin/sh
|
||||
[ -x /usr/local/sbin/ircd ] \
|
||||
&& /usr/local/sbin/ircd >/dev/null 2>&1 \
|
||||
&& echo -n " ircd"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x /usr/local/sbin/ircd ] \
|
||||
&& /usr/local/sbin/ircd >/dev/null 2>&1 \
|
||||
&& echo -n " ircd"
|
||||
stop)
|
||||
killall ircd && echo -n ' ircd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,10 +1,23 @@
|
||||
#!/bin/sh
|
||||
canna=@PREFIX@/sbin/cannaserver
|
||||
if [ -f $canna ]; then
|
||||
rm -f /var/run/canna/Canna.pid
|
||||
mkdir -p /var/run/canna
|
||||
touch /var/log/CANNA0msgs
|
||||
chown bin:bin /var/run/canna /var/log/CANNA0msgs
|
||||
echo -n ' Canna'
|
||||
$canna
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f $canna ]; then
|
||||
rm -f /var/run/canna/Canna.pid
|
||||
mkdir -p /var/run/canna
|
||||
touch /var/log/CANNA0msgs
|
||||
chown bin:bin /var/run/canna /var/log/CANNA0msgs
|
||||
echo -n ' Canna'
|
||||
$canna
|
||||
fi
|
||||
stop)
|
||||
killall $canna && echo -n ' Canna'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -145,29 +145,41 @@ POST-INSTALL)
|
||||
if [ ! -f ${startup_script} ]; then
|
||||
echo "Installing ${startup_script} startup file.";
|
||||
echo '#!/bin/sh' > ${startup_script};
|
||||
echo "wnn=${wnnserver}" >> ${startup_script};
|
||||
echo 'if [ -x $wnn ]; then' >> ${startup_script};
|
||||
echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script};
|
||||
echo ' if [ $? = 255 ]; then' >> ${startup_script};
|
||||
echo " rm -f ${wnn_socket}" >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' $wnn' >> ${startup_script};
|
||||
echo 'case $1 in' >> ${startup_script};
|
||||
echo 'start)' >> ${startup_script};
|
||||
echo " wnn=${wnnserver}" >> ${startup_script};
|
||||
echo ' if [ -x $wnn ]; then' >> ${startup_script};
|
||||
echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script};
|
||||
echo ' if [ $? = 255 ]; then' >> ${startup_script};
|
||||
echo " rm -f ${wnn_socket}" >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' $wnn' >> ${startup_script};
|
||||
echo " fi" >> ${startup_script};
|
||||
echo " fi" >> ${startup_script};
|
||||
echo "fi" >> ${startup_script};
|
||||
if [ $1 = zh-Wnn-4.2 ]; then
|
||||
wnnserver=${PKG_PREFIX}/bin/cWnn4/tserver
|
||||
wnn_lang=zh_TW
|
||||
wnn_socket=/tmp/td_sockV4
|
||||
echo "wnn=${wnnserver}" >> ${startup_script};
|
||||
echo 'if [ -x $wnn ]; then' >> ${startup_script};
|
||||
echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script};
|
||||
echo ' if [ $? = 255 ]; then' >> ${startup_script};
|
||||
echo " rm -f ${wnn_socket}" >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' $wnn' >> ${startup_script};
|
||||
echo " wnn=${wnnserver}" >> ${startup_script};
|
||||
echo ' if [ -x $wnn ]; then' >> ${startup_script};
|
||||
echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script};
|
||||
echo ' if [ $? = 255 ]; then' >> ${startup_script};
|
||||
echo " rm -f ${wnn_socket}" >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' $wnn' >> ${startup_script};
|
||||
echo " fi" >> ${startup_script};
|
||||
echo " fi" >> ${startup_script};
|
||||
echo "fi" >> ${startup_script};
|
||||
fi
|
||||
echo ' ;;' >> ${startup_script};
|
||||
echo 'stop)' >> ${startup_script};
|
||||
echo ' killall $wnn' >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' ;;' >> ${startup_script};
|
||||
echo '*)' >> ${startup_script};
|
||||
echo ' echo "Usage: `basename $0` {start|stop}" >&2' >> ${startup_script};
|
||||
echo ' ;;' >> ${startup_script};
|
||||
echo 'esac' >> ${startup_script};
|
||||
echo 'exit 0' >> ${startup_script};
|
||||
chmod 755 ${startup_script};
|
||||
chown bin.bin ${startup_script};
|
||||
fi
|
||||
|
@ -173,10 +173,22 @@ POST-INSTALL)
|
||||
echo "Installing ${startup_script} startup file."
|
||||
echo '#!/bin/sh' > ${startup_script};
|
||||
echo "wnn=${wnnserver}" >> ${startup_script};
|
||||
echo 'if [ -f $wnn ]; then' >> ${startup_script};
|
||||
echo 'case $1 in' >> ${startup_script};
|
||||
echo 'start)' >> ${startup_script};
|
||||
echo ' if [ -f $wnn ]; then' >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' $wnn' >> ${startup_script};
|
||||
echo " fi" >> ${startup_script};
|
||||
echo ' ;;' >> ${startup_script};
|
||||
echo 'stop)' >> ${startup_script};
|
||||
echo ' killall $wnn' >> ${startup_script};
|
||||
echo " echo -n ' ${wnnname}'" >> ${startup_script};
|
||||
echo ' $wnn' >> ${startup_script};
|
||||
echo "fi" >> ${startup_script};
|
||||
echo ' ;;' >> ${startup_script};
|
||||
echo '*)' >> ${startup_script};
|
||||
echo ' echo "Usage: `basename $0` {start|stop}" >&2' >> ${startup_script};
|
||||
echo ' ;;' >> ${startup_script};
|
||||
echo 'esac' >> ${startup_script};
|
||||
echo 'exit 0' >> ${startup_script};
|
||||
chmod 755 ${startup_script}
|
||||
chown bin.bin ${startup_script}
|
||||
fi
|
||||
|
@ -1,10 +1,23 @@
|
||||
#!/bin/sh
|
||||
canna=@PREFIX@/sbin/cannaserver
|
||||
if [ -f $canna ]; then
|
||||
rm -f /var/run/canna/Canna.pid
|
||||
mkdir -p /var/run/canna
|
||||
touch /var/log/CANNA0msgs
|
||||
chown bin:bin /var/run/canna /var/log/CANNA0msgs
|
||||
echo -n ' Canna'
|
||||
$canna
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f $canna ]; then
|
||||
rm -f /var/run/canna/Canna.pid
|
||||
mkdir -p /var/run/canna
|
||||
touch /var/log/CANNA0msgs
|
||||
chown bin:bin /var/run/canna /var/log/CANNA0msgs
|
||||
echo -n ' Canna'
|
||||
$canna
|
||||
fi
|
||||
stop)
|
||||
killall $canna && echo -n ' Canna'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,10 +1,23 @@
|
||||
#!/bin/sh
|
||||
canna=@PREFIX@/sbin/cannaserver
|
||||
if [ -f $canna ]; then
|
||||
rm -f /var/run/canna/Canna.pid
|
||||
mkdir -p /var/run/canna
|
||||
touch /var/log/CANNA0msgs
|
||||
chown bin:bin /var/run/canna /var/log/CANNA0msgs
|
||||
echo -n ' Canna'
|
||||
$canna
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f $canna ]; then
|
||||
rm -f /var/run/canna/Canna.pid
|
||||
mkdir -p /var/run/canna
|
||||
touch /var/log/CANNA0msgs
|
||||
chown bin:bin /var/run/canna /var/log/CANNA0msgs
|
||||
echo -n ' Canna'
|
||||
$canna
|
||||
fi
|
||||
stop)
|
||||
killall $canna && echo -n ' Canna'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,6 +1,18 @@
|
||||
#!/bin/sh
|
||||
if [ -f /usr/local/libexec/ebw3d \
|
||||
-a -f /usr/local/etc/ebw3d.conf ]; then
|
||||
/usr/local/libexec/ebw3d > /var/log/ebw3d.log 2>&1 &
|
||||
echo -n ' ebw3d'
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f /usr/local/libexec/ebw3d \
|
||||
-a -f /usr/local/etc/ebw3d.conf ]; then
|
||||
/usr/local/libexec/ebw3d > /var/log/ebw3d.log 2>&1 &
|
||||
echo -n ' ebw3d'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall ebw3d && echo -n ' ebw3d'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
@ -34,22 +34,7 @@ post-install:
|
||||
@${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL
|
||||
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'virecovery=`${ECHO} /var/tmp/elv_*`' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'if [ "$$virecovery" != '"'/var/tmp/elv_*' ]; then" \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ${ECHO} 'Recovering ja-elvis editor sessions'" \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' for i in $$virecovery; do' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ${PREFIX}/bin/elvprsv "'$$i' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' done' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'fi' >> ${STARTUP_SCRIPT}; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT}; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/ja-elvis.sh ${STARTUP_SCRIPT};\
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
25
japanese/elvis/files/ja-elvis.sh
Normal file
25
japanese/elvis/files/ja-elvis.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/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)
|
||||
virecovery=`echo /var/tmp/elv_*`
|
||||
if [ "$virecovery" != '/var/tmp/elv_*' ]; then
|
||||
echo 'Recovering ja-elvis editor sessions'
|
||||
for i in $$virecovery; do
|
||||
${PREFIX}/bin/elvprsv "$i"
|
||||
done
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,20 +1,40 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /usr/local/vje30/.version ] \
|
||||
&& grep -qw 'FREE TRIAL VERSION' /usr/local/vje30/.version \
|
||||
&& [ X"$1" != X"-f" ]; then
|
||||
echo ""
|
||||
echo "esecanna:"
|
||||
echo " Using VJE-Delta 3.0 trial, it is unable to connect to vjed on startup."
|
||||
echo " Please execute \`$0 -f' manually"
|
||||
echo " after once you run vje."
|
||||
exit
|
||||
fi
|
||||
|
||||
esecannaserver="!!PREFIX!!/sbin/esecannaserver"
|
||||
|
||||
if [ -x $esecannaserver ]; then
|
||||
rm -f /tmp/.iroha_unix/IROHA
|
||||
echo -n ' esecannai: '
|
||||
$esecannaserver
|
||||
fi
|
||||
case "$1" in
|
||||
restart)
|
||||
if [ -x $esecannaserver ]; then
|
||||
rm -f /tmp/.iroha_unix/IROHA
|
||||
echo -n ' esecannai: '
|
||||
$esecannaserver
|
||||
fi
|
||||
;;
|
||||
start)
|
||||
if [ -f !!PREFIX!!/vje30/.version ] \
|
||||
&& grep -qw 'FREE TRIAL VERSION' !!PREFIX!!/vje30/.version \
|
||||
&& [ X"$1" != X"restart" ]; then
|
||||
echo ""
|
||||
echo "esecanna:"
|
||||
echo " Using VJE-Delta 3.0 trial, it is unable to connect to vjed on startup."
|
||||
echo " Please execute \`$0 restart' manually"
|
||||
echo " after once you run vje."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -x $esecannaserver ]; then
|
||||
rm -f /tmp/.iroha_unix/IROHA
|
||||
echo -n ' esecannai: '
|
||||
$esecannaserver
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall $esecannaserver && echo -n ' esecannai'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {restart|start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -16,10 +16,24 @@
|
||||
# environment variable in !!PG_PATH!!/.profile
|
||||
#
|
||||
|
||||
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
|
||||
case "$1" in
|
||||
start)
|
||||
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
|
||||
|
||||
[ -x !!PG_PATH!!/bin/postmaster ] && {
|
||||
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
|
||||
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
|
||||
echo -n ' PostgreSQL'
|
||||
}
|
||||
[ -x !!PG_PATH!!/bin/postmaster ] && {
|
||||
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
|
||||
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
|
||||
echo -n ' PostgreSQL'
|
||||
}
|
||||
;;
|
||||
stop)
|
||||
# XXX some pgsql user should check this --tg
|
||||
killall !!PG_PATH!!/bin/postmaster
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -16,10 +16,24 @@
|
||||
# environment variable in !!PG_PATH!!/.profile
|
||||
#
|
||||
|
||||
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
|
||||
case "$1" in
|
||||
start)
|
||||
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
|
||||
|
||||
[ -x !!PG_PATH!!/bin/postmaster ] && {
|
||||
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
|
||||
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
|
||||
echo -n ' PostgreSQL'
|
||||
}
|
||||
[ -x !!PG_PATH!!/bin/postmaster ] && {
|
||||
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
|
||||
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
|
||||
echo -n ' PostgreSQL'
|
||||
}
|
||||
;;
|
||||
stop)
|
||||
# XXX some pgsql user should check this --tg
|
||||
killall !!PG_PATH!!/bin/postmaster
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -16,10 +16,24 @@
|
||||
# environment variable in !!PG_PATH!!/.profile
|
||||
#
|
||||
|
||||
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
|
||||
case "$1" in
|
||||
start)
|
||||
[ -d !!PG_PATH!!/lib ] && /sbin/ldconfig -m !!PG_PATH!!/lib
|
||||
|
||||
[ -x !!PG_PATH!!/bin/postmaster ] && {
|
||||
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
|
||||
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
|
||||
echo -n ' PostgreSQL'
|
||||
}
|
||||
[ -x !!PG_PATH!!/bin/postmaster ] && {
|
||||
su -l !!PGSQL_UID!! -c 'exec !!PG_PATH!!/bin/postmaster -i -S -o -F \
|
||||
-D!!PG_PATH!!/data > !!PG_PATH!!/errlog'
|
||||
echo -n ' PostgreSQL'
|
||||
}
|
||||
;;
|
||||
stop)
|
||||
# XXX some pgsql user should check this --tg
|
||||
killall !!PG_PATH!!/bin/postmaster
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -30,13 +30,7 @@ do-configure:
|
||||
post-install:
|
||||
if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'sj3=${PREFIX}/bin/sj3serv' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} 'if [ -f $$sj3 ]; then' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} ' $$sj3' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} "fi" >> ${STARTUP_SCRIPT} ; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT} ; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/sj3.sh ${STARTUP_SCRIPT}; \
|
||||
fi
|
||||
${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
||||
|
22
japanese/sj3-lib/files/sj3.sh.in
Normal file
22
japanese/sj3-lib/files/sj3.sh.in
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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)
|
||||
sj3=${PREFIX}/bin/sj3serv
|
||||
if [ -f $sj3 ]; then
|
||||
$sj3
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -30,13 +30,7 @@ do-configure:
|
||||
post-install:
|
||||
if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'sj3=${PREFIX}/bin/sj3serv' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} 'if [ -f $$sj3 ]; then' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} ' $$sj3' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} "fi" >> ${STARTUP_SCRIPT} ; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT} ; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/sj3.sh ${STARTUP_SCRIPT}; \
|
||||
fi
|
||||
${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
||||
|
22
japanese/sj3-server/files/sj3.sh.in
Normal file
22
japanese/sj3-server/files/sj3.sh.in
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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)
|
||||
sj3=${PREFIX}/bin/sj3serv
|
||||
if [ -f $sj3 ]; then
|
||||
$sj3
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -30,13 +30,7 @@ do-configure:
|
||||
post-install:
|
||||
if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'sj3=${PREFIX}/bin/sj3serv' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} 'if [ -f $$sj3 ]; then' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} ' $$sj3' >> ${STARTUP_SCRIPT} ; \
|
||||
${ECHO} "fi" >> ${STARTUP_SCRIPT} ; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT} ; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/sj3.sh ${STARTUP_SCRIPT}; \
|
||||
fi
|
||||
${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
||||
|
22
japanese/sj3/files/sj3.sh.in
Normal file
22
japanese/sj3/files/sj3.sh.in
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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)
|
||||
sj3=${PREFIX}/bin/sj3serv
|
||||
if [ -f $sj3 ]; then
|
||||
$sj3
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,10 +1,21 @@
|
||||
#!/bin/sh
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -d /var/run/emacs/lock ]
|
||||
then
|
||||
rm -f /var/run/emacs/lock/*
|
||||
else
|
||||
mkdir -p /var/run/emacs/lock
|
||||
fi
|
||||
chmod 1777 /var/run/emacs/lock
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -153,11 +153,7 @@ do-install:
|
||||
@if [ ! -f ${startup_script} ]; then \
|
||||
${ECHO_MSG} "Installing ${startup_script} file"; \
|
||||
test -d ${startup_dir} || ${MKDIR} ${startup_dir}; \
|
||||
${ECHO} "#!/bin/sh" > ${startup_script}; \
|
||||
${ECHO} "${ECHO} -n ' Modula-3'" >> ${startup_script}; \
|
||||
${ECHO} "${LDCONFIG} -m ${PREFIX}/lib/m3/FreeBSD2" \
|
||||
>> ${startup_script}; \
|
||||
${CHMOD} 755 ${startup_script}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/50.m3.sh ${startup_script}; \
|
||||
fi
|
||||
@${ECHO_MSG} "Running ldconfig"
|
||||
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/m3/FreeBSD2
|
||||
|
20
lang/modula-3-lib/files/50.m3.sh
Normal file
20
lang/modula-3-lib/files/50.m3.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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)
|
||||
echo -n ' Modula-3'
|
||||
ldconfig -m ${PREFIX}/lib/m3/FreeBSD2
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,3 +1,17 @@
|
||||
#!/bin/sh
|
||||
args='-bd -q30m'
|
||||
[ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim'
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim'
|
||||
;;
|
||||
stop)
|
||||
killall exim && echo -n ' exim'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,3 +1,17 @@
|
||||
#!/bin/sh
|
||||
args='-bd -q30m'
|
||||
[ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim'
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim'
|
||||
;;
|
||||
stop)
|
||||
killall exim && echo -n ' exim'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,3 +1,17 @@
|
||||
#!/bin/sh
|
||||
args='-bd -q30m'
|
||||
[ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim'
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim'
|
||||
;;
|
||||
stop)
|
||||
killall exim && echo -n ' exim'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -5,6 +5,19 @@
|
||||
# If this program is used on your system, great care must be taken
|
||||
# to avoid any security problem.
|
||||
#
|
||||
if [ -x @PREFIX@/sbin/youbind ]; then
|
||||
@PREFIX@/sbin/youbind ; echo -n ' youbind'
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x @PREFIX@/sbin/youbind ]; then
|
||||
@PREFIX@/sbin/youbind ; echo -n ' youbind'
|
||||
fi
|
||||
stop)
|
||||
killall youbind && echo -n ' youbind'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -63,13 +63,8 @@ post-configure:
|
||||
${PKGDIR}/MESSAGE > ${PKGMESSAGE}
|
||||
|
||||
post-install:
|
||||
@${ECHO} #!${SH} > ${PREFIX}/etc/rc.d/zmailer.sh.sample
|
||||
@${ECHO} "[ -x ${PREFIX}/sbin/zmailer ] && \
|
||||
${PREFIX}/sbin/zmailer start >/dev/null 2>&1) && \
|
||||
${ECHO} -n \' zmailer\'" \
|
||||
>> ${PREFIX}/etc/rc.d/zmailer.sh.sample
|
||||
@${CHOWN} root:wheel ${PREFIX}/etc/rc.d/zmailer.sh.sample
|
||||
@${CHMOD} a+x ${PREFIX}/etc/rc.d/zmailer.sh.sample
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/zmailer.sh.sample \
|
||||
${PREFIX}/etc/rc.d/zmailer.sh.sample
|
||||
|
||||
${CAT} ${PKGMESSAGE} | ${SED} -e s:@PREFIX@:${PREFIX}:g \
|
||||
-e s:@PORTSDIR@:${PORTSDIR}:g
|
||||
@ -82,7 +77,7 @@ post-install:
|
||||
@${ECHO} "# Who do I claim to be?" >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
@${ECHO} 'mydomain=$$orgdomain' >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
||||
|
||||
# obdained directly from ports/mail/postfix
|
||||
# obtained directly from ports/mail/postfix
|
||||
# with minor hacks by the originator of this port <veers@disturbed.net>
|
||||
replace:
|
||||
@${ECHO_MSG} "===> Replacing sendmail"
|
||||
|
23
mail/zmailer/files/zmailer.sh.sample
Normal file
23
mail/zmailer/files/zmailer.sh.sample
Normal file
@ -0,0 +1,23 @@
|
||||
#!/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/zmailer ] && \
|
||||
${PREFIX}/sbin/zmailer start >/dev/null 2>&1 && \
|
||||
echo -n ' zmailer'
|
||||
;;
|
||||
stop)
|
||||
# just a wild guess
|
||||
# ${PREFIX}/sbin/zmailer stop && echo -n ' zmailer'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -2,26 +2,39 @@
|
||||
|
||||
dir="CHANGETHIS"
|
||||
|
||||
if [ ! -d $dir ]; then
|
||||
logger -i "dnetc client directory doesn't exist. ($dir)."
|
||||
exit
|
||||
fi
|
||||
case "$1" in
|
||||
start)
|
||||
if [ ! -d $dir ]; then
|
||||
logger -i "dnetc client directory doesn't exist. ($dir)."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f $dir/dnetc ]; then
|
||||
logger -i "dnetc client doesn't exist. ($dir/dnetc)."
|
||||
exit
|
||||
fi
|
||||
if [ ! -f $dir/dnetc ]; then
|
||||
logger -i "dnetc client doesn't exist. ($dir/dnetc)."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f $dir/dnetc.ini ]; then
|
||||
logger -i "dnetc client config file doesn't exist. ($dir/dnetc.ini)."
|
||||
exit
|
||||
fi
|
||||
if [ ! -f $dir/dnetc.ini ]; then
|
||||
logger -i "dnetc client config file doesn't exist. ($dir/dnetc.ini)."
|
||||
exit
|
||||
fi
|
||||
|
||||
email=`grep "^id=" $dir/dnetc.ini|cut -d"=" -f2`
|
||||
email=`grep "^id=" $dir/dnetc.ini|cut -d"=" -f2`
|
||||
|
||||
if [ "$email" = "rc5@distributed.net" ]; then
|
||||
logger -i "dnetc client running with default email address. ($email)"
|
||||
fi
|
||||
if [ "$email" = "rc5@distributed.net" ]; then
|
||||
logger -i "dnetc client running with default email address. ($email)"
|
||||
fi
|
||||
|
||||
echo -n " dnetc"
|
||||
su -m nobody -c "$dir/dnetc -quiet" 2>/dev/null >/dev/null &
|
||||
echo -n " dnetc"
|
||||
su -m nobody -c "$dir/dnetc -quiet" 2>/dev/null >/dev/null &
|
||||
;;
|
||||
stop)
|
||||
killall dnetc && echo -n " dnetc"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -2,5 +2,18 @@
|
||||
|
||||
dir="CHANGETHIS"
|
||||
|
||||
echo -n " proxyper"
|
||||
su -m nobody -c "$dir/proxyper" 2>/dev/null >/dev/null &
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n " proxyper"
|
||||
su -m nobody -c "$dir/proxyper" 2>/dev/null >/dev/null &
|
||||
;;
|
||||
stop)
|
||||
killall proxyper && echo -n " proxyper"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall arpwatch && echo -n ' arpwatch'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall arpwatch && echo -n ' arpwatch'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -66,9 +66,7 @@ post-install:
|
||||
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
||||
@if [ ! -f ${STARTUP_FILE} ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
|
||||
${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
|
||||
${CHMOD} 751 ${STARTUP_FILE}; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
20
net-mgmt/net-snmp-devel/files/snmpd.sh.sample
Normal file
20
net-mgmt/net-snmp-devel/files/snmpd.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
stop)
|
||||
killall snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -66,9 +66,7 @@ post-install:
|
||||
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
||||
@if [ ! -f ${STARTUP_FILE} ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
|
||||
${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
|
||||
${CHMOD} 751 ${STARTUP_FILE}; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
20
net-mgmt/net-snmp/files/snmpd.sh.sample
Normal file
20
net-mgmt/net-snmp/files/snmpd.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
stop)
|
||||
killall snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -66,9 +66,7 @@ post-install:
|
||||
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
||||
@if [ ! -f ${STARTUP_FILE} ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
|
||||
${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
|
||||
${CHMOD} 751 ${STARTUP_FILE}; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
20
net-mgmt/net-snmp4/files/snmpd.sh.sample
Normal file
20
net-mgmt/net-snmp4/files/snmpd.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
stop)
|
||||
killall snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -66,9 +66,7 @@ post-install:
|
||||
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
||||
@if [ ! -f ${STARTUP_FILE} ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
|
||||
${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
|
||||
${CHMOD} 751 ${STARTUP_FILE}; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
20
net-mgmt/net-snmp53/files/snmpd.sh.sample
Normal file
20
net-mgmt/net-snmp53/files/snmpd.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
stop)
|
||||
killall snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -46,25 +46,7 @@ post-install:
|
||||
.endif
|
||||
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
||||
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'DB_POOL=/etc/dhcpdb.pool' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'DB_RELAY=/etc/dhcpdb.relay' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'DB_BIND=/var/db/dhcpdb.bind' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'if [ -f $${DB_POOL} -a -f $${DB_RELAY} \' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' -a -x ${PREFIX}/sbin/dhcps ]; then' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' if [ -f $${DB_BIND} ]; then' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' find $${DB_POOL} -newer $${DB_BIND} -exec ${RM} $${DB_BIND} \;' \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' fi' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ${PREFIX}/sbin/dhcps [Interface Name]" \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ${ECHO} -n ' dhcps'" \
|
||||
>> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'fi' >> ${STARTUP_SCRIPT}; \
|
||||
${CHMOD} 755 ${STARTUP_SCRIPT}; \
|
||||
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/wide-dhcps.sh.sample ${STARTUP_SCRIPT}; \
|
||||
fi
|
||||
@if [ ! -c /dev/bpf1 ]; then \
|
||||
${ECHO} "********************************************************";\
|
||||
|
30
net-mgmt/wide-dhcp/files/wide-dhcps.sh.sample
Normal file
30
net-mgmt/wide-dhcp/files/wide-dhcps.sh.sample
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DB_POOL=/etc/dhcpdb.pool
|
||||
DB_RELAY=/etc/dhcpdb.relay
|
||||
DB_BIND=/var/db/dhcpdb.bind
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f ${DB_POOL} -a -f ${DB_RELAY} -a -x ${PREFIX}/sbin/dhcps ]; then
|
||||
if [ -f ${DB_BIND} ]; then
|
||||
find ${DB_POOL} -newer ${DB_BIND} -exec rm ${DB_BIND} \;
|
||||
fi
|
||||
${PREFIX}/sbin/dhcps [Interface Name]
|
||||
echo -n ' dhcps'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall dhcps && echo -n ' dhcps'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall arpwatch && echo -n ' arpwatch'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/sbin/arpwatch -a -d /usr/local/arpwatch ]; then
|
||||
/usr/local/sbin/arpwatch && echo -n ' arpwatch'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall arpwatch && echo -n ' arpwatch'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -26,9 +26,7 @@ do-install:
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
|
||||
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
${ECHO} "[ -x \"${PREFIX}/sbin/dhid\" -a -f \"${PREFIX}/etc/dhid.conf\" ] && ${PREFIX}/sbin/dhid > /dev/null && ${ECHO} -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhid.sh ${PREFIX}/etc/rc.d/dhid.sh; \
|
||||
fi;
|
||||
@${ECHO} "--------------------------------------------------------------------------"
|
||||
@${ECHO} "Before dhid can run, you will need to register with a DHIS provider."
|
||||
|
20
net/dhid/files/dhid.sh
Normal file
20
net/dhid/files/dhid.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/dhid" -a -f "${PREFIX}/etc/dhid.conf" ] && ${PREFIX}/sbin/dhid > /dev/null && echo -n ' dhid'
|
||||
;;
|
||||
stop)
|
||||
killall dhid && echo -n ' dhid'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,6 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -x XXXX/sbin/nqsdaemon ] ; then
|
||||
XXXX/sbin/nqsdaemon > /var/log/nqs.log
|
||||
echo -n ' nqs'
|
||||
fi
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x XXXX/sbin/nqsdaemon ] ; then
|
||||
XXXX/sbin/nqsdaemon > /var/log/nqs.log
|
||||
echo -n ' nqs'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall nqsdaemon && echo -n ' nqs'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,5 +1,19 @@
|
||||
#!/bin/sh
|
||||
if [ -x /usr/local/libexec/fingerd -a -f /usr/local/etc/fingerdir/serverhost ]; then
|
||||
/usr/local/libexec/fingerd
|
||||
echo ' gnu-fingerd'
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
if [ -x /usr/local/libexec/fingerd -a -f /usr/local/etc/fingerdir/serverhost ]; then
|
||||
/usr/local/libexec/fingerd
|
||||
echo ' gnu-fingerd'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall fingerd && echo -n ' gnu-fingerd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -66,9 +66,7 @@ post-install:
|
||||
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
||||
@if [ ! -f ${STARTUP_FILE} ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
|
||||
${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
|
||||
${CHMOD} 751 ${STARTUP_FILE}; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
20
net/net-snmp/files/snmpd.sh.sample
Normal file
20
net/net-snmp/files/snmpd.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
stop)
|
||||
killall snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -66,9 +66,7 @@ post-install:
|
||||
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
|
||||
@if [ ! -f ${STARTUP_FILE} ]; then \
|
||||
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
|
||||
${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
|
||||
${CHMOD} 751 ${STARTUP_FILE}; \
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
20
net/net-snmp4/files/snmpd.sh.sample
Normal file
20
net/net-snmp4/files/snmpd.sh.sample
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
stop)
|
||||
killall snmpd && echo -n ' snmpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,2 +1,16 @@
|
||||
#! /bin/sh
|
||||
[ -x /usr/local/sbin/pptpd ] && /usr/local/sbin/pptpd && echo -n ' pptpd'
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -x /usr/local/sbin/pptpd ] && /usr/local/sbin/pptpd && echo -n ' pptpd'
|
||||
;;
|
||||
stop)
|
||||
killall pptpd && echo -n ' pptpd'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -4,4 +4,18 @@ cd `dirname $0`
|
||||
cd ../..
|
||||
PREFIX=`pwd`
|
||||
QTSS_PROXY=${PREFIX}/sbin/QuickTimeStreamingServer
|
||||
[ -x ${QTSS_PROXY} ] && ${QTSS_PROXY} && echo -n ' qtss'
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -x ${QTSS_PROXY} ] && ${QTSS_PROXY} && echo -n ' qtss'
|
||||
;;
|
||||
stop)
|
||||
killall `basename ${QTSS_PROXY}` && echo -n ' qtss'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -38,13 +38,6 @@ post-install:
|
||||
${MV} ${PREFIX}/share/doc/rwhois/rmkdbindex.8 ${PREFIX}/man/man8
|
||||
${MV} ${PREFIX}/share/doc/rwhois/rwhoisd.8 ${PREFIX}/man/man8
|
||||
@ ${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/rwhoisd.sh startup file..."
|
||||
@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
@ ${ECHO} "# remove or comment the following line and uncomment the one below it once you have" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
@ ${ECHO} "# configured your server's data" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
@ ${ECHO} "${ECHO} \"rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details.\"" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
@ ${ECHO} "#[ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ] && ${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhois.conf & && ${ECHO} -n ' rwhoisd'" >> ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
${CHMOD} 751 ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rwhoisd.sh ${PREFIX}/etc/rc.d/rwhoisd.sh
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
23
net/rwhois/files/rwhoisd.sh
Normal file
23
net/rwhois/files/rwhoisd.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/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)
|
||||
# remove or comment the following line and uncomment the one below it once you have
|
||||
# configured your server's data
|
||||
echo "rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details."
|
||||
#[ -x ${PREFIX}/lib/rwhois/sbin/rwhoisd ] && ${PREFIX}/lib/rwhois/sbin/rwhoisd -c ${PREFIX}/lib/rwhois/rwhois.conf & && echo -n ' rwhoisd'
|
||||
;;
|
||||
stop)
|
||||
# killall rwhoisd && echo -n ' rwhoisd
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user