Lines 3-13
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= pkg_replace |
4 |
PORTNAME= pkg_replace |
5 |
PORTVERSION= 0.8.0 |
5 |
PORTVERSION= 0.8.0 |
6 |
PORTREVISION= 2 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= ports-mgmt |
7 |
CATEGORIES= ports-mgmt |
8 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} |
8 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} |
9 |
MASTER_SITE_SUBDIR=portutil/22116 |
9 |
MASTER_SITE_SUBDIR=portutil/22116 |
10 |
|
10 |
|
|
|
11 |
PATCH_SITES= http://member.tokoha-u.ac.jp/~kdeguchi/download/ |
12 |
PATCHFILES= patch-sbin-pkg_replace-pkg_replace.sh |
13 |
|
11 |
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp |
14 |
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp |
12 |
COMMENT= Utility for upgrading installed packages |
15 |
COMMENT= Utility for upgrading installed packages |
13 |
|
16 |
|
Lines 15-22
Link Here
|
15 |
MAKE_ARGS= PREFIX="${PREFIX}" \ |
18 |
MAKE_ARGS= PREFIX="${PREFIX}" \ |
16 |
PORTSDIR="${PORTSDIR}" PKG_DBDIR="${PKG_DBDIR}" |
19 |
PORTSDIR="${PORTSDIR}" PKG_DBDIR="${PKG_DBDIR}" |
17 |
|
20 |
|
18 |
MAN1= pkg_replace.1 |
21 |
#MANCOMPRESSED= maybe |
19 |
MANCOMPRESSED= maybe |
|
|
20 |
|
22 |
|
21 |
OPTIONS_DEFINE= ZSH |
23 |
OPTIONS_DEFINE= ZSH |
22 |
|
24 |
|
Lines 29-41
Link Here
|
29 |
|
31 |
|
30 |
OPTIONS_SUB= yes |
32 |
OPTIONS_SUB= yes |
31 |
|
33 |
|
32 |
NO_STAGE= yes |
|
|
33 |
.include <bsd.port.options.mk> |
34 |
.include <bsd.port.options.mk> |
34 |
|
35 |
|
35 |
.if ${PORT_OPTIONS:MPKGDB_FIX} |
|
|
36 |
MAN1+= pkgdb_fix.1 |
37 |
.endif |
38 |
|
39 |
post-patch: |
36 |
post-patch: |
40 |
.if ${PORT_OPTIONS:MPKGDB_FIX} |
37 |
.if ${PORT_OPTIONS:MPKGDB_FIX} |
41 |
@${REINPLACE_CMD} -e 's/pkg_replace/pkg_replace pkgdb_fix/;' ${WRKSRC}/sbin/Makefile |
38 |
@${REINPLACE_CMD} -e 's/pkg_replace/pkg_replace pkgdb_fix/;' ${WRKSRC}/sbin/Makefile |
Lines 44-47
Link Here
|
44 |
@${REINPLACE_CMD} -e 's/^ sbin \\$$/ sbin/;s/^ share$$//;' ${WRKSRC}/Makefile |
41 |
@${REINPLACE_CMD} -e 's/^ sbin \\$$/ sbin/;s/^ share$$//;' ${WRKSRC}/Makefile |
45 |
.endif |
42 |
.endif |
46 |
|
43 |
|
|
|
44 |
pre-install: |
45 |
.if ${PORT_OPTIONS:MZSH} |
46 |
${MKDIR} ${STAGEDIR}${LOCALBASE}/share/zsh/site-functions |
47 |
.endif |
48 |
|
47 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.mk> |