blob: 55ce902aa91ca3fb44bd96b61e3cab44c0b966fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.12 2007/08/06 15:07:56 tnn Exp $
DISTNAME= pkg_rolling-replace-0.6
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= ngoffee@bbn.com
COMMENT= Replace/upgrade packages in-place
DEPENDS+= pkg_chk>=1.76:../../pkgtools/pkg_chk
DEPENDS+= pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= patch
WRKSRC= ${WRKDIR}
NO_CHECKSUM= yes
NO_BUILD= yes
USE_LANGUAGES= # none
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
PKG_CHK?= ${PREFIX}/sbin/pkg_chk
SUBST_CLASSES+= tools
SUBST_STAGE.tools= pre-configure
SUBST_MESSAGE.tools= Substituting tool locations.
SUBST_FILES.tools= pkg_rolling-replace.sh
SUBST_VARS.tools= PKG_INFO_CMD PKG_ADMIN MAKE PKG_CHK
SUBST_CLASSES+= makeconf
SUBST_STAGE.makeconf= pre-configure
SUBST_MESSAGE.makeconf= Recording default path of mk.conf.
SUBST_FILES.makeconf= pkg_rolling-replace.sh
SUBST_SED.makeconf= -e 's,@MAKECONF@,${MAKE:T:Mbmake:S/bmake/${PREFIX}/g}/etc/mk.conf,g'
REPLACE_SH+= pkg_rolling-replace.sh
.include "../../mk/bsd.prefs.mk"
# target exists only to force check-pkgsrc-patch prior to install
do-extract: check-pkgsrc-patch
cp ${FILESDIR}/pkg_rolling-replace.sh ${WRKSRC}
do-install: check-pkgsrc-patch
${INSTALL_SCRIPT} ${WRKSRC}/pkg_rolling-replace.sh \
${PREFIX}/sbin/pkg_rolling-replace
${INSTALL_MAN} ${FILESDIR}/pkg_rolling-replace.8 \
${PREFIX}/${PKGMANDIR}/man8/pkg_rolling-replace.8
check-pkgsrc-patch:
@${ECHO_N} "=> Checking for unsafe_depends support in pkgsrc..."; \
REPLACE_MK="${PKGSRCDIR}/mk/flavor/pkg/replace.mk"; \
if [ -f "$$REPLACE_MK" ]; then \
if [ "`${EGREP} unsafe_depends=YES $$REPLACE_MK`" ]; then \
${ECHO} "found."; \
${TRUE}; \
else \
${ECHO}; \
${ECHO} "*** pkg_rolling replace requires pkgsrc>=2006Q3" \
${FALSE}; \
fi; \
else \
${ECHO} "*** pkg_rolling replace requires pkgsrc>=2006Q3"; \
${FALSE}; \
fi
.include "../../mk/bsd.pkg.mk"
|