blob: 5ab03e46356302c71abbb3d48257c0b5d37d8078 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.35 2017/10/13 16:36:04 prlw1 Exp $
CONSOLEKIT_VER= 1.0.2
DISTNAME= ConsoleKit2-1.0.2
PKGNAME= consolekit-${CONSOLEKIT_VER}
PKGREVISION= 1
CATEGORIES= sysutils
GITHUB_RELEASE= ${CONSOLEKIT_VER}
GITHUB_PROJECT= ConsoleKit2
MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= youri@NetBSD.org
HOMEPAGE= https://github.com/ConsoleKit2/ConsoleKit2/
COMMENT= Framework for defining and tracking users, login sessions, and seats
LICENSE= gnu-gpl-v2
MESSAGE_SUBST+= PREFIX=${PREFIX}
BUILD_DEFS+= VARBASE \
PKG_SYSCONFBASE
EGDIR= ${PREFIX}/share/examples/consolekit
PKG_SYSCONFSUBDIR= ConsoleKit
RULESDIR= ${PREFIX}/share/polkit-1/rules.d
MAKE_DIRS= ${PKG_SYSCONFDIR}/run-seat.d \
${PKG_SYSCONFDIR}/run-session.d \
${PKG_SYSCONFDIR}/seats.d \
${PKG_SYSCONFBASE}/dbus-1/system.d \
${PKG_SYSCONFBASE}/logrotate.d \
${PKG_SYSCONFBASE}/X11/xinit/xinitrc.d
CONF_FILES+= ${EGDIR}/ConsoleKit/seats.d/00-primary.seat \
${PKG_SYSCONFDIR}/seats.d/00-primary.seat \
${EGDIR}/dbus-1/system.d/ConsoleKit.conf \
${PKG_SYSCONFBASE}/dbus-1/system.d/ConsoleKit.conf \
${EGDIR}/logrotate.d/consolekit \
${PKG_SYSCONFBASE}/logrotate.d/consolekit \
${EGDIR}/X11/xinit/xinitrc.d/90-consolekit \
${PKG_SYSCONFBASE}/X11/xinit/xinitrc.d/90-consolekit
GNU_CONFIGURE= YES
USE_TOOLS+= gmake intltool msgfmt perl pkg-config automake
USE_LIBTOOL= YES
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFBASE} \
--localstatedir=${VARBASE} \
--enable-pam-module \
--with-pam-module-dir=${PREFIX}/lib/security \
CONFIGURE_ARGS.SunOS+= --enable-rbac-shutdown=solaris.system.shutdown
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} \
DBUS_SYS_DIR=${EGDIR}/dbus-1/system.d \
XINITRC_DIR=${EGDIR}/X11/xinit/xinitrc.d
post-install:
${MKDIR} ${DESTDIR}${RULESDIR} && \
${INSTALL_DATA} ${FILESDIR}/50-shutdown.rules \
${DESTDIR}${RULESDIR}/50-shutdown.rules
.include "../../devel/glib2/buildtools.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/polkit/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|