Annotation of pkgsrc/pkgtools/pkg_install/Makefile, Revision 1.130.4.1
1.130.4.1! salo 1: # $NetBSD: Makefile,v 1.131 2007/07/10 15:19:18 joerg Exp $
1.4 hubertf 2:
1.58 schmonz 3: # Notes to package maintainers:
1.57 hubertf 4: #
1.58 schmonz 5: # To update this package, import from src/usr.sbin/pkg_install.
1.57 hubertf 6: #
1.58 schmonz 7: # Updating this package does not automatically necessitate bumping
8: # PKGTOOLS_REQD in bsd.pkg.mk. Do so if and only if there is a critical
9: # change in the pkg_* tools that pkgsrc relies on for proper operation.
1.57 hubertf 10:
1.58 schmonz 11: DISTNAME= pkg_install-${VERSION}
1.1 agc 12: CATEGORIES= pkgtools
1.58 schmonz 13: MASTER_SITES= # empty
14: DISTFILES= # empty
1.1 agc 15:
1.123 jlam 16: MAINTAINER= pkgsrc-users@NetBSD.org
1.82 reed 17: HOMEPAGE= http://www.pkgsrc.org/
1.90 grant 18: COMMENT= Package management and administration tools for pkgsrc
1.60 schmonz 19:
1.115 rillig 20: GNU_CONFIGURE= yes
1.122 rillig 21: CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR:Q}
1.110 uebayasi 22: CONFIGURE_ARGS+= --with-ftp="\"${FETCH_CMD}"\"
23: CONFIGURE_ARGS+= --with-mtree="\"${MTREE}"\"
24: CONFIGURE_ARGS+= --with-pax="\"${PAX}"\"
25: CONFIGURE_ARGS+= --with-tar="\"${TAR}"\"
1.122 rillig 26: USE_TOOLS+= mtree pax tar
1.58 schmonz 27:
1.113 jlam 28: # The following tools are needed by pkg_view and linkfarm.
1.114 jlam 29: USE_TOOLS+= chmod cmp cp env find grep ln mkdir rm rmdir \
1.113 jlam 30: sed sort touch
31:
1.121 erh 32: SKIP_AUDIT_PACKAGES= yes
1.122 rillig 33: NO_PKGTOOLS_REQD_CHECK= yes
1.115 rillig 34: NO_CHECKSUM= yes
35: NO_MTREE= yes
1.122 rillig 36: PKG_PRESERVE= yes
1.1 agc 37:
1.97 jlam 38: # These are needed to solve a chicken-and-egg problem where pkgsrc uses
1.96 jlam 39: # newer features of pkg_install, but older NetBSD installations won't
40: # support them. In this case, we explicitly use the native GCC
41: # compiler to avoid problems with depending on pkgsrc GCC for building
1.128 jlam 42: # pkg_install.
1.117 jlam 43: #
44: # We also use the newly built pkg_delete since upgrading from an older
45: # pkg_install might required features of the new program.
1.96 jlam 46: #
47: USE_NATIVE_GCC= yes
1.117 jlam 48: PKG_DELETE= ${WRKSRC}/delete/pkg_delete
1.89 grant 49:
1.100 tv 50: CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK}
51:
1.122 rillig 52: MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q}
53: MAKE_ENV+= OPSYS=${OPSYS:Q}
1.91 grant 54:
1.92 jlam 55: PKG_DBDIR?= /var/db/pkg
1.122 rillig 56: PKG_INFO= PKG_DBDIR=${PKG_DBDIR:Q} ${PKG_INFO_CMD}
57: PKG_ADMIN= PKG_DBDIR=${PKG_DBDIR:Q} ${PKG_ADMIN_CMD}
1.92 jlam 58:
1.122 rillig 59: PLIST_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q}
1.117 jlam 60:
1.125 jlam 61: DEINSTALL_SRC= # empty
1.124 jlam 62: INSTALL_SRC= ${PKGDIR}/INSTALL
63: FILES_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} \
64: PKG_TOOLS_BIN=${PKG_TOOLS_BIN:Q} \
65: MKDIR=${MKDIR:Q}
66:
1.92 jlam 67: .include "../../mk/bsd.prefs.mk"
68:
1.58 schmonz 69: VERSION!= ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
70: ${FILESDIR}/lib/version.h
1.78 jlam 71:
1.58 schmonz 72: do-extract:
1.107 tv 73: @${CP} -R ${FILESDIR} ${WRKSRC}
1.12 hubertf 74:
1.106 erh 75: # XXX Reverse the order that update does things since
76: # XXX we need pkg_delete built before we can deinstall.
77: # XXX This should probably be the default order for all packages.
78: update:
79: ${MAKE}
1.127 jlam 80: ${MAKE} deinstall _UPDATE_RUNNING=YES
1.118 jlam 81: ${MAKE} ${UPDATE_TARGET}
1.108 jklos 82: ${MAKE} clean
1.106 erh 83:
1.103 jlam 84: .include "../../pkgtools/libnbcompat/inplace.mk"
1.1 agc 85: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>