mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
772dd8c9f8
- Support pkgNG. Known issue is that pkg which returns bogus exit codes, spamming your screen. pkgs_which works nonetheless. https://github.com/freebsd/pkg/issues/657 Note that pkgNG always uses --nocache implictly for speed: https://github.com/freebsd/pkg/issues/658 Known issue: the pkgNG detection is a hack. It just looks for the executable and the database in default locations, but does not attempt to run "pkg -N".
34 lines
762 B
Makefile
34 lines
762 B
Makefile
# Created by: Matthias Andree <mandree@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pkgs_which
|
|
PORTVERSION= 0.4.0
|
|
CATEGORIES= ports-mgmt perl5
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
COMMENT= Quickly find out which ports contributed to a file tree
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USES= perl5
|
|
NO_BUILD= yes
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PLIST_FILES+= man/man1/${PORTNAME}.1.gz
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/man/man1
|
|
${LOCALBASE}/bin/pod2man ${FILESDIR}/${PORTNAME} >${STAGEDIR}${PREFIX}/man/man1/${PORTNAME}.1
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|