mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
add a startup script
PR: 37869 Submitted by: maintainer
This commit is contained in:
parent
6de38f945e
commit
e88f5e22e3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58789
3 changed files with 20 additions and 1 deletions
|
@ -7,9 +7,10 @@
|
||||||
|
|
||||||
PORTNAME= vm-pop3d
|
PORTNAME= vm-pop3d
|
||||||
PORTVERSION= 1.1.6
|
PORTVERSION= 1.1.6
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
||||||
http://www.ibiblio.org/
|
http://www.ibiblio.org/%SUBDIR%/
|
||||||
MASTER_SITE_SUBDIR= system/mail/pop
|
MASTER_SITE_SUBDIR= system/mail/pop
|
||||||
|
|
||||||
MAINTAINER= gslin@ccca.nctu.edu.tw
|
MAINTAINER= gslin@ccca.nctu.edu.tw
|
||||||
|
@ -37,9 +38,11 @@ pre-patch:
|
||||||
post-patch:
|
post-patch:
|
||||||
@${PERL} -pi -e "s@LIBS -ldl@LIBS@" ${WRKSRC}/configure
|
@${PERL} -pi -e "s@LIBS -ldl@LIBS@" ${WRKSRC}/configure
|
||||||
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/vm-pop3d.h
|
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/vm-pop3d.h
|
||||||
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/vm-pop3d.sh > ${WRKSRC}/vm-pop3d.sh.sample
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
${INSTALL_MAN} ${WRKSRC}/vm-pop3d.8 ${MAN8PREFIX}/man/man8
|
${INSTALL_MAN} ${WRKSRC}/vm-pop3d.8 ${MAN8PREFIX}/man/man8
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/vm-pop3d.sh.sample ${PREFIX}/etc/rc.d
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
.for FILE in ${DOCS}
|
.for FILE in ${DOCS}
|
||||||
|
|
15
mail/vm-pop3d/files/vm-pop3d.sh
Normal file
15
mail/vm-pop3d/files/vm-pop3d.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
[ -x %%PREFIX%%/sbin/vm-pop3d ] && %%PREFIX%%/sbin/vm-pop3d -d && echo -n " vm-pop3d"
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
killall vm-pop3d && echo -n " vm-pop3d"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: `basename $0` {start|stop}" >&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
|
@ -1,3 +1,4 @@
|
||||||
|
etc/rc.d/vm-pop3d.sh.sample
|
||||||
sbin/vm-pop3d
|
sbin/vm-pop3d
|
||||||
%%PORTDOCS%%share/doc/vm-pop3d/AUTHORS
|
%%PORTDOCS%%share/doc/vm-pop3d/AUTHORS
|
||||||
%%PORTDOCS%%share/doc/vm-pop3d/CHANGES
|
%%PORTDOCS%%share/doc/vm-pop3d/CHANGES
|
||||||
|
|
Loading…
Add table
Reference in a new issue