net-mgmt/argus3-clients: Fix BROKEN SASL

- Fix PREFIX
- Add SHEBANGFIX
- Pet portlint

PR:		242977
Submitted by:	trombik1973@gmail.com
This commit is contained in:
Muhammad Moinur Rahman
2020-02-12 23:45:59 +00:00
parent 54a0b5913b
commit 2697f145d5

View File

@@ -3,7 +3,7 @@
PORTNAME= argus-clients
PORTVERSION= 3.0.8.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net-mgmt security
MASTER_SITES= http://qosient.com/argus/src/ \
ftp://qosient.com/pub/argus/src/
@@ -13,6 +13,7 @@ COMMENT= Client programs for the argus IP network transaction auditing tool
LICENSE= GPLv3
USES= bison ncurses perl5 readline shebangfix
CONFLICTS= argus-clients-2* argus-clients-sasl-2*
OPTIONS_DEFINE= MYSQL SASL DOCS EXAMPLES
@@ -22,9 +23,9 @@ SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_CONFIGURE_ON= --with-sasl=${LOCALBASE}
MYSQL_USES= mysql
USES= bison ncurses perl5 readline
USE_CSTD= gnu89
GNU_CONFIGURE= yes
SHEBANG_FILES= examples/rahosts/raips.pl
.include <bsd.port.options.mk>
@@ -32,10 +33,16 @@ GNU_CONFIGURE= yes
PKGNAMESUFFIX+= -sasl
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/etc/radium.conf|${PREFIX}/etc/radium.conf|' ${WRKSRC}/clients/radium.c
@${REINPLACE_CMD} -e 's|/usr/lib/sasl2|${PREFIX}/lib/sasl2|' ${WRKSRC}/common/argus_auth.c
@${REINPLACE_CMD} -e 's|/etc/ra.conf|${PREFIX}/etc/ra.conf|' ${WRKSRC}/common/argus_util.c
@${REINPLACE_CMD} -e 's|/etc/rapolicy.conf|${PREFIX}/etc/rapolicy.conf|' \
${WRKSRC}/examples/rapolicy/rapolicy.c
@${REINPLACE_CMD} -e 's|/usr/local/bin/ra|${PREFIX}/bin/ra|' \
${WRKSRC}/examples/ramysql/rasql.c
do-install:
.for i in radark ragraph rahosts raips raplot raports
@${REINPLACE_CMD} -e 's#/usr/bin/perl#${LOCALBASE}/bin/perl#' ${WRKSRC}/bin/$i
.endfor
.for i in ra rabins racluster raconvert racount radium radump raevent \
rafilteraddr ragrep rahisto ralabel ranonymize rapath rapolicy \
rarpwatch raservices rasort rasplit rastream rastrip \