Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 12:50:11 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350104 - head/sysutils/ptools
Message-ID:  <201404041250.s34CoBpj084392@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041250.s34CoBpj084392>