Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 09:41:01 +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/40439: MAINTAINER Update port: mail/mailgraph
Message-ID:  <20020711014101.7698A57CD@Infomath.math.NCTU.edu.tw>

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

>Number:         40439
>Category:       ports
>Synopsis:       MAINTAINER Update port: mail/mailgraph
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 10 18:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 4.6-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD Infomath.math.NCTU.edu.tw 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #2: Fri Jul 5 22:54:39 CST 2002 root@Infomath.math.NCTU.edu.tw:/usr/obj/usr/src/sys/INFOMATH i386


	
>Description:
	Update to 0.20 and add startup script.
	
>How-To-Repeat:
	
>Fix:

diff -ruN /usr/ports/mail/mailgraph/Makefile mailgraph/Makefile
--- /usr/ports/mail/mailgraph/Makefile	Sun Jul  7 03:30:06 2002
+++ mailgraph/Makefile	Thu Jul 11 09:38:30 2002
@@ -6,22 +6,29 @@
 #
 
 PORTNAME=	mailgraph
-PORTVERSION=	0.19
-PORTREVISION=	1
+PORTVERSION=	0.20
 CATEGORIES=	mail
 MASTER_SITES=	http://people.ee.ethz.ch/~dws/software/mailgraph/pub/
 
 MAINTAINER=	gslin@ccca.nctu.edu.tw
 
-RUN_DEPENDS=	${SITE_PERL}/RRDs.pm:${PORTSDIR}/net/rrdtool	\
+RUN_DEPENDS=	${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool	\
 		${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail
 
 SITE_PERL=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
 NO_BUILD=	yes
 
+STARTUP_SCRIPT=	mailgraph.sh.sample
+
+post-patch:
+	@${SED} -e "s,%%PREFIX%%,${PREFIX}," ${FILESDIR}/mailgraph.sh > ${WRKSRC}/${STARTUP_SCRIPT}
+
 do-install:
 .for FILE in mailgraph.cgi mailgraph.pl
 	@${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/www/cgi-bin/
 .endfor
+	@${INSTALL_SCRIPT} ${WRKSRC}/${STARTUP_SCRIPT} ${PREFIX}/etc/rc.d/
+	@${SETENV} ${SCRIPTS_ENV} WWWUSER=${WWWUSER} ${SH} ${PKGINSTALL}
+	@${CHOWN} www:www ${PREFIX}/www/cgi-bin/
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/mail/mailgraph/distinfo mailgraph/distinfo
--- /usr/ports/mail/mailgraph/distinfo	Tue Apr 30 10:09:44 2002
+++ mailgraph/distinfo	Thu Jul 11 09:05:41 2002
@@ -1 +1 @@
-MD5 (mailgraph-0.19.tar.gz) = 38f6ebc8c6606ce9ad885184a5e190fd
+MD5 (mailgraph-0.20.tar.gz) = 0e22889929586d4f048b2b308d12a5cd
diff -ruN /usr/ports/mail/mailgraph/files/mailgraph.sh mailgraph/files/mailgraph.sh
--- /usr/ports/mail/mailgraph/files/mailgraph.sh	Thu Jan  1 08:00:00 1970
+++ mailgraph/files/mailgraph.sh	Thu Jul 11 09:34:41 2002
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PREFIX=%%PREFIX%%
+
+case "$1" in
+start)
+	/usr/bin/su www -c "cd ${PREFIX}/www/cgi-bin; ./mailgraph.pl -l /var/log/maillog" & > /dev/null 2>&1 && echo -n ' mailgraph'
+	;;
+stop)
+	ps -U www | grep mailgraph | awk '{print $1}' | xargs kill && echo -n ' mailgraph'
+	;;
+*)
+	echo "Usage: `basename $0` {start|stop}" >&2
+	;;
+esac
+
+exit 0
diff -ruN /usr/ports/mail/mailgraph/pkg-deinstall mailgraph/pkg-deinstall
--- /usr/ports/mail/mailgraph/pkg-deinstall	Thu Jan  1 08:00:00 1970
+++ mailgraph/pkg-deinstall	Thu Jul 11 09:31:00 2002
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+#	$FreeBSD$
+#
+
+PW="/usr/sbin/pw"
+
+${PW} usermod www -d /nonexistent -s /sbin/nologin
+
diff -ruN /usr/ports/mail/mailgraph/pkg-install mailgraph/pkg-install
--- /usr/ports/mail/mailgraph/pkg-install	Thu Jan  1 08:00:00 1970
+++ mailgraph/pkg-install	Thu Jul 11 09:30:51 2002
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+#	$FreeBSD$
+#
+
+PW="/usr/sbin/pw"
+
+${PW} usermod www -d ${PREFIX}/www -s /bin/sh
+
diff -ruN /usr/ports/mail/mailgraph/pkg-plist mailgraph/pkg-plist
--- /usr/ports/mail/mailgraph/pkg-plist	Tue Apr 30 10:09:44 2002
+++ mailgraph/pkg-plist	Thu Jul 11 09:36:56 2002
@@ -1,2 +1,3 @@
+etc/rc.d/mailgraph.sh.sample
 www/cgi-bin/mailgraph.cgi
 www/cgi-bin/mailgraph.pl
	


>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?20020711014101.7698A57CD>