mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
c6821201d2
PR: 228226 Submitted by: dereks@lifeofadishwasher.com
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Stefan Walter <sw@gegenunendlich.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pkg_cutleaves
|
|
PORTVERSION= 20181216
|
|
CATEGORIES= ports-mgmt
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Interactive script for deinstalling 'leaf' packages
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USES= perl5 shebangfix
|
|
|
|
NO_BUILD= yes
|
|
SHEBANG_FILES= pkg_cutleaves
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= sbin/pkg_cutleaves man/man1/pkg_cutleaves.1.gz
|
|
NO_ARCH= yes
|
|
|
|
do-extract:
|
|
${MKDIR} ${WRKSRC}
|
|
${CP} ${FILESDIR}/pkg_cutleaves ${FILESDIR}/pkg_cutleaves.1 ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's,/usr/local/etc/pkg_leaves.exclude,${PREFIX}/etc/pkg_leaves.exclude,' \
|
|
${WRKSRC}/pkg_cutleaves.1
|
|
@${REINPLACE_CMD} \
|
|
-e 's,/usr/local/etc/pkg_leaves.exclude,${PREFIX}/etc/pkg_leaves.exclude,' \
|
|
-e 's,/usr/local/sbin/pkg delete -y,${PKG_DELETE},' \
|
|
-e 's,/usr/local/sbin/pkg query,${PKG_QUERY},' \
|
|
${WRKSRC}/pkg_cutleaves
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkg_cutleaves ${STAGEDIR}${PREFIX}/sbin/pkg_cutleaves
|
|
${INSTALL_MAN} ${WRKSRC}/pkg_cutleaves.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|