44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2014/02/08 15:59:30 jmmv Exp $
|
|
|
|
DISTNAME= sysupgrade-1.5
|
|
PKGREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= https://github.com/jmmv/sysupgrade/releases/download/sysupgrade-1.5/
|
|
|
|
MAINTAINER= jmmv@NetBSD.org
|
|
COMMENT= Automate upgrades of NetBSD
|
|
LICENSE= modified-bsd
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
GNU_CONFIGURE= yes
|
|
TEST_TARGET= check
|
|
USE_LANGUAGES= # empty
|
|
USE_TOOLS= pkg-config
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
SYSUPGRADE_CACHEDIR= ${VARBASE}/cache/sysupgrade
|
|
OWN_DIRS= ${SYSUPGRADE_CACHEDIR} root wheel
|
|
CONFIGURE_ARGS+= SYSUPGRADE_CACHEDIR=${SYSUPGRADE_CACHEDIR}
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
|
|
EGDIR= ${PREFIX}/share/examples/sysupgrade
|
|
CONF_FILES+= ${EGDIR}/default.conf ${PKG_SYSCONFDIR}/sysupgrade.conf
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.sysupgrade
|
|
PKG_SUPPORTED_OPTIONS= tests
|
|
PKG_SUGGESTED_OPTIONS= tests
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if $(PKG_OPTIONS:Mtests)
|
|
. include "../../devel/atf/buildlink3.mk"
|
|
PLIST_SUBST+= TESTS=
|
|
.else
|
|
PLIST_SUBST+= TESTS=@comment
|
|
.endif
|
|
|
|
BUILDLINK_API_DEPENDS.shtk+= shtk>=1.3
|
|
.include "../../devel/shtk/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|