summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/battstat-applet/Makefile5
-rw-r--r--sysutils/e2fsprogs/Makefile3
-rw-r--r--sysutils/gfslicer/Makefile5
-rw-r--r--sysutils/httplog/Makefile5
-rw-r--r--sysutils/logtool-devel/Makefile3
-rw-r--r--sysutils/logtool/Makefile3
-rw-r--r--sysutils/sloth/Makefile3
-rw-r--r--sysutils/ttyload/Makefile3
-rw-r--r--sysutils/wmmount/Makefile3
9 files changed, 21 insertions, 12 deletions
diff --git a/sysutils/battstat-applet/Makefile b/sysutils/battstat-applet/Makefile
index bd4efc2208a9..99577f9a537b 100644
--- a/sysutils/battstat-applet/Makefile
+++ b/sysutils/battstat-applet/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${DISTNAME}
+USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= yes
@@ -23,9 +24,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
diff --git a/sysutils/e2fsprogs/Makefile b/sysutils/e2fsprogs/Makefile
index 6009877c9c47..936380d3b15c 100644
--- a/sysutils/e2fsprogs/Makefile
+++ b/sysutils/e2fsprogs/Makefile
@@ -13,6 +13,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
@@ -26,7 +27,7 @@ MAN8= badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 fsck.8 \
mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8
post-patch:
- @find ${WRKSRC} -name "*.[ch]" | xargs ${PERL} -pi -e \
+ @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
's|LIST_HEAD|LIN_LST_HEAD|g ; \
s|et/com_err.h|com_err.h|g ; s|<malloc.h>|<stdlib.h>|'
diff --git a/sysutils/gfslicer/Makefile b/sysutils/gfslicer/Makefile
index 7265bcc44e4e..da1cafd06d5c 100644
--- a/sysutils/gfslicer/Makefile
+++ b/sysutils/gfslicer/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/share/automake14/automake/install-sh:${PORTSDIR}/devel/automake14
+USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GNOME= yes
USE_GMAKE= yes
@@ -30,11 +31,11 @@ post-extract:
@${RM} -f ${WRKSRC}/config.cache
post-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
- @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
diff --git a/sysutils/httplog/Makefile b/sysutils/httplog/Makefile
index 6b3fde25a324..a26c094df99d 100644
--- a/sysutils/httplog/Makefile
+++ b/sysutils/httplog/Makefile
@@ -17,13 +17,14 @@ MAN8= httplog.8
DOCS= ChangeLog README
+USE_REINPLACE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
post-patch:
(cd ${WRKSRC} && \
- ${PERL} -pi -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \
- ${PERL} -pi -e \
+ ${REINPLACE_CMD} -e "s@<wait.h>@<sys/wait.h>@" httplog.c && \
+ ${REINPLACE_CMD} -e \
"s@/var/lib/apache/bin/httplog@${PREFIX}/sbin/httplog@" \
httplog.8)
diff --git a/sysutils/logtool-devel/Makefile b/sysutils/logtool-devel/Makefile
index 7c388b630e2c..d15e3270245f 100644
--- a/sysutils/logtool-devel/Makefile
+++ b/sysutils/logtool-devel/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/logtool
@@ -23,7 +24,7 @@ ALL_TARGET= build
MAN1= logtool.1
post-patch:
- @${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1
diff --git a/sysutils/logtool/Makefile b/sysutils/logtool/Makefile
index 7c388b630e2c..d15e3270245f 100644
--- a/sysutils/logtool/Makefile
+++ b/sysutils/logtool/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/logtool
@@ -23,7 +24,7 @@ ALL_TARGET= build
MAN1= logtool.1
post-patch:
- @${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1
diff --git a/sysutils/sloth/Makefile b/sysutils/sloth/Makefile
index b2c79385ac44..663da5dee3d6 100644
--- a/sysutils/sloth/Makefile
+++ b/sysutils/sloth/Makefile
@@ -14,11 +14,12 @@ MASTER_SITES= ftp://ftp.namodn.com/pub/projects/ \
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAN1= sloth.1
post-patch:
- @${PERL} -pi -e "s,wait.h,sys/wait.h,g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s,wait.h,sys/wait.h,g" ${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/sysutils/ttyload/Makefile b/sysutils/ttyload/Makefile
index 6f7c2dda5b70..dbe79f68bdf2 100644
--- a/sysutils/ttyload/Makefile
+++ b/sysutils/ttyload/Makefile
@@ -12,10 +12,11 @@ MASTER_SITES= http://www.daveltd.com/src/util/ttyload/
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
ALL_TARGET= default
post-patch:
- @${PERL} -pi -e "s,^CC,#CC,g ; \
+ @${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
s,^DEBUG,#DEBUG,g ; \
s,^CFLAGS\t=,CFLAGS+=,g" ${WRKSRC}/Makefile
diff --git a/sysutils/wmmount/Makefile b/sysutils/wmmount/Makefile
index a8d5b42723ce..9f7bc482e0ad 100644
--- a/sysutils/wmmount/Makefile
+++ b/sysutils/wmmount/Makefile
@@ -18,10 +18,11 @@ LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_IMAKE= yes
USE_XPM= yes
+USE_REINPLACE= yes
post-patch:
.for file in system.wmmount.eg system.wmmount.sh
- @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/${file}
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/${file}
.endfor
.if exists(/etc/fstab)
@${SH} ${WRKSRC}/config/system.wmmount.sh > ${WRKSRC}/system.wmmount