diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-04-04 20:50:10 +0800 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-04-04 20:50:10 +0800 |
commit | f4739e35a8df7ee40d0b76815aa3f349d95d0d30 (patch) | |
tree | fbd81bbc565161be90772f393fab82861813c848 /sysutils | |
parent | 3b8acd4ddce9bd2d462e0e1d988521206f040062 (diff) | |
download | freebsd-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/Makefile | 16 |
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> |