diff options
Diffstat (limited to 'pkgtools/pkg')
-rw-r--r-- | pkgtools/pkg/DESCR | 3 | ||||
-rw-r--r-- | pkgtools/pkg/Makefile | 84 | ||||
-rw-r--r-- | pkgtools/pkg/PLIST | 55 | ||||
-rw-r--r-- | pkgtools/pkg/distinfo | 5 |
4 files changed, 147 insertions, 0 deletions
diff --git a/pkgtools/pkg/DESCR b/pkgtools/pkg/DESCR new file mode 100644 index 00000000000..442989aa438 --- /dev/null +++ b/pkgtools/pkg/DESCR @@ -0,0 +1,3 @@ +pkg is built on top of libpkg, a new library to interface with package +registration backends. It abstracts package management details such as +registration, remote repositories, package creation, updating, etc. diff --git a/pkgtools/pkg/Makefile b/pkgtools/pkg/Makefile new file mode 100644 index 00000000000..3201ed4cf12 --- /dev/null +++ b/pkgtools/pkg/Makefile @@ -0,0 +1,84 @@ +# $NetBSD: Makefile,v 1.1 2015/07/04 14:37:25 khorben Exp $ + +VERSION= 1.5.4 +DISTNAME= ${VERSION} +PKGNAME= pkg-${VERSION} +CATEGORIES= pkgtools +MASTER_SITES= ${MASTER_SITE_GITHUB:=freebsd/pkg/archive/} + +MAINTAINER= khorben@defora.org +HOMEPAGE= https://wiki.freebsd.org/pkgng +COMMENT= Package management tool for FreeBSD +LICENSE= 2-clause-bsd + +WRKSRC= ${WRKDIR}/pkg-${VERSION} + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= autoconf +USE_TOOLS+= automake +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ + +CPPFLAGS+= -D_LOCALBASE="\"${PREFIX}\"" +CPPFLAGS+= -DPORTSDIR="\"/usr/pkgsrc\"" + +AUTO_MKDIRS= yes + +EGDIR= ${PREFIX}/share/examples/pkg + +CONF_FILES+= ${EGDIR}/bash_completion.d/_pkg.bash \ + ${PKG_SYSCONFDIR}/bash_completion.d/_pkg.bash +CONF_FILES+= ${EGDIR}/periodic/daily/411.pkg-backup \ + ${PKG_SYSCONFDIR}/periodic/daily/411.pkg-backup +CONF_FILES+= ${EGDIR}/periodic/daily/490.status-pkg-changes \ + ${PKG_SYSCONFDIR}/periodic/daily/490.status-pkg-changes +CONF_FILES+= ${EGDIR}/periodic/security/410.pkg-audit \ + ${PKG_SYSCONFDIR}/periodic/security/410.pkg-audit +CONF_FILES+= ${EGDIR}/periodic/security/460.pkg-checksum \ + ${PKG_SYSCONFDIR}/periodic/security/460.pkg-checksum +CONF_FILES+= ${EGDIR}/periodic/weekly/400.status-pkg \ + ${PKG_SYSCONFDIR}/periodic/weekly/400.status-pkg +CONF_FILES+= ${EGDIR}/pkg.conf.sample \ + ${PKG_SYSCONFDIR}/pkg.conf + +SUBST_CLASSES+= manpages-prefix +SUBST_STAGE.manpages-prefix= pre-install +SUBST_FILES.manpages-prefix= docs/pkg-install.8 docs/pkg-repo.8 +SUBST_FILES.manpages-prefix+= docs/pkg-search.8 docs/pkg-update.8 +SUBST_FILES.manpages-prefix+= docs/pkg-upgrade.8 docs/pkg.8 +SUBST_FILES.manpages-prefix+= docs/pkg.conf.5 +SUBST_SED.manpages-prefix+= -e "s|/usr/local|${PREFIX}|g" +SUBST_MESSAGE.manpages-prefix= Correct the installation prefix in manual pages. + +SUBST_CLASSES+= pkgconf-prefix +SUBST_STAGE.pkgconf-prefix= pre-install +SUBST_FILES.pkgconf-prefix= src/pkg.conf.sample +SUBST_SED.pkgconf-prefix+= -e "s|/usr/local|${PREFIX}|g" +SUBST_MESSAGE.pkgconf-prefix= Correct the installation prefix in pkg.conf(5). + +pre-configure: + cd ${WRKSRC} && ./autogen.sh + +post-install: + ${MV} ${DESTDIR}${PREFIX}/etc/bash_completion.d/_pkg.bash \ + ${DESTDIR}${EGDIR}/bash_completion.d/_pkg.bash + ${RMDIR} ${DESTDIR}${PREFIX}/etc/bash_completion.d + ${MV} ${DESTDIR}${PREFIX}/etc/periodic/daily/411.pkg-backup \ + ${DESTDIR}${EGDIR}/periodic/daily/411.pkg-backup + ${MV} ${DESTDIR}${PREFIX}/etc/periodic/daily/490.status-pkg-changes \ + ${DESTDIR}${EGDIR}/periodic/daily/490.status-pkg-changes + ${RMDIR} ${DESTDIR}${PREFIX}/etc/periodic/daily + ${MV} ${DESTDIR}${PREFIX}/etc/periodic/security/410.pkg-audit \ + ${DESTDIR}${EGDIR}/periodic/security/410.pkg-audit + ${MV} ${DESTDIR}${PREFIX}/etc/periodic/security/460.pkg-checksum \ + ${DESTDIR}${EGDIR}/periodic/security/460.pkg-checksum + ${RMDIR} ${DESTDIR}${PREFIX}/etc/periodic/security + ${MV} ${DESTDIR}${PREFIX}/etc/periodic/weekly/400.status-pkg \ + ${DESTDIR}${EGDIR}/periodic/weekly/400.status-pkg + ${RMDIR} ${DESTDIR}${PREFIX}/etc/periodic/weekly + ${MV} ${DESTDIR}${PREFIX}/etc/pkg.conf.sample \ + ${DESTDIR}${EGDIR}/pkg.conf.sample + +.include "../../archivers/libarchive/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pkg/PLIST b/pkgtools/pkg/PLIST new file mode 100644 index 00000000000..4c0d8b49d69 --- /dev/null +++ b/pkgtools/pkg/PLIST @@ -0,0 +1,55 @@ +@comment $NetBSD: PLIST,v 1.1 2015/07/04 14:37:25 khorben Exp $ +include/pkg.h +lib/libpkg.la +lib/libpkg_static.la +libdata/pkgconfig/pkg.pc +man/man3/pkg_printf.3 +man/man3/pkg_repos.3 +man/man5/pkg-repository.5 +man/man5/pkg.conf.5 +man/man8/pkg-add.8 +man/man8/pkg-alias.8 +man/man8/pkg-annotate.8 +man/man8/pkg-audit.8 +man/man8/pkg-autoremove.8 +man/man8/pkg-backup.8 +man/man8/pkg-check.8 +man/man8/pkg-clean.8 +man/man8/pkg-config.8 +man/man8/pkg-convert.8 +man/man8/pkg-create.8 +man/man8/pkg-delete.8 +man/man8/pkg-fetch.8 +man/man8/pkg-info.8 +man/man8/pkg-install.8 +man/man8/pkg-lock.8 +man/man8/pkg-query.8 +man/man8/pkg-register.8 +man/man8/pkg-remove.8 +man/man8/pkg-repo.8 +man/man8/pkg-rquery.8 +man/man8/pkg-search.8 +man/man8/pkg-set.8 +man/man8/pkg-shell.8 +man/man8/pkg-shlib.8 +man/man8/pkg-ssh.8 +man/man8/pkg-static.8 +man/man8/pkg-stats.8 +man/man8/pkg-unlock.8 +man/man8/pkg-update.8 +man/man8/pkg-updating.8 +man/man8/pkg-upgrade.8 +man/man8/pkg-version.8 +man/man8/pkg-which.8 +man/man8/pkg.8 +sbin/pkg +sbin/pkg-static +sbin/pkg2ng +share/examples/pkg/bash_completion.d/_pkg.bash +share/examples/pkg/periodic/daily/411.pkg-backup +share/examples/pkg/periodic/daily/490.status-pkg-changes +share/examples/pkg/periodic/security/410.pkg-audit +share/examples/pkg/periodic/security/460.pkg-checksum +share/examples/pkg/periodic/weekly/400.status-pkg +share/examples/pkg/pkg.conf.sample +share/zsh/site-functions/_pkg diff --git a/pkgtools/pkg/distinfo b/pkgtools/pkg/distinfo new file mode 100644 index 00000000000..2bda0c20c7a --- /dev/null +++ b/pkgtools/pkg/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/07/04 14:37:25 khorben Exp $ + +SHA1 (1.5.4.tar.gz) = 2e58510fa9b9eb97b6d9e0d62e527228601af1c1 +RMD160 (1.5.4.tar.gz) = b38582e325752a329eb353212783850db6b138ea +Size (1.5.4.tar.gz) = 2937244 bytes |