Lines 2-42
Link Here
|
2 |
# $FreeBSD: head/ports-mgmt/pkg_replace/Makefile 350343 2014-04-06 09:39:24Z ak $ |
2 |
# $FreeBSD: head/ports-mgmt/pkg_replace/Makefile 350343 2014-04-06 09:39:24Z ak $ |
3 |
|
3 |
|
4 |
PORTNAME= pkg_replace |
4 |
PORTNAME= pkg_replace |
5 |
PORTVERSION= 0.8.0 |
5 |
PORTVERSION= 20140721 |
6 |
PORTREVISION= 10 |
|
|
7 |
CATEGORIES= ports-mgmt |
6 |
CATEGORIES= ports-mgmt |
8 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} |
7 |
MASTER_SITES= http://member.tokoha-u.ac.jp/~kdeguchi/download/ |
9 |
MASTER_SITE_SUBDIR= portutil/22116 |
|
|
10 |
|
11 |
PATCH_SITES= http://member.tokoha-u.ac.jp/~kdeguchi/download/ |
12 |
PATCHFILES= ${PKGNAME}.patch |
13 |
|
8 |
|
14 |
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp |
9 |
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp |
15 |
COMMENT= Utility for upgrading installed packages |
10 |
COMMENT= Utility for upgrading installed packages |
16 |
|
11 |
|
17 |
USES= tar:bzip2 |
12 |
USES= tar:xz |
18 |
NO_ARCH= yes |
13 |
NO_ARCH= yes |
19 |
|
14 |
|
20 |
MAKE_ARGS= PREFIX="${PREFIX}" \ |
15 |
PLIST_FILES= sbin/pkg_replace \ |
21 |
PORTSDIR="${PORTSDIR}" PKG_DBDIR="${PKG_DBDIR}" |
16 |
man/man1/pkg_replace.1.gz \ |
|
|
17 |
"@sample %%ETCDIR%%/pkg_replace.conf.sample" |
18 |
PLIST_DIRSTRY= %%ETCDIR%% |
19 |
|
20 |
SUB_FILES= pkg-message |
21 |
SUB_LIST= ETCDIR=${ETCDIR} |
22 |
|
22 |
|
23 |
OPTIONS_DEFINE= PKGDB_FIX ZSH |
23 |
PORTDOCS= README README.ja |
24 |
PKGDB_FIX_DESC= Fixing tool of installed package dependencies |
|
|
25 |
|
24 |
|
26 |
OPTIONS_SUB= yes |
25 |
OPTIONS_DEFINE= DOCS |
|
|
26 |
|
27 |
NO_BUILD= yes |
27 |
|
28 |
|
28 |
.include <bsd.port.options.mk> |
29 |
.include <bsd.port.options.mk> |
29 |
|
30 |
|
30 |
post-patch: |
31 |
post-patch: |
31 |
@${REINPLACE_CMD} -e 's/pkg_replace/pkg_replace pkgdb_fix/' ${WRKSRC}/sbin/Makefile |
32 |
@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g;s|%%PKGCOMPATDIR%%|${PKGCOMPATDIR}|g' \ |
32 |
@${REINPLACE_CMD} -e 's/mkdir -p $${FILESDIR}/@true/' ${WRKSRC}/share/zsh/Makefile |
33 |
${WRKSRC}/${PORTNAME}.sh |
33 |
|
|
|
34 |
pre-install: |
35 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions |
36 |
|
34 |
|
37 |
.if defined(WITH_PKGNG) |
35 |
do-install: |
38 |
post-install: |
36 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh \ |
39 |
@${REINPLACE_CMD} -e '/pkgdb_fix/d' ${TMPPLIST} |
37 |
${STAGEDIR}${PREFIX}/sbin/${PORTNAME} |
40 |
.endif |
38 |
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \ |
|
|
39 |
${STAGEDIR}${MANPREFIX}/man/man1/ |
40 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
41 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \ |
42 |
${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample |
43 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
44 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) |
41 |
|
45 |
|
42 |
.include <bsd.port.mk> |
46 |
.include <bsd.port.mk> |