From gslin@infomath.math.nctu.edu.tw  Wed May  8 14:35:01 2002
Return-Path: <gslin@infomath.math.nctu.edu.tw>
Received: from infomath.math.nctu.edu.tw (infomath.Math.NCTU.edu.tw [140.113.22.119])
	by hub.freebsd.org (Postfix) with ESMTP id C53A537B409
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 May 2002 14:35:00 -0700 (PDT)
Received: from 127.0.0.1 (localhost [127.0.0.1])
	by infomath.math.nctu.edu.tw (Postfix) with SMTP
	id 433BC3D97; Thu,  9 May 2002 05:34:22 +0800 (CST)
Received: by infomath.math.nctu.edu.tw (Postfix, from userid 1000)
	id 462243D94; Thu,  9 May 2002 05:34:21 +0800 (CST)
Message-Id: <20020508213421.462243D94@infomath.math.nctu.edu.tw>
Date: Thu,  9 May 2002 05:34:21 +0800 (CST)
From: Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
Reply-To: Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gslin@infomath.math.nctu.edu.tw
Subject: Update port: mail/vm-pop3d
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37869
>Category:       ports
>Synopsis:       Update port: mail/vm-pop3d
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 08 14:40:05 PDT 2002
>Closed-Date:    Thu May 09 02:33:52 PDT 2002
>Last-Modified:  Thu May 09 02:33:52 PDT 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Thu May 9 02:33:26 PDT 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37869 
>Unformatted:
