upgrade to 0.20
PR: 40439 Submitted by: maintainer
This commit is contained in:
parent
d01455e9a0
commit
6252d50796
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62799
6 changed files with 48 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -1 +1 @@
|
|||
MD5 (mailgraph-0.19.tar.gz) = 38f6ebc8c6606ce9ad885184a5e190fd
|
||||
MD5 (mailgraph-0.20.tar.gz) = 0e22889929586d4f048b2b308d12a5cd
|
||||
|
|
17
mail/mailgraph/files/mailgraph.sh
Normal file
17
mail/mailgraph/files/mailgraph.sh
Normal file
|
@ -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
|
9
mail/mailgraph/pkg-deinstall
Normal file
9
mail/mailgraph/pkg-deinstall
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PW="/usr/sbin/pw"
|
||||
|
||||
${PW} usermod www -d /nonexistent -s /sbin/nologin
|
||||
|
9
mail/mailgraph/pkg-install
Normal file
9
mail/mailgraph/pkg-install
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PW="/usr/sbin/pw"
|
||||
|
||||
${PW} usermod www -d ${PREFIX}/www -s /bin/sh
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
etc/rc.d/mailgraph.sh.sample
|
||||
www/cgi-bin/mailgraph.cgi
|
||||
www/cgi-bin/mailgraph.pl
|
||||
|
|
Loading…
Reference in a new issue