diff options
author | mharo <mharo@FreeBSD.org> | 1999-10-10 15:10:41 +0800 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 1999-10-10 15:10:41 +0800 |
commit | 24b59419f092edb0688f9228dc43081fda1037d5 (patch) | |
tree | aa675efba6930ea6f8028a3e193ccf0ff474504b /ftp/proftpd | |
parent | 398dcc6afbfc1e988ca2680f1acd895283288e90 (diff) | |
download | freebsd-ports-gnome-24b59419f092edb0688f9228dc43081fda1037d5.tar.gz freebsd-ports-gnome-24b59419f092edb0688f9228dc43081fda1037d5.tar.zst freebsd-ports-gnome-24b59419f092edb0688f9228dc43081fda1037d5.zip |
- add a startup script for use with standalone mode
- don't install config files as scripts
- strip binary on install
Diffstat (limited to 'ftp/proftpd')
-rw-r--r-- | ftp/proftpd/Makefile | 8 | ||||
-rw-r--r-- | ftp/proftpd/files/proftpd.sh.sample | 18 | ||||
-rw-r--r-- | ftp/proftpd/pkg-plist | 3 |
3 files changed, 26 insertions, 3 deletions
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 |