pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

consolekit: import for update review.



Module Name:	pkgsrc-wip
Committed By:	Youri Mouton <youri%netbsd.org@localhost>
Pushed By:	youri
Date:		Fri Jun 17 14:55:43 2016 +0000
Changeset:	ad3f3b2070c0c8bf2390711a3ad3f3101d8c1732

Added Files:
	consolekit/DESCR
	consolekit/Makefile
	consolekit/PLIST
	consolekit/buildlink3.mk
	consolekit/distinfo
	consolekit/files/50-shutdown.rules
	consolekit/patches/patch-data_Makefile.am

Log Message:
consolekit: import for update review.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ad3f3b2070c0c8bf2390711a3ad3f3101d8c1732

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 consolekit/DESCR                          |  4 ++
 consolekit/Makefile                       | 72 +++++++++++++++++++++++++++++++
 consolekit/PLIST                          | 43 ++++++++++++++++++
 consolekit/buildlink3.mk                  | 16 +++++++
 consolekit/distinfo                       |  7 +++
 consolekit/files/50-shutdown.rules        |  9 ++++
 consolekit/patches/patch-data_Makefile.am | 15 +++++++
 7 files changed, 166 insertions(+)

diffs:
diff --git a/consolekit/DESCR b/consolekit/DESCR
new file mode 100644
index 0000000..f8b1442
--- /dev/null
+++ b/consolekit/DESCR
@@ -0,0 +1,4 @@
+ConsoleKit is a framework for keeping track of the various users, sessions,
+and seats present on a system. It provides a mechanism for software to react
+to changes of any of these items or of any of the metadata associated with
+them.
diff --git a/consolekit/Makefile b/consolekit/Makefile
new file mode 100644
index 0000000..f407734
--- /dev/null
+++ b/consolekit/Makefile
@@ -0,0 +1,72 @@
+# $NetBSD: Makefile,v 1.30 2016/06/04 16:28:22 youri Exp $
+
+CONSOLEKIT_VER=	1.0.2
+DISTNAME=	${CONSOLEKIT_VER}
+PKGNAME=	consolekit-${CONSOLEKIT_VER}
+CATEGORIES=	sysutils
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ConsoleKit2/}
+
+MAINTAINER=	youri%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/ConsoleKit2/ConsoleKit2/
+COMMENT=	Framework for defining and tracking users, login sessions, and seats
+LICENSE=	gnu-gpl-v2
+
+GITHUB_PROJECT=	ConsoleKit2
+GITHUB_TAG=	${CONSOLEKIT_VER}
+
+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
+
+pre-configure:
+	cd ${WRKSRC} && ./autogen.sh #autoreconf -vi ${AUTORECONF_ARGS}
+
+post-install:
+	${MKDIR} ${DESTDIR}${RULESDIR} &&		\
+	${INSTALL_DATA} ${FILESDIR}/50-shutdown.rules	\
+	${DESTDIR}${RULESDIR}/50-shutdown.rules
+
+BUILD_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"
diff --git a/consolekit/PLIST b/consolekit/PLIST
new file mode 100644
index 0000000..3e19f87
--- /dev/null
+++ b/consolekit/PLIST
@@ -0,0 +1,43 @@
+@comment $NetBSD$
+bin/ck-history
+bin/ck-launch-session
+bin/ck-list-sessions
+include/ConsoleKit/ck-connector/ck-connector.h
+lib/ConsoleKit/scripts/ck-system-hibernate
+lib/ConsoleKit/scripts/ck-system-hybridsleep
+lib/ConsoleKit/scripts/ck-system-restart
+lib/ConsoleKit/scripts/ck-system-stop
+lib/ConsoleKit/scripts/ck-system-suspend
+lib/libck-connector.la
+lib/pkgconfig/ck-connector.pc
+lib/security/pam_ck_connector.la
+libexec/ck-collect-session-info
+libexec/ck-get-x11-display-device
+libexec/ck-get-x11-server-pid
+man/man1/ck-history.1
+man/man1/ck-launch-session.1
+man/man1/ck-list-sessions.1
+man/man1/console-kit-daemon.1m
+man/man8/pam_ck_connector.8
+sbin/ck-log-system-restart
+sbin/ck-log-system-start
+sbin/ck-log-system-stop
+sbin/console-kit-daemon
+share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml
+share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml
+share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml
+share/dbus-1/system-services/org.freedesktop.ConsoleKit.service
+share/examples/consolekit/ConsoleKit/seats.d/00-primary.seat
+share/examples/consolekit/X11/xinit/xinitrc.d/90-consolekit
+share/examples/consolekit/dbus-1/system.d/ConsoleKit.conf
+share/examples/consolekit/logrotate.d/consolekit
+share/locale/bg/LC_MESSAGES/ConsoleKit2.mo
+share/locale/es/LC_MESSAGES/ConsoleKit2.mo
+share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo
+share/locale/ru/LC_MESSAGES/ConsoleKit2.mo
+share/polkit-1/actions/org.freedesktop.consolekit.policy
+share/polkit-1/rules.d/50-shutdown.rules
+@pkgdir share/examples/consolekit/ConsoleKit/run-session.d
+@pkgdir share/examples/consolekit/ConsoleKit/run-seat.d
+@pkgdir lib/ConsoleKit/run-session.d
+@pkgdir lib/ConsoleKit/run-seat.d
diff --git a/consolekit/buildlink3.mk b/consolekit/buildlink3.mk
new file mode 100644
index 0000000..6688310
--- /dev/null
+++ b/consolekit/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.7 2012/09/15 10:06:21 obache Exp $
+
+BUILDLINK_TREE+=	consolekit
+
+.if !defined(CONSOLEKIT_BUILDLINK3_MK)
+CONSOLEKIT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.consolekit+=	consolekit>=1.0.2
+BUILDLINK_ABI_DEPENDS.consolekit+=	consolekit>=1.0.2
+BUILDLINK_PKGSRCDIR.consolekit?=	../../sysutils/consolekit
+
+.include "../../sysutils/dbus/buildlink3.mk"
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.endif # CONSOLEKIT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-consolekit
diff --git a/consolekit/distinfo b/consolekit/distinfo
new file mode 100644
index 0000000..896b125
--- /dev/null
+++ b/consolekit/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.12 2015/11/04 01:32:08 agc Exp $
+
+SHA1 (1.0.2.tar.gz) = aca2f13f65e77ebffc9fb65d6102cd8edde522ba
+RMD160 (1.0.2.tar.gz) = 1af1cfe8bdfc92215e8393eb4246c0e8667ae5e5
+SHA512 (1.0.2.tar.gz) = a0ce6b3b8eded4ec9fb0774b617cbf6b50aedef16a2bc28ec783e296eb3acc4a250611abb108aaf4f3716f3386ba397644fe55615e516f156982e9102cbb950e
+Size (1.0.2.tar.gz) = 205101 bytes
+SHA1 (patch-data_Makefile.am) = 7d37d6c3b5c0bab2e1e4b7000bd23f72b646cf9c
diff --git a/consolekit/files/50-shutdown.rules b/consolekit/files/50-shutdown.rules
new file mode 100644
index 0000000..1df4934
--- /dev/null
+++ b/consolekit/files/50-shutdown.rules
@@ -0,0 +1,9 @@
+polkit.addRule(function (action, subject) {
+	if (action.id == "org.freedesktop.consolekit.system.restart" ||
+	action.id == "org.freedesktop.consolekit.system.stop"  ||
+	action.id == "org.freedesktop.consolekit.system.suspend" ||
+	action.id == "org.freedesktop.consolekit.system.hibernate"
+	&& subject.isInGroup("operator")) {
+		return polkit.Result.YES;
+	}
+});
diff --git a/consolekit/patches/patch-data_Makefile.am b/consolekit/patches/patch-data_Makefile.am
new file mode 100644
index 0000000..9fa7332
--- /dev/null
+++ b/consolekit/patches/patch-data_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD$
+
+* Fix installation of script data files
+
+--- data/Makefile.am.orig	2015-06-28 08:37:44.000000000 +0000
++++ data/Makefile.am
+@@ -113,7 +113,7 @@ install-logrotate: $(LOGROTATE_CONFS)
+ 
+ install-90-consolekit: $(XINITRC_CONFS)
+ 	$(MKDIR_P) $(DESTDIR)$(XINITRC_DIR)/
+-	$(INSTALL_PROGRAM) 90-consolekit $(DESTDIR)$(XINITRC_DIR) && \
++	$(INSTALL_DATA) 90-consolekit $(DESTDIR)$(XINITRC_DIR) && \
+ 		chmod +x $(DESTDIR)$(XINITRC_DIR)/90-consolekit
+ 
+ uninstall-logrotate:


Home | Main Index | Thread Index | Old Index