| @@ -1,31 +1,31 @@ | | | @@ -1,31 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.8 2016/10/27 00:24:58 khorben Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2016/10/27 13:22:44 marino Exp $ |
2 | | | 2 | |
3 | DISTNAME= pkg-1.8.7 | | 3 | DISTNAME= pkg-1.8.7 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= pkgtools | | 5 | CATEGORIES= pkgtools |
6 | MASTER_SITES= http://files.etoilebsd.net/pkg/ | | 6 | MASTER_SITES= http://files.etoilebsd.net/pkg/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= khorben@defora.org | | 9 | MAINTAINER= khorben@defora.org |
10 | HOMEPAGE= https://wiki.freebsd.org/pkgng | | 10 | HOMEPAGE= https://wiki.freebsd.org/pkgng |
11 | COMMENT= Package management tool for FreeBSD | | 11 | COMMENT= Package management tool for FreeBSD |
12 | LICENSE= 2-clause-bsd | | 12 | LICENSE= 2-clause-bsd |
13 | | | 13 | |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
15 | USE_LANGUAGES= c | | 15 | USE_LANGUAGES= c |
16 | | | 16 | |
17 | CPPFLAGS+= -D_LOCALBASE="\"${PREFIX}\"" | | 17 | CPPFLAGS+= -D_LOCALBASE="\"${PREFIX}\"" |
18 | CPPFLAGS+= -DPORTSDIR="\"${PKGSRCDIR}\"" | | 18 | CPPFLAGS+= -DPORTSDIR="\"${PKG.portsdir}\"" |
19 | | | 19 | |
20 | AUTO_MKDIRS= yes | | 20 | AUTO_MKDIRS= yes |
21 | | | 21 | |
22 | EGDIR= ${PREFIX}/share/examples/pkg | | 22 | EGDIR= ${PREFIX}/share/examples/pkg |
23 | | | 23 | |
24 | CONF_FILES+= ${EGDIR}/bash_completion.d/_pkg.bash \ | | 24 | CONF_FILES+= ${EGDIR}/bash_completion.d/_pkg.bash \ |
25 | ${PKG_SYSCONFDIR}/bash_completion.d/_pkg.bash | | 25 | ${PKG_SYSCONFDIR}/bash_completion.d/_pkg.bash |
26 | CONF_FILES+= ${EGDIR}/periodic/daily/411.pkg-backup \ | | 26 | CONF_FILES+= ${EGDIR}/periodic/daily/411.pkg-backup \ |
27 | ${PKG_SYSCONFDIR}/periodic/daily/411.pkg-backup | | 27 | ${PKG_SYSCONFDIR}/periodic/daily/411.pkg-backup |
28 | CONF_FILES+= ${EGDIR}/periodic/daily/490.status-pkg-changes \ | | 28 | CONF_FILES+= ${EGDIR}/periodic/daily/490.status-pkg-changes \ |
29 | ${PKG_SYSCONFDIR}/periodic/daily/490.status-pkg-changes | | 29 | ${PKG_SYSCONFDIR}/periodic/daily/490.status-pkg-changes |
30 | CONF_FILES+= ${EGDIR}/periodic/security/410.pkg-audit \ | | 30 | CONF_FILES+= ${EGDIR}/periodic/security/410.pkg-audit \ |
31 | ${PKG_SYSCONFDIR}/periodic/security/410.pkg-audit | | 31 | ${PKG_SYSCONFDIR}/periodic/security/410.pkg-audit |
| @@ -51,35 +51,35 @@ SUBST_FILES.pkgconf-prefix= src/pkg.conf | | | @@ -51,35 +51,35 @@ SUBST_FILES.pkgconf-prefix= src/pkg.conf |
51 | SUBST_SED.pkgconf-prefix+= -e "s|/usr/local|${PREFIX}|g" | | 51 | SUBST_SED.pkgconf-prefix+= -e "s|/usr/local|${PREFIX}|g" |
52 | SUBST_MESSAGE.pkgconf-prefix= Correct the installation prefix in pkg.conf(5). | | 52 | SUBST_MESSAGE.pkgconf-prefix= Correct the installation prefix in pkg.conf(5). |
53 | | | 53 | |
54 | SUBST_CLASSES+= portsdir | | 54 | SUBST_CLASSES+= portsdir |
55 | SUBST_STAGE.portsdir= pre-install | | 55 | SUBST_STAGE.portsdir= pre-install |
56 | SUBST_FILES.portsdir= libpkg/pkg_config.c \ | | 56 | SUBST_FILES.portsdir= libpkg/pkg_config.c \ |
57 | src/pkg.conf.sample \ | | 57 | src/pkg.conf.sample \ |
58 | docs/pkg-create.8 \ | | 58 | docs/pkg-create.8 \ |
59 | docs/pkg-set.8 \ | | 59 | docs/pkg-set.8 \ |
60 | docs/pkg-repo.8 \ | | 60 | docs/pkg-repo.8 \ |
61 | docs/pkg.conf.5 \ | | 61 | docs/pkg.conf.5 \ |
62 | docs/pkg-version.8 \ | | 62 | docs/pkg-version.8 \ |
63 | docs/pkg.8 | | 63 | docs/pkg.8 |
64 | SUBST_SED.portsdir= -e "s|/usr/ports|${PORTSDIR}|g" \ | | 64 | SUBST_SED.portsdir= -e "s|/usr/ports|${PKG.portsdir}|g" \ |
65 | -e "s|/var/db/pkg|/var/db/pkgng|g" \ | | 65 | -e "s|/var/db/pkg|/var/db/pkgng|g" \ |
66 | -e "s|/var/cache/pkg|/var/cache/pkgng|g" | | 66 | -e "s|/var/cache/pkg|/var/cache/pkgng|g" |
67 | SUBST_MESSAGE.portsdir= Correct reference to FreeBSD portsdir. | | 67 | SUBST_MESSAGE.portsdir= Correct reference to FreeBSD portsdir. |
68 | | | 68 | |
69 | .if defined(PACKAGE_BUILDING) # set by Synth which has custom location, so use default path | | 69 | .if defined(PACKAGE_BUILDING) # set by Synth which has custom location, so use default path |
70 | PORTSDIR= /usr/pkgsrc | | 70 | PKG.portsdir?= /usr/pkgsrc |
71 | .else | | 71 | .else |
72 | PORTSDIR= ${PKGSRCDIR} | | 72 | PKG.portsdir?= ${PKGSRCDIR} |
73 | .endif | | 73 | .endif |
74 | | | 74 | |
75 | # DragonFly SSL libraries are private. pkg(8) is the one exception of a userland | | 75 | # DragonFly SSL libraries are private. pkg(8) is the one exception of a userland |
76 | # program that is allowed to link to them due to bootstrap reasons | | 76 | # program that is allowed to link to them due to bootstrap reasons |
77 | .if exists(/usr/lib/priv/libprivate_ssl.so) | | 77 | .if exists(/usr/lib/priv/libprivate_ssl.so) |
78 | BUILDLINK_PASSTHRU_RPATHDIRS= /lib/priv | | 78 | BUILDLINK_PASSTHRU_RPATHDIRS= /lib/priv |
79 | .endif | | 79 | .endif |
80 | | | 80 | |
81 | post-patch: | | 81 | post-patch: |
82 | ${CP} ${FILESDIR}/readpassphrase_compat.h \ | | 82 | ${CP} ${FILESDIR}/readpassphrase_compat.h \ |
83 | ${WRKSRC}/src/ | | 83 | ${WRKSRC}/src/ |
84 | | | 84 | |
85 | # DragonFly SSL libraries are private. | | 85 | # DragonFly SSL libraries are private. |