- Add LICENSE

- Simplify patching/installation
This commit is contained in:
Dmitry Marakasov 2016-11-23 14:41:04 +00:00
parent ac1ce00d1c
commit 8c64da30f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426928
2 changed files with 7 additions and 8 deletions

View file

@ -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>

View file

@ -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