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 |
SUB_FILES= pkg-message |
21 |
PORTSDIR="${PORTSDIR}" PKG_DBDIR="${PKG_DBDIR}" |
16 |
SUB_LIST= ETCDIR=${ETCDIR} |
|
|
17 |
|
18 |
PORTDOCS= README README.ja |
22 |
|
19 |
|
23 |
OPTIONS_DEFINE= PKGDB_FIX ZSH |
20 |
OPTIONS_DEFINE= DOCS |
24 |
PKGDB_FIX_DESC= Fixing tool of installed package dependencies |
|
|
25 |
|
21 |
|
26 |
OPTIONS_SUB= yes |
22 |
NO_BUILD= yes |
27 |
|
23 |
|
28 |
.include <bsd.port.options.mk> |
24 |
.include <bsd.port.options.mk> |
29 |
|
25 |
|
30 |
post-patch: |
26 |
post-patch: |
31 |
@${REINPLACE_CMD} -e 's/pkg_replace/pkg_replace pkgdb_fix/' ${WRKSRC}/sbin/Makefile |
27 |
@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g;s|%%PKGCOMPATDIR%%|${PKGCOMPATDIR}|g' \ |
32 |
@${REINPLACE_CMD} -e 's/mkdir -p $${FILESDIR}/@true/' ${WRKSRC}/share/zsh/Makefile |
28 |
${WRKSRC}/${PORTNAME}.sh |
33 |
|
|
|
34 |
pre-install: |
35 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions |
36 |
|
29 |
|
37 |
.if defined(WITH_PKGNG) |
30 |
do-install: |
38 |
post-install: |
31 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh \ |
39 |
@${REINPLACE_CMD} -e '/pkgdb_fix/d' ${TMPPLIST} |
32 |
${STAGEDIR}${PREFIX}/sbin/${PORTNAME} |
40 |
.endif |
33 |
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \ |
|
|
34 |
${STAGEDIR}${MANPREFIX}/man/man1/ |
35 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
36 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \ |
37 |
${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample |
38 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
39 |
.for i in ${PORTDOCS} |
40 |
${INSTALL_DATA} ${WRKSRC}/${i} \ |
41 |
${STAGEDIR}${DOCSDIR}/ |
42 |
.endfor |
41 |
|
43 |
|
42 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |