# Created by: Securedog # $FreeBSD: head/ports-mgmt/pkg_replace/Makefile 546265 2020-08-26 11:31:17Z fernape $ PORTNAME= pkg_replace PORTVERSION= 20200821 CATEGORIES= ports-mgmt MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp COMMENT= Utility for upgrading installed packages LICENSE= CC0-1.0 USE_GITHUB= yes GH_ACCOUNT= kdeguchi NO_ARCH= yes NO_BUILD= yes SUB_FILES= pkg-message PORTDOCS= ChangeLog 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}/share/man/man1/ @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \ ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) .include