blob: a62e015df61586a96b59fcbc13ad157a80e92d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile,v 1.18 2021/03/14 08:44:01 nia Exp $
DISTNAME= sysupgrade-1.5
PKGREVISION= 8
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/}
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_PERMS= ${SYSUPGRADE_CACHEDIR} \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
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 !empty(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"
|