diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-07-11 15:11:58 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-07-11 15:11:58 +0800 |
commit | b29627bf9e61f91c158e940426cc348a66c61b1e (patch) | |
tree | b352a35638ba15f19a6e43f924a26ef72a6e8cba /mail | |
parent | 9318f2a637be7f001f78469ffcb096cd9fa804fb (diff) | |
download | freebsd-ports-graphics-b29627bf9e61f91c158e940426cc348a66c61b1e.tar.gz freebsd-ports-graphics-b29627bf9e61f91c158e940426cc348a66c61b1e.tar.zst freebsd-ports-graphics-b29627bf9e61f91c158e940426cc348a66c61b1e.zip |
upgrade to 0.20
PR: 40439
Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mailgraph/Makefile | 14 | ||||
-rw-r--r-- | mail/mailgraph/distinfo | 2 | ||||
-rw-r--r-- | mail/mailgraph/files/mailgraph.sh | 17 | ||||
-rw-r--r-- | mail/mailgraph/pkg-deinstall | 9 | ||||
-rw-r--r-- | mail/mailgraph/pkg-install | 9 | ||||
-rw-r--r-- | mail/mailgraph/pkg-plist | 1 |
6 files changed, 48 insertions, 4 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile index 54dcfe8710e..a93c5b313ca 100644 --- a/mail/mailgraph/Makefile +++ b/mail/mailgraph/Makefile @@ -6,22 +6,30 @@ # PORTNAME= mailgraph -PORTVERSION= 0.19 -PORTREVISION= 1 +PORTVERSION= 0.20 +PORTREVISION= 0 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 --git a/mail/mailgraph/distinfo b/mail/mailgraph/distinfo index a3e6337181f..2a36481f5d6 100644 --- a/mail/mailgraph/distinfo +++ b/mail/mailgraph/distinfo @@ -1 +1 @@ -MD5 (mailgraph-0.19.tar.gz) = 38f6ebc8c6606ce9ad885184a5e190fd +MD5 (mailgraph-0.20.tar.gz) = 0e22889929586d4f048b2b308d12a5cd diff --git a/mail/mailgraph/files/mailgraph.sh b/mail/mailgraph/files/mailgraph.sh new file mode 100644 index 00000000000..bfa9bc3e35a --- /dev/null +++ b/mail/mailgraph/files/mailgraph.sh @@ -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 --git a/mail/mailgraph/pkg-deinstall b/mail/mailgraph/pkg-deinstall new file mode 100644 index 00000000000..a864c53ea46 --- /dev/null +++ b/mail/mailgraph/pkg-deinstall @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PW="/usr/sbin/pw" + +${PW} usermod www -d /nonexistent -s /sbin/nologin + diff --git a/mail/mailgraph/pkg-install b/mail/mailgraph/pkg-install new file mode 100644 index 00000000000..a1a7b78e5a2 --- /dev/null +++ b/mail/mailgraph/pkg-install @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PW="/usr/sbin/pw" + +${PW} usermod www -d ${PREFIX}/www -s /bin/sh + diff --git a/mail/mailgraph/pkg-plist b/mail/mailgraph/pkg-plist index 2742b6c0db6..814b807c870 100644 --- a/mail/mailgraph/pkg-plist +++ b/mail/mailgraph/pkg-plist @@ -1,2 +1,3 @@ +etc/rc.d/mailgraph.sh.sample www/cgi-bin/mailgraph.cgi www/cgi-bin/mailgraph.pl |