pkgsrc/pkgtools/pkg_comp/Makefile
jmmv d09daef189 Update pkg_comp to 2.1:
Changes in version 2.1
======================

**Released on 2019-01-14.**

* Issue 3: Added a new `PBULK_LOG` setting to point at a location that
  holds all build logs, and made the `build` command print out details
  about such logs on success and failure.

* Issue 4: Fixed the installable bootstrap kit generated during a build
  to not leak pkg_comp-internal paths.

* Issue 10: Fixed generation of pkg_summary so that it includes all
  packages and not only those that were explicitly given to the `auto`
  or `build` commands after a clean rebuild of the sandbox.

* PR 20: Fixed the default Git repository from jsonn's to NetBSD's as
  it has moved upstream.

* Added a new `PKG_DEVELOPER` setting to enable pkgsrc development
  from within the sandbox.
2019-01-14 10:53:37 +00:00

55 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.61 2019/01/14 10:53:37 jmmv Exp $
DISTNAME= pkg_comp-2.1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/}pkg_comp/releases/download/pkg_comp-2.1/
MAINTAINER= jmmv@NetBSD.org
COMMENT= Automates builds of packages and manages pkgsrc trees
LICENSE= modified-bsd
DEPENDS= sandboxctl>=1.1:../../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=
CONFIGURE_ARGS+= SANDBOXCTL=${PREFIX}/sbin/sandboxctl
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
# Substitute for the correct location of the configuration files
# for sandboxctl.
SUBST_CLASSES+= sandboxctl
SUBST_STAGE.sandboxctl= pre-configure
SUBST_FILES.sandboxctl= sandbox.conf.in
SUBST_SED.sandboxctl= -e 's,__PKG_COMP_BASESYSCONFDIR__/sandboxctl/,${SANDBOXCTL_SYSCONFDIR}/,g'
SANDBOXCTL_SYSCONFDIR= ${PKG_SYSCONFDIR.sandboxctl:U${PKG_SYSCONFBASE}/sandboxctl}
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"