summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgtools/Makefile3
-rw-r--r--pkgtools/pkg_comp/DESCR6
-rw-r--r--pkgtools/pkg_comp/Makefile46
-rw-r--r--pkgtools/pkg_comp/PLIST24
-rw-r--r--pkgtools/pkg_comp/distinfo6
5 files changed, 84 insertions, 1 deletions
diff --git a/pkgtools/Makefile b/pkgtools/Makefile
index eaaf8dfec89..b4717031142 100644
--- a/pkgtools/Makefile
+++ b/pkgtools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.115 2017/02/12 10:48:55 jmmv Exp $
+# $NetBSD: Makefile,v 1.116 2017/02/17 21:25:46 jmmv Exp $
#
COMMENT= Tools for use in the packages collection
@@ -34,6 +34,7 @@ SUBDIR+= pbulk-base
SUBDIR+= pkg
SUBDIR+= pkg_alternatives
SUBDIR+= pkg_chk
+SUBDIR+= pkg_comp
SUBDIR+= pkg_comp1
SUBDIR+= pkg_distinst
SUBDIR+= pkg_filecheck
diff --git a/pkgtools/pkg_comp/DESCR b/pkgtools/pkg_comp/DESCR
new file mode 100644
index 00000000000..b3efc8950d0
--- /dev/null
+++ b/pkgtools/pkg_comp/DESCR
@@ -0,0 +1,6 @@
+pkg_comp is a tool to automate the maintenance of pkgsrc binary packages
+and the pkgsrc source tree by means of a single command and a configuration
+file that tells pkg_comp what to do.
+
+Make sure to check the pgbuild-user package for a way to trivially set
+up periodic package rebuilds.
diff --git a/pkgtools/pkg_comp/Makefile b/pkgtools/pkg_comp/Makefile
new file mode 100644
index 00000000000..97ee4ff704b
--- /dev/null
+++ b/pkgtools/pkg_comp/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.57 2017/02/17 21:25:46 jmmv Exp $
+
+DISTNAME= pkg_comp-2.0
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/}pkg_comp/releases/download/pkg_comp-2.0/
+
+MAINTAINER= jmmv@NetBSD.org
+COMMENT= Automates builds of packages and manages pkgsrc trees
+LICENSE= modified-bsd
+
+DEPENDS= sandboxctl>=1.0:../../sysutils/sandboxctl
+
+GNU_CONFIGURE= yes
+TEST_TARGET= check
+USE_LANGUAGES= # empty
+USE_TOOLS= pkg-config
+
+PKG_SYSCONFSUBDIR= pkg_comp
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= PKG_COMP_CONFSUBDIR=
+INSTALL_MAKE_FLAGS+= pkg_comp_confdir=${EGDIR}
+EGDIR= ${PREFIX}/share/examples/pkg_comp
+CONF_FILES+= ${EGDIR}/default.conf ${PKG_SYSCONFDIR}/default.conf
+CONF_FILES+= ${EGDIR}/extra.mk.conf ${PKG_SYSCONFDIR}/extra.mk.conf
+CONF_FILES+= ${EGDIR}/sandbox.conf ${PKG_SYSCONFDIR}/sandbox.conf
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pkg_comp
+PKG_SUPPORTED_OPTIONS= tests
+PKG_SUGGESTED_OPTIONS= tests
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtests)
+. include "../../devel/atf/buildlink3.mk"
+PLIST_SUBST+= TESTS=
+.else
+CONFIGURE_ARGS+= --with-atf=no
+PLIST_SUBST+= TESTS=@comment
+
+post-install:
+ rm -rf "${PREFIX}/share/tests/pkg_comp"
+.endif
+
+BUILDLINK_API_DEPENDS.shtk+= shtk>=1.7
+.include "../../devel/shtk/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/pkg_comp/PLIST b/pkgtools/pkg_comp/PLIST
new file mode 100644
index 00000000000..99eb1b794f1
--- /dev/null
+++ b/pkgtools/pkg_comp/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.3 2017/02/17 21:25:46 jmmv Exp $
+man/man5/pkg_comp.conf.5
+man/man8/pkg_comp.8
+man/man8/pkg_comp4cron.8
+sbin/pkg_comp
+sbin/pkg_comp4cron
+share/doc/pkg_comp/AUTHORS
+share/doc/pkg_comp/CONTRIBUTING.md
+share/doc/pkg_comp/CONTRIBUTORS
+share/doc/pkg_comp/COPYING
+share/doc/pkg_comp/NEWS
+share/examples/pkg_comp/default.conf
+share/examples/pkg_comp/extra.mk.conf
+share/examples/pkg_comp/sandbox.conf
+share/pkg_comp/sandbox.conf.post
+share/pkg_comp/sandbox.conf.pre
+share/shtk/pkg_comp_git.subr
+share/shtk/pkg_comp_pkgsrc.subr
+${TESTS}tests/pkg_comp/Kyuafile
+${TESTS}tests/pkg_comp/pkg_comp_git_test
+${TESTS}tests/pkg_comp/pkg_comp_inttest
+${TESTS}tests/pkg_comp/pkg_comp_pkgsrc_test
+${TESTS}tests/pkg_comp/pkg_comp_test
+${TESTS}tests/pkg_comp/pkg_comp4cron_test
diff --git a/pkgtools/pkg_comp/distinfo b/pkgtools/pkg_comp/distinfo
new file mode 100644
index 00000000000..856e7fbe171
--- /dev/null
+++ b/pkgtools/pkg_comp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/02/17 21:25:46 jmmv Exp $
+
+SHA1 (pkg_comp-2.0.tar.gz) = fe91c1d3f42a30ccaed2da7ca4fcb68a8ce78d3f
+RMD160 (pkg_comp-2.0.tar.gz) = 8b41936bf8c28b0a9cc711aa566b947b57d8fdfa
+SHA512 (pkg_comp-2.0.tar.gz) = dd7d96e36e05a5c4bb3dc0bda6c27a574f86e4b279e4ab3a97d156959d5bf7a9d12bd4d029ddfcef7a368f15d1891eb17ccd9b428000cfca2d41ce2073d587a7
+Size (pkg_comp-2.0.tar.gz) = 92496 bytes