From 24b59419f092edb0688f9228dc43081fda1037d5 Mon Sep 17 00:00:00 2001 From: mharo Date: Sun, 10 Oct 1999 07:10:41 +0000 Subject: - add a startup script for use with standalone mode - don't install config files as scripts - strip binary on install --- ftp/proftpd/Makefile | 8 +++++--- ftp/proftpd/files/proftpd.sh.sample | 18 ++++++++++++++++++ ftp/proftpd/pkg-plist | 3 +++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 ftp/proftpd/files/proftpd.sh.sample (limited to 'ftp/proftpd') diff --git a/ftp/proftpd/Makefile b/ftp/proftpd/Makefile index f3e51214be87..62eff5650a73 100644 --- a/ftp/proftpd/Makefile +++ b/ftp/proftpd/Makefile @@ -39,20 +39,22 @@ post-configure: @${SED} -e 's:/usr/bin:${PREFIX}/bin:' \ < ${WRKSRC}/src/ftpcount.1.pre_sed > ${WRKSRC}/src/ftpcount.1 -STRIP= +#STRIP= do-install: + @${MKDIR} /var/run/proftpd @${INSTALL_PROGRAM} ${WRKSRC}/ftpcount ${PREFIX}/bin/ftpcount @${INSTALL_PROGRAM} ${WRKSRC}/proftpd ${PREFIX}/libexec/proftpd @${INSTALL_PROGRAM} ${WRKSRC}/ftpshut ${PREFIX}/sbin/ftpshut @${INSTALL_MAN} ${WRKSRC}/src/ftpcount.1 ${PREFIX}/man/man1/ftpcount.1 @${INSTALL_MAN} ${WRKSRC}/src/ftpshut.8 ${PREFIX}/man/man8/ftpshut.8 @${INSTALL_MAN} ${WRKSRC}/src/proftpd.8 ${PREFIX}/man/man8/proftpd.8 - @${INSTALL_SCRIPT} \ + @${INSTALL_DATA} \ ${WRKSRC}/sample-configurations/basic.conf ${PREFIX}/etc/proftpd.conf.default @if [ ! -f ${PREFIX}/etc/proftpd.conf ]; then \ - ${INSTALL_SCRIPT} \ + ${INSTALL_DATA} \ ${WRKSRC}/sample-configurations/basic.conf ${PREFIX}/etc/proftpd.conf; \ fi + @${SED} -e 's,/usr/local,${PREFIX},g' ${FILESDIR}/proftpd.sh.sample > ${PREFIX}/etc/rc.d/proftpd.sh.sample @${CAT} ${PKGMESSAGE} diff --git a/ftp/proftpd/files/proftpd.sh.sample b/ftp/proftpd/files/proftpd.sh.sample new file mode 100644 index 000000000000..d2598672f5e2 --- /dev/null +++ b/ftp/proftpd/files/proftpd.sh.sample @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + +start) + if [ -x /usr/local/libexec/proftpd ]; then + /usr/local/libexec/proftpd && echo -n ' proftpd' + fi + ;; + +stop) + killall proftpd + ;; +*) + echo "$0 start | stop" + ;; + +esac diff --git a/ftp/proftpd/pkg-plist b/ftp/proftpd/pkg-plist index e5b7471828b1..a0c97c6b7ffa 100644 --- a/ftp/proftpd/pkg-plist +++ b/ftp/proftpd/pkg-plist @@ -1,5 +1,8 @@ bin/ftpcount etc/proftpd.conf.default +etc/rc.d/proftpd.sh.sample @exec if [ ! -f %D/etc/proftpd.conf ] ; then cp -p %D/%F %B/proftpd.conf; fi libexec/proftpd sbin/ftpshut +@exec /bin/mkdir /var/run/proftpd +@unexec /bin/rmdir /var/run/proftpd -- cgit