Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  9 May 2002 05:34:21 +0800 (CST)
From:      Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@infomath.math.nctu.edu.tw
Subject:   ports/37869: Update port: mail/vm-pop3d
Message-ID:  <20020508213421.462243D94@infomath.math.nctu.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         37869
>Category:       ports
>Synopsis:       Update port: mail/vm-pop3d
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 08 14:40:05 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 4.5-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD InfoMath.Math.NCTU.edu.tw 4.5-RELEASE-p4 FreeBSD 4.5-RELEASE-p4 #7: Tue Apr 23 04:15:27 CST 2002 root@InfoMath.Math.NCTU.edu.tw:/home/obj/usr/src/sys/InFoMath i386


	
>Description:
	phes <phester@shaw.ca> wanted a startup script, so I did.
	
>How-To-Repeat:
	
>Fix:

diff -ruN /usr/ports/mail/vm-pop3d/Makefile vm-pop3d/Makefile
--- /usr/ports/mail/vm-pop3d/Makefile	Fri Mar 22 03:12:16 2002
+++ vm-pop3d/Makefile	Thu May  9 05:31:27 2002
@@ -7,6 +7,7 @@
 
 PORTNAME=	vm-pop3d
 PORTVERSION=	1.1.6
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	${MASTER_SITE_SUNSITE}	\
 		http://www.ibiblio.org/
@@ -37,9 +38,11 @@
 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 -ruN /usr/ports/mail/vm-pop3d/files/vm-pop3d.sh vm-pop3d/files/vm-pop3d.sh
--- /usr/ports/mail/vm-pop3d/files/vm-pop3d.sh	Thu Jan  1 08:00:00 1970
+++ vm-pop3d/files/vm-pop3d.sh	Thu May  9 05:28:57 2002
@@ -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 -ruN /usr/ports/mail/vm-pop3d/pkg-plist vm-pop3d/pkg-plist
--- /usr/ports/mail/vm-pop3d/pkg-plist	Fri Aug 24 16:51:23 2001
+++ vm-pop3d/pkg-plist	Thu May  9 05:31:15 2002
@@ -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
	



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020508213421.462243D94>