View | Details | Raw Unified | Return to bug 182371 | Differences between
and this patch

Collapse All | Expand All

(-)pkg_replace/Makefile (-8 / +10 lines)
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>
(-)pkg_replace/distinfo (+2 lines)
Lines 1-2 Link Here
1
SHA256 (pkg_replace-0.8.0.tar.bz2) = 3092f5fc0d18529eb5d38776941c0ee4d0073ecb524ab17671c81ca69c29e214
1
SHA256 (pkg_replace-0.8.0.tar.bz2) = 3092f5fc0d18529eb5d38776941c0ee4d0073ecb524ab17671c81ca69c29e214
2
SIZE (pkg_replace-0.8.0.tar.bz2) = 17296
2
SIZE (pkg_replace-0.8.0.tar.bz2) = 17296
3
SHA256 (patch-sbin-pkg_replace-pkg_replace.sh) = 30a4f9037c1d2ffbc3b8076bec9be47e67ea0beb9c85687597e8d36845bbcc56
4
SIZE (patch-sbin-pkg_replace-pkg_replace.sh) = 11124
(-)pkg_replace/pkg-plist (-1 / +4 lines)
Lines 1-6 Link Here
1
etc/pkg_replace.conf.sample
2
man/man1/pkg_replace.1.gz
3
%%PKGDB_FIX%%man/man1/pkgdb_fix.1.gz
1
sbin/pkg_replace
4
sbin/pkg_replace
2
%%PKGDB_FIX%%sbin/pkgdb_fix
5
%%PKGDB_FIX%%sbin/pkgdb_fix
3
etc/pkg_replace.conf.sample
4
%%ZSH%%share/zsh/site-functions/_pkg_replace
6
%%ZSH%%share/zsh/site-functions/_pkg_replace
5
%%ZSH%%@unexec [ -f %D/bin/zsh ] || rmdir %D/share/zsh/site-functions 2>/dev/null || true
7
%%ZSH%%@unexec [ -f %D/bin/zsh ] || rmdir %D/share/zsh/site-functions 2>/dev/null || true
8
%%ZSH%%@dirrmtry share/zsh/site-functions
6
%%ZSH%%@dirrmtry share/zsh
9
%%ZSH%%@dirrmtry share/zsh

Return to bug 182371