- Update to 20140721
* Increase pkg_replace compatibility with portupgrade - Update MASTER_SITES - Remove support for pkg_tools - Use PLIST_FILES PR: 193304 Submitted by: Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
This commit is contained in:
parent
483dc28c12
commit
42558a6f14
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367466
@ -2,41 +2,41 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pkg_replace
|
||||
PORTVERSION= 0.8.0
|
||||
PORTREVISION= 10
|
||||
PORTVERSION= 20140721
|
||||
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
|
||||
MASTER_SITES= http://member.tokoha-u.ac.jp/~kdeguchi/download/
|
||||
|
||||
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp
|
||||
COMMENT= Utility for upgrading installed packages
|
||||
|
||||
USES= tar:bzip2
|
||||
USES= tar:xz
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
MAKE_ARGS= PREFIX="${PREFIX}" \
|
||||
PORTSDIR="${PORTSDIR}" PKG_DBDIR="${PKG_DBDIR}"
|
||||
PLIST_FILES= sbin/pkg_replace \
|
||||
man/man1/pkg_replace.1.gz \
|
||||
"@sample %%ETCDIR%%/pkg_replace.conf.sample"
|
||||
PLIST_DIRSTRY= %%ETCDIR%%
|
||||
|
||||
OPTIONS_DEFINE= PKGDB_FIX ZSH
|
||||
PKGDB_FIX_DESC= Fixing tool of installed package dependencies
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
OPTIONS_SUB= yes
|
||||
PORTDOCS= README README.ja
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
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
|
||||
@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g;s|%%PKGCOMPATDIR%%|${PKGCOMPATDIR}|g' \
|
||||
${WRKSRC}/${PORTNAME}.sh
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
|
||||
|
||||
.if defined(WITH_PKGNG)
|
||||
post-install:
|
||||
@${REINPLACE_CMD} -e '/pkgdb_fix/d' ${TMPPLIST}
|
||||
.endif
|
||||
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>
|
||||
|
@ -1,4 +1,2 @@
|
||||
SHA256 (pkg_replace-0.8.0.tar.bz2) = 3092f5fc0d18529eb5d38776941c0ee4d0073ecb524ab17671c81ca69c29e214
|
||||
SIZE (pkg_replace-0.8.0.tar.bz2) = 17296
|
||||
SHA256 (pkg_replace-0.8.0_10.patch) = a34f12d261e4b273adb35faabe3551a783ae34a8ff8c626a444c7001a398e351
|
||||
SIZE (pkg_replace-0.8.0_10.patch) = 13283
|
||||
SHA256 (pkg_replace-20140721.tar.xz) = da26e02304850b295491f3e4526051ac2f414c87be0837dc611cf8aff0dbd24f
|
||||
SIZE (pkg_replace-20140721.tar.xz) = 16232
|
||||
|
16
ports-mgmt/pkg_replace/files/pkg-message.in
Normal file
16
ports-mgmt/pkg_replace/files/pkg-message.in
Normal file
@ -0,0 +1,16 @@
|
||||
!!! ATTENTION !!!
|
||||
|
||||
pkg_replace options changed. For more information,
|
||||
refer to pkg_replace(1).
|
||||
|
||||
-----------------------------------------------------
|
||||
You can use various features.
|
||||
|
||||
-IGNORE, USE_PKGS
|
||||
-BEFOREBUILD, AFTERBUILD, BEFOREINSTALL, AFTERINSTALL
|
||||
-User defined functions
|
||||
|
||||
See examples in %%ETCDIR%%/pkg_replace.conf.sample.
|
||||
|
||||
If you want to use those features,
|
||||
edit "%%ETCDIR%%/pkg_replace.conf".
|
@ -3,5 +3,3 @@ It is compatible with portupgrade and can be used as
|
||||
an alternative to portupgrade and portmaster.
|
||||
|
||||
WWW: http://portutil.sourceforge.jp
|
||||
|
||||
Securedog <securedog@users.sourceforge.jp>
|
||||
|
@ -1,8 +0,0 @@
|
||||
etc/pkg_replace.conf.sample
|
||||
man/man1/pkg_replace.1.gz
|
||||
%%PKGDB_FIX%%man/man1/pkgdb_fix.1.gz
|
||||
sbin/pkg_replace
|
||||
%%PKGDB_FIX%%sbin/pkgdb_fix
|
||||
%%ZSH%%share/zsh/site-functions/_pkg_replace
|
||||
%%ZSH%%@dirrmtry share/zsh/site-functions
|
||||
%%ZSH%%@dirrmtry share/zsh
|
Loading…
Reference in New Issue
Block a user