- Update to 2.0.11 [1]

- while here ...
 - tighten post-patch
 - move do-install from copies to copytree_share
 - added BINMODE of 0755 so the instances of INSTALL_SCRIPT install with
   this mode instead of installing, and changing modes afterward
 - updated post-install to install with mode of 666 instead of changing post
 - dropped substitution on pkg-message, as there was nothing to substitute, and
   put in post-install echo msg. remove file, as well.
 - update interpreter in rc script /usr/bin/perl -> %%LOCALBASE%%/bin/perl

PR:	ports/166332
Submitted by:	maintainer, chifeng@gmail.com [1]
Feature safe:	yes
This commit is contained in:
Jason Helfman 2012-03-26 22:00:16 +00:00
parent 5827c3db84
commit ce170942a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293869
4 changed files with 20 additions and 20 deletions

View file

@ -6,10 +6,9 @@
#
PORTNAME= policyd2
PORTVERSION= 2.0.10
PORTREVISION= 1
PORTVERSION= 2.0.11
CATEGORIES= mail
MASTER_SITES= SF/policyd/2.0.x%20%28Stable%29/v${PORTVERSION}
MASTER_SITES= http://devlabs.linuxassist.net/attachments/download/187/
DISTNAME= cluebringer-${PORTVERSION}
MAINTAINER= chifeng@gmail.com
@ -24,10 +23,10 @@ USE_PERL5= yes
USE_PHP= yes
NO_BUILD= yes
USE_RC_SUBR= policyd2.sh
SUB_FILES= pkg-message
BINMODE= 0755
WEBUIDIR= ${PREFIX}/www/policyd
PORTDOCS= AUTHORS CHANGELOG INSTALL TODO WISHLIST
PORTDOCS= AUTHORS ChangeLog INSTALL TODO WISHLIST
PORTDATA= *
OPTIONS= MYSQL "Use MySQL support" On \
@ -47,21 +46,20 @@ RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-P
.endif
post-patch:
@${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/cbpadmin
@${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/cbpolicyd
@${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/cbpadmin \
${WRKSRC}/cbpolicyd
do-install:
@${INSTALL} -d ${WEBUIDIR}
@cd ${WRKSRC} && ${CP} -Rpf webui/ ${WEBUIDIR}
@cd ${WRKSRC} && ${CP} -Rpf cbp ${SITE_PERL}
${INSTALL_SCRIPT} -m 0755 ${WRKSRC}/cbpadmin ${PREFIX}/bin
${INSTALL_SCRIPT} -m 0755 ${WRKSRC}/cbpolicyd ${PREFIX}/bin
${INSTALL_DATA} -m 0644 ${WRKSRC}/cluebringer.conf ${PREFIX}/etc/cluebringer.conf.sample
@${INSTALL} -d ${WEBUIDIR} ${SITE_PERL}/cbp
@cd ${WRKSRC}/webui && ${COPYTREE_SHARE} \* ${WEBUIDIR}
@cd ${WRKSRC}/cbp && ${COPYTREE_SHARE} \* ${SITE_PERL}/cbp
${INSTALL_SCRIPT} ${WRKSRC}/cbpadmin ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/cbpolicyd ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/cluebringer.conf ${PREFIX}/etc/cluebringer.conf.sample
post-install:
@if [ ! -f ${PREFIX}/etc/cluebringer.conf ]; then \
${CP} -p ${PREFIX}/etc/cluebringer.conf.sample ${PREFIX}/etc/cluebringer.conf ; \
${CHMOD} +w ${PREFIX}/etc/cluebringer.conf ; \
${INSTALL_DATA} -m 666 ${PREFIX}/etc/cluebringer.conf.sample ${PREFIX}/etc/cluebringer.conf ;\
fi
.if !defined(NOPORTDATA)
@ -75,4 +73,8 @@ post-install:
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${ECHO_MSG}
@${ECHO_MSG} "Please check INSTALL file to configure!"
@${ECHO_MSG}
.include <bsd.port.post.mk>

View file

@ -1,2 +1,2 @@
SHA256 (cluebringer-2.0.10.tar.gz) = be335acb8e282a31a65a3f44de8c0ac0f0ac8f18090e20391b486d6b1efd752b
SIZE (cluebringer-2.0.10.tar.gz) = 133110
SHA256 (cluebringer-2.0.11.tar.gz) = 7095454c4d62335b9b4c297d51d058877d3a44e697d5d8de8968dd21898d464c
SIZE (cluebringer-2.0.11.tar.gz) = 139075

View file

@ -1,2 +0,0 @@
Please check INSTALL file to configure!

View file

@ -19,7 +19,7 @@ name="policyd2"
rcvar=policyd2_enable
command="%%LOCALBASE%%/bin/cbpolicyd"
command_interpreter="/usr/bin/perl"
command_interpreter="%%LOCALBASE%%/bin/perl"
load_rc_config $name