diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-05-09 17:33:01 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-05-09 17:33:01 +0800 |
commit | 70d85f41008ee7b219bc6fbab332a16dddbbc458 (patch) | |
tree | c31db4926fd0c25ca545a18bdf636bcac0ac36f6 /mail/vm-pop3d | |
parent | a748c0f081243e8448c29d5bcd037b1df5e38e9a (diff) | |
download | freebsd-ports-gnome-70d85f41008ee7b219bc6fbab332a16dddbbc458.tar.gz freebsd-ports-gnome-70d85f41008ee7b219bc6fbab332a16dddbbc458.tar.zst freebsd-ports-gnome-70d85f41008ee7b219bc6fbab332a16dddbbc458.zip |
add a startup script
PR: 37869
Submitted by: maintainer
Diffstat (limited to 'mail/vm-pop3d')
-rw-r--r-- | mail/vm-pop3d/Makefile | 5 | ||||
-rw-r--r-- | mail/vm-pop3d/files/vm-pop3d.sh | 15 | ||||
-rw-r--r-- | mail/vm-pop3d/pkg-plist | 1 |
3 files changed, 20 insertions, 1 deletions
diff --git a/mail/vm-pop3d/Makefile b/mail/vm-pop3d/Makefile index f97e5fb0976e..8c9f55e54dc2 100644 --- a/mail/vm-pop3d/Makefile +++ b/mail/vm-pop3d/Makefile @@ -7,9 +7,10 @@ PORTNAME= vm-pop3d PORTVERSION= 1.1.6 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SUNSITE} \ - http://www.ibiblio.org/ + http://www.ibiblio.org/%SUBDIR%/ MASTER_SITE_SUBDIR= system/mail/pop MAINTAINER= gslin@ccca.nctu.edu.tw @@ -37,9 +38,11 @@ pre-patch: post-patch: @${PERL} -pi -e "s@LIBS -ldl@LIBS@" ${WRKSRC}/configure @${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: ${INSTALL_MAN} ${WRKSRC}/vm-pop3d.8 ${MAN8PREFIX}/man/man8 + ${INSTALL_SCRIPT} ${WRKSRC}/vm-pop3d.sh.sample ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for FILE in ${DOCS} diff --git a/mail/vm-pop3d/files/vm-pop3d.sh b/mail/vm-pop3d/files/vm-pop3d.sh new file mode 100644 index 000000000000..43e28e9b3fdd --- /dev/null +++ b/mail/vm-pop3d/files/vm-pop3d.sh @@ -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 diff --git a/mail/vm-pop3d/pkg-plist b/mail/vm-pop3d/pkg-plist index 232398988762..88e696b1cee4 100644 --- a/mail/vm-pop3d/pkg-plist +++ b/mail/vm-pop3d/pkg-plist @@ -1,3 +1,4 @@ +etc/rc.d/vm-pop3d.sh.sample sbin/vm-pop3d %%PORTDOCS%%share/doc/vm-pop3d/AUTHORS %%PORTDOCS%%share/doc/vm-pop3d/CHANGES |