aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-04-04 20:50:10 +0800
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-04-04 20:50:10 +0800
commitf4739e35a8df7ee40d0b76815aa3f349d95d0d30 (patch)
treefbd81bbc565161be90772f393fab82861813c848 /sysutils
parent3b8acd4ddce9bd2d462e0e1d988521206f040062 (diff)
downloadfreebsd-ports-gnome-f4739e35a8df7ee40d0b76815aa3f349d95d0d30.tar.gz
freebsd-ports-gnome-f4739e35a8df7ee40d0b76815aa3f349d95d0d30.tar.zst
freebsd-ports-gnome-f4739e35a8df7ee40d0b76815aa3f349d95d0d30.zip
Remove NEED_ROOT
Patch the Makefile in one single command Fix installing as a user directly strip during the installation in stage
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/ptools/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/sysutils/ptools/Makefile b/sysutils/ptools/Makefile
index 08e3f8f84dba..73741dd52b45 100644
--- a/sysutils/ptools/Makefile
+++ b/sysutils/ptools/Makefile
@@ -17,17 +17,11 @@ PLIST_FILES= bin/pargs \
bin/pldd \
bin/ptree
-NEED_ROOT= yes
-
-post-patch-script:
- @${REINPLACE_CMD} -e 's|/usr/local/bin|${STAGEDIR}${PREFIX}/bin|g' \
- ${WRKSRC}/Makefile
- @${REINPLACE_CMD} -e 's|gcc|$${CC}|g' \
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local/bin|${STAGEDIR}${PREFIX}/bin|g ; \
+ s|gcc|$${CC}|g ; \
+ s|555|755|g ; \
+ s|-o root -g wheel|${STRIP}|g' \
${WRKSRC}/Makefile
-post-install:
-.for file in pargs pwdx pldd ptree
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
-.endfor
-
.include <bsd.port.mk>