svn commit: r426928 - in head/ports-mgmt/pkg_tree: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Nov 23 14:41:05 UTC 2016


Author: amdmi3
Date: Wed Nov 23 14:41:04 2016
New Revision: 426928
URL: https://svnweb.freebsd.org/changeset/ports/426928

Log:
  - Add LICENSE
  - Simplify patching/installation

Modified:
  head/ports-mgmt/pkg_tree/Makefile
  head/ports-mgmt/pkg_tree/files/patch-Makefile

Modified: head/ports-mgmt/pkg_tree/Makefile
==============================================================================
--- head/ports-mgmt/pkg_tree/Makefile	Wed Nov 23 14:40:11 2016	(r426927)
+++ head/ports-mgmt/pkg_tree/Makefile	Wed Nov 23 14:41:04 2016	(r426928)
@@ -10,16 +10,15 @@ MASTER_SITES=	http://www.mavetju.org/dow
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Get a 'graphical' tree-overview of installed packages
 
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 USES=		perl5 shebangfix
 SHEBANG_FILES=	pkg_tree
 
 NO_ARCH=	yes
 
-PLIST_FILES=	bin/pkg_tree man/man7/pkg_tree.7.gz
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|__PREFIX__|${STAGEDIR}${PREFIX}|g ; \
-		s|__INSTALL_MAN__|${INSTALL_MAN}|g ; \
-		s|__INSTALL_SCRIPT__|${INSTALL_SCRIPT}|g' ${WRKSRC}/Makefile
+PLIST_FILES=	bin/pkg_tree \
+		man/man7/pkg_tree.7.gz
 
 .include <bsd.port.mk>

Modified: head/ports-mgmt/pkg_tree/files/patch-Makefile
==============================================================================
--- head/ports-mgmt/pkg_tree/files/patch-Makefile	Wed Nov 23 14:40:11 2016	(r426927)
+++ head/ports-mgmt/pkg_tree/files/patch-Makefile	Wed Nov 23 14:41:04 2016	(r426928)
@@ -6,8 +6,8 @@
  install:
 -	install -o root -g wheel -m 755 -c pkg_tree /usr/local/bin
 -	install -o root -g wheel -m 644 -c pkg_tree.7 /usr/local/man/man7
-+	__INSTALL_SCRIPT__ pkg_tree __PREFIX__/bin
-+	__INSTALL_MAN__ pkg_tree.7 __PREFIX__/man/man7
++	${BSD_INSTALL_SCRIPT} pkg_tree ${DESTDIR}${PREFIX}/bin
++	${BSD_INSTALL_MAN} pkg_tree.7 ${DESTDIR}${PREFIX}/man/man7
  
  clean:
  	rm pkg_tree.7


More information about the svn-ports-head mailing list