[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / consolekit

File: [cvs.NetBSD.org] / pkgsrc / sysutils / consolekit / Makefile (download)

Revision 1.43, Sun Aug 11 13:23:06 2019 UTC (3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, HEAD
Changes since 1.42: +2 -2 lines

Bump PKGREVISIONs for perl 5.30.0

# $NetBSD: Makefile,v 1.43 2019/08/11 13:23:06 wiz Exp $

CONSOLEKIT_VER=	1.2.1
PKGREVISION=	3
DISTNAME=	ConsoleKit2-${CONSOLEKIT_VER}
PKGNAME=	consolekit-${CONSOLEKIT_VER}
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}			\
		--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

.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"