freebsd-ports/ports-mgmt/pkg_replace/Makefile
Alex Kozlov dcc6472515 - Update pkgng patch to 8.0.10 [1]
* Increase pkg_replace -a speed
- Add NO_ARCH

PR:	ports/188154 [1]
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer) [1]
2014-04-06 09:39:24 +00:00

42 lines
1 KiB
Makefile

# Created by: Securedog <securedog@users.sourceforge.jp>
# $FreeBSD$
PORTNAME= pkg_replace
PORTVERSION= 0.8.0
PORTREVISION= 10
CATEGORIES= ports-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
MASTER_SITE_SUBDIR= portutil/22116
PATCH_SITES= http://member.tokoha-u.ac.jp/~kdeguchi/download/
PATCHFILES= ${PKGNAME}.patch
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp
COMMENT= Utility for upgrading installed packages
USES= tar:bzip2
NO_ARCH= yes
MAKE_ARGS= PREFIX="${PREFIX}" \
PORTSDIR="${PORTSDIR}" PKG_DBDIR="${PKG_DBDIR}"
OPTIONS_DEFINE= PKGDB_FIX ZSH
PKGDB_FIX_DESC= Fixing tool of installed package dependencies
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's/pkg_replace/pkg_replace pkgdb_fix/' ${WRKSRC}/sbin/Makefile
@${REINPLACE_CMD} -e 's/mkdir -p $${FILESDIR}/@true/' ${WRKSRC}/share/zsh/Makefile
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
.if defined(WITH_PKGNG)
post-install:
@${REINPLACE_CMD} -e '/pkgdb_fix/d' ${TMPPLIST}
.endif
.include <bsd.port.mk>