pkgsrc/sysutils/consolekit/Makefile
2021-01-30 10:23:16 +00:00

76 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.49 2021/01/30 10:23:16 jperkin Exp $
CONSOLEKIT_VER= 1.2.2
DISTNAME= ConsoleKit2-${CONSOLEKIT_VER}
PKGNAME= consolekit-${CONSOLEKIT_VER}
CATEGORIES= sysutils
GITHUB_TAG= ${CONSOLEKIT_VER}
GITHUB_PROJECT= ConsoleKit2
MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/}
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
USE_TOOLS+= autoconf automake autoreconf autopoint
USE_LIBTOOL= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} \
--localstatedir=${VARBASE} \
--disable-pam-module
#--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
TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen
pre-configure:
cd ${WRKSRC} && NOCONFIGURE=1 ${SH} autogen.sh
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/polkit/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../textproc/gtk-doc/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"