# $NetBSD: Makefile,v 1.9 2014/10/09 14:07:00 wiz 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 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"