mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Stage. Add DATADIR to plist, so PORTREVISION bump.
This commit is contained in:
parent
d3d1fb5865
commit
a463ee6438
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362291
@ -3,14 +3,15 @@
|
||||
|
||||
PORTNAME= ovs
|
||||
PORTVERSION= 1.05
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.oav.net/openvisp/stats/ \
|
||||
http://mirror.amdmi3.ru/distfiles/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= RRDtool frontend for mail statistics
|
||||
|
||||
RUN_DEPENDS= rrdtool>=0:${PORTSDIR}/databases/rrdtool \
|
||||
RUN_DEPENDS= rrdtool>=0:${PORTSDIR}/databases/rrdtool \
|
||||
p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail
|
||||
|
||||
NO_BUILD= yes
|
||||
@ -24,14 +25,11 @@ OVS_GROUP?= ${WWWGRP}
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
SUB_LIST+= OVS_USER=${OVS_USER} OVS_GROUP=${OVS_GROUP}
|
||||
PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,}
|
||||
PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,} \
|
||||
OVS_USER=${OVS_USER} OVS_GROUP=${OVS_GROUP}
|
||||
|
||||
DOCS= README CHANGES COPYING CHANGES.old README.old
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= ${DOCS}
|
||||
.endif
|
||||
PORTDOCS= README CHANGES COPYING CHANGES.old README.old
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-everything::
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "You may set following options:"
|
||||
@ -46,23 +44,15 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/ovs.cgi
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${CGIDIR}
|
||||
@${MKDIR} ${WWWROOT}/ovs
|
||||
@${MKDIR} ${DATADIR}
|
||||
@${CHOWN} -R ${OVS_USER}:${OVS_GROUP} ${DATADIR}
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/ovs.pl ${PREFIX}/sbin
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/ovs.cgi ${CGIDIR}
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/ovs.css ${WWWROOT}/ovs
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
for f in ${DOCS}; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
|
||||
@${MKDIR} ${STAGEDIR}${CGIDIR}
|
||||
@${MKDIR} ${STAGEDIR}${WWWROOT}/ovs
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/ovs.pl ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/ovs.cgi ${STAGEDIR}${CGIDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ovs.css ${STAGEDIR}${WWWROOT}/ovs
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
for f in ${PORTDOCS}; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \
|
||||
done
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} ""
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -8,4 +8,3 @@ Make sure this script should be invoked with privilege to read
|
||||
/var/log/maillog. For example, you may change the permission of
|
||||
maillog to be 644. Another way is to make maillog owned by
|
||||
the mail group, and put ovs_user in that group.
|
||||
|
||||
|
@ -4,3 +4,6 @@ sbin/ovs.pl
|
||||
@dirrmtry www/cgi-bin
|
||||
@dirrmtry www/data/ovs
|
||||
@dirrmtry www/data
|
||||
@owner %%OVS_USER%%
|
||||
@group %%OVS_GROUP%%
|
||||
@dirrmtry %%DATADIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user