freebsd-ports/ports-mgmt/pkg_replace/Makefile
Jochen Neumeister f69478f463 - Update to 20170517
- Add LICENSE

* Add --automatic option. This option sets automatic flag for the package.
* Delete --noindex option, add --index option. When pkg_replace checks the dependencies before building the target packages, do "make package-depends-list" as default. This is more strictly checking the dependencies.

PR:	219397
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (Maintainer)
Approved by:	miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D10849
2017-05-26 05:48:49 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Securedog <securedog@users.sourceforge.jp>
# $FreeBSD$
PORTNAME= pkg_replace
PORTVERSION= 20170517
CATEGORIES= ports-mgmt
MASTER_SITES= http://member.tokoha-u.ac.jp/~kdeguchi/download/
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp
COMMENT= Utility for upgrading installed packages
LICENSE= PD
USES= tar:xz
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= sbin/pkg_replace \
man/man1/pkg_replace.1.gz \
"@sample %%ETCDIR%%/pkg_replace.conf.sample"
SUB_FILES= pkg-message
PORTDOCS= README README.ja
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g;s|%%PKGCOMPATDIR%%|${PKGCOMPATDIR}|g' \
${WRKSRC}/${PORTNAME}.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh \
${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
${STAGEDIR}${MANPREFIX}/man/man1/
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>