1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

PERL -> REINPLACE

Noticed by: bento
This commit is contained in:
Edwin Groothuis 2002-11-04 01:30:04 +00:00
parent 6eea723866
commit cfcef1b581
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69414

View File

@ -24,6 +24,7 @@ LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7
WRKSRC= ${WRKDIR}/${PORTNAME}-v${PORTVERSION}beta
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-audit-libdir=${PREFIX}/lib/alat
@ -54,13 +55,14 @@ FIXPREFIX_CONF= src/include/audconf.h src/auditd/auditd.8
LIBVERSION= 1
post-patch:
${PERL} -pi -e "s@Linux@FreeBSD@g" ${WRKSRC}/configure
(${FIND} ${WRKSRC}/src/modules -name Makefile.in -exec ${PERL} -pi -e \
${REINPLACE_CMD} -e "s@Linux@FreeBSD@g" ${WRKSRC}/configure
(${FIND} ${WRKSRC}/src/modules -name Makefile.in -exec \
${REINPLACE_CMD} -e \
"s@^LIB=(.*){VERSION}@SOVERSION=\t${LIBVERSION}\nLIB=\1\{SOVERSION\}@" {} \;)
${PERL} -pi -e "s@AUDIT_VERSION@\"${LIBVERSION}\"@g" \
${REINPLACE_CMD} -e "s@AUDIT_VERSION@\"${LIBVERSION}\"@g" \
${WRKSRC}/src/lib/modules.c
.for f in ${FIXPREFIX_CONF}
${PERL} -pi -e "s@/etc/auditd.conf@${PREFIX}/etc/auditd.conf@g" \
${REINPLACE_CMD} -e "s@/etc/auditd.conf@${PREFIX}/etc/auditd.conf@g" \
${WRKSRC}/${f}
.endfor