aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/vm-pop3d/Makefile5
-rw-r--r--mail/vm-pop3d/files/vm-pop3d.sh15
-rw-r--r--mail/vm-pop3d/pkg-plist1
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