- add a startup script for use with standalone mode
- don't install config files as scripts - strip binary on install
This commit is contained in:
parent
ba56b4d43e
commit
9b9c3928fd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22295
6 changed files with 52 additions and 6 deletions
|
@ -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}
|
||||
|
||||
|
|
18
ftp/proftpd-devel/files/proftpd.sh.sample
Normal file
18
ftp/proftpd-devel/files/proftpd.sh.sample
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
18
ftp/proftpd/files/proftpd.sh.sample
Normal file
18
ftp/proftpd/files/proftpd.sh.sample
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue