diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-23 22:41:04 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-23 22:41:04 +0800 |
commit | 8070d2e894d18c58e18bca2f5c3a09c303c53866 (patch) | |
tree | b92cc0961a4e6f7271966a7ede9bc8c697b3b9d5 | |
parent | 08a53bcd9289fd914fb663b7625d9f8a6c93da13 (diff) | |
download | freebsd-ports-gnome-8070d2e894d18c58e18bca2f5c3a09c303c53866.tar.gz freebsd-ports-gnome-8070d2e894d18c58e18bca2f5c3a09c303c53866.tar.zst freebsd-ports-gnome-8070d2e894d18c58e18bca2f5c3a09c303c53866.zip |
- Add LICENSE
- Simplify patching/installation
-rw-r--r-- | ports-mgmt/pkg_tree/Makefile | 11 | ||||
-rw-r--r-- | ports-mgmt/pkg_tree/files/patch-Makefile | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/ports-mgmt/pkg_tree/Makefile b/ports-mgmt/pkg_tree/Makefile index 956067527dd9..3fda3bed432f 100644 --- a/ports-mgmt/pkg_tree/Makefile +++ b/ports-mgmt/pkg_tree/Makefile @@ -10,16 +10,15 @@ MASTER_SITES= http://www.mavetju.org/download/ MAINTAINER= ports@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> diff --git a/ports-mgmt/pkg_tree/files/patch-Makefile b/ports-mgmt/pkg_tree/files/patch-Makefile index fc2879dc5c24..f60573f31a6a 100644 --- a/ports-mgmt/pkg_tree/files/patch-Makefile +++ b/ports-mgmt/pkg_tree/files/patch-Makefile @@ -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 |