svn commit: r350104 - head/sysutils/ptools

Baptiste Daroussin bapt at FreeBSD.org
Fri Apr 4 12:50:11 UTC 2014


Author: bapt
Date: Fri Apr  4 12:50:10 2014
New Revision: 350104
URL: http://svnweb.freebsd.org/changeset/ports/350104
QAT: https://qat.redports.org/buildarchive/r350104/

Log:
  Remove NEED_ROOT
  Patch the Makefile in one single command
  Fix installing as a user
  directly strip during the installation in stage

Modified:
  head/sysutils/ptools/Makefile

Modified: head/sysutils/ptools/Makefile
==============================================================================
--- head/sysutils/ptools/Makefile	Fri Apr  4 12:43:01 2014	(r350103)
+++ head/sysutils/ptools/Makefile	Fri Apr  4 12:50:10 2014	(r350104)
@@ -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>


More information about the svn-ports-head mailing list