1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

PERL -> REINPLACE_CMD

PR:		ports/39729, ports/39727, ports/39726, ports/39724
PR:		ports/39722, ports/39721, ports/39720, ports/39719, ports/39718
Submitted by:	Scott Flatman <sf@dsinw.com>
This commit is contained in:
Patrick Li 2002-06-23 20:39:23 +00:00
parent ec8028156e
commit 3429beb3d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61839
10 changed files with 23 additions and 13 deletions

View File

@ -16,6 +16,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_NEWGCC= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.pl
@ -27,7 +28,7 @@ INSTALLS_SHLIB= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
post-patch:
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g ; \
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g ; \
s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/${CONFIGURE_SCRIPT}
@${RM} -f ${WRKSRC}/src/pipe_io.cpp.orig

View File

@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
@ -27,6 +28,6 @@ MLINKS= ccrypt.1 ccencrypt.1 \
ccrypt.1 ccat.1
post-patch:
@${PERL} -pi -e "s,gtar,tar,g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,gtar,tar,g" ${WRKSRC}/configure
.include <bsd.port.mk>

View File

@ -16,6 +16,7 @@ MAINTAINER= ports@FreeBSD.org
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/fchksum.so:${PORTSDIR}/security/py-fchksum
USE_REINPLACE= yes
USE_PYTHON= yes
ALL_TARGET= cfv.wrapper
INSTALL_TARGET= install-wrapper
@ -23,6 +24,6 @@ INSTALL_TARGET= install-wrapper
MAN1= cfv.1
post-patch:
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -16,18 +16,19 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
USE_REINPLACE= yes
INSTALL_TARGET= install install-config install-i18n
MANCOMPRESSES= no
MAN8= fwlogwatch.8
MAKE_ENV= MKDIR="${MKDIR}"
post-patch:
@${PERL} -pi -e 's,/etc,${PREFIX}/etc,g; \
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,g; \
s,/usr/local,${PREFIX},g; \
s,/usr/share,${PREFIX}/share,g; \
s,%%LOCALBASE%%,${LOCALBASE},g' \
${WRKSRC}/Makefile ${WRKSRC}/main.h
@${PERL} -pi -e "s,/etc,${PREFIX}/etc,g" ${WRKSRC}/${MAN8}
@${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc,g" ${WRKSRC}/${MAN8}
post-install:
@${INSTALL_SCRIPT} ${FILESDIR}/fwlogwatch.sh.sample ${PREFIX}/etc/rc.d

View File

@ -19,14 +19,15 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp
LIB_DEPENDS= wx_gtk:${PORTSDIR}/x11-toolkits/wxgtk-devel
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/Hashish
CFLAGS+= -I${LOCALBASE}/include
USE_GMAKE= yes
post-patch:
@${PERL} -pi -e "s,^CXXFLAGS =,CXXFLAGS+=,g ; \
@${REINPLACE_CMD} -e "s,^CXXFLAGS =,CXXFLAGS+=,g ; \
s,^LBLIBS =,LBLIBS = -L${LOCALBASE}/lib,g" ${WRKSRC}/Makefile
@${PERL} -pi -e "s,crypto/,cryptopp/,g" ${WRKSRC}/src/main.cpp
@${REINPLACE_CMD} -e "s,crypto/,cryptopp/,g" ${WRKSRC}/src/main.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hashish ${PREFIX}/bin

View File

@ -13,14 +13,15 @@ DISTNAME= logsentry-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/MESSAGE
pre-configure:
${PERL} -pi -e "s@/usr/local/etc/tmp@${PREFIX}/var/tmp@g; \
${REINPLACE_CMD} -e "s@/usr/local/etc/tmp@${PREFIX}/var/tmp@g; \
s@/usr/local@${PREFIX}@" ${WRKSRC}/Makefile \
${WRKSRC}/systems/freebsd/logcheck.sh
${PERL} -pi -e "s@/bin/mkdir@${MKDIR}@g" ${WRKSRC}/Makefile
${REINPLACE_CMD} -e "s@/bin/mkdir@${MKDIR}@g" ${WRKSRC}/Makefile
post-build:
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}

View File

@ -16,13 +16,14 @@ MAINTAINER= ports@FreeBSD.org
RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg \
${PYTHON_SITELIBDIR}/gnome/ui.py:${PORTSDIR}/x11-toolkits/py-gnome
USE_REINPLACE= yes
USE_PYTHON= yes
NO_BUILD= yes
MAN1= nofgpg.1
post-patch:
@${PERL} -pi -e "s,/usr/share,${X11BASE}/share/gnome,g" ${WRKSRC}/nofgpg
@${REINPLACE_CMD} -e "s,/usr/share,${X11BASE}/share/gnome,g" ${WRKSRC}/nofgpg
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

View File

@ -16,6 +16,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_NEWGCC= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.pl
@ -27,7 +28,7 @@ INSTALLS_SHLIB= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
post-patch:
@${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g ; \
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g ; \
s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/${CONFIGURE_SCRIPT}
@${RM} -f ${WRKSRC}/src/pipe_io.cpp.orig

View File

@ -13,9 +13,10 @@ MASTER_SITES= http://www.psionic.com/downloads/
MAINTAINER= ports@FreeBSD.org
ALL_TARGET= freebsd
USE_REINPLACE= yes
post-patch:
@${PERL} -pi -e 's,__PREFIX__,${PREFIX},g' \
@${REINPLACE_CMD} -e 's,__PREFIX__,${PREFIX},g' \
${WRKSRC}/portsentry.conf ${WRKSRC}/portsentry_config.h
do-install:

View File

@ -16,9 +16,10 @@ DISTFILES= ${PORTNAME}-1_0.tgz
MAINTAINER= ports@FreeBSD.org
ALL_TARGET= rid
USE_REINPLACE= yes
pre-configure:
@${PERL} -pi -e 's:config.txt:${PREFIX}/etc/rid.conf:g' \
@${REINPLACE_CMD} -e 's:config.txt:${PREFIX}/etc/rid.conf:g' \
${WRKSRC}/config.h
do-install: