svn commit: r367466 - in head/ports-mgmt/pkg_replace: . files
Alex Kozlov
ak at FreeBSD.org
Sat Sep 6 18:51:48 UTC 2014
Author: ak
Date: Sat Sep 6 18:51:46 2014
New Revision: 367466
URL: http://svnweb.freebsd.org/changeset/ports/367466
QAT: https://qat.redports.org/buildarchive/r367466/
Log:
- 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 at sz.tokoha-u.ac.jp> (maintainer)
Added:
head/ports-mgmt/pkg_replace/files/
head/ports-mgmt/pkg_replace/files/pkg-message.in (contents, props changed)
Deleted:
head/ports-mgmt/pkg_replace/pkg-plist
Modified:
head/ports-mgmt/pkg_replace/Makefile
head/ports-mgmt/pkg_replace/distinfo
head/ports-mgmt/pkg_replace/pkg-descr
Modified: head/ports-mgmt/pkg_replace/Makefile
==============================================================================
--- head/ports-mgmt/pkg_replace/Makefile Sat Sep 6 18:49:15 2014 (r367465)
+++ head/ports-mgmt/pkg_replace/Makefile Sat Sep 6 18:51:46 2014 (r367466)
@@ -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 at 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
-
-pre-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ @${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g;s|%%PKGCOMPATDIR%%|${PKGCOMPATDIR}|g' \
+ ${WRKSRC}/${PORTNAME}.sh
-.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>
Modified: head/ports-mgmt/pkg_replace/distinfo
==============================================================================
--- head/ports-mgmt/pkg_replace/distinfo Sat Sep 6 18:49:15 2014 (r367465)
+++ head/ports-mgmt/pkg_replace/distinfo Sat Sep 6 18:51:46 2014 (r367466)
@@ -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
Added: head/ports-mgmt/pkg_replace/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg_replace/files/pkg-message.in Sat Sep 6 18:51:46 2014 (r367466)
@@ -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".
Modified: head/ports-mgmt/pkg_replace/pkg-descr
==============================================================================
--- head/ports-mgmt/pkg_replace/pkg-descr Sat Sep 6 18:49:15 2014 (r367465)
+++ head/ports-mgmt/pkg_replace/pkg-descr Sat Sep 6 18:51:46 2014 (r367466)
@@ -3,5 +3,3 @@ It is compatible with portupgrade and ca
an alternative to portupgrade and portmaster.
WWW: http://portutil.sourceforge.jp
-
-Securedog <securedog at users.sourceforge.jp>
More information about the svn-ports-head
mailing list