mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 14:29:17 -04:00
This might be needed when using alternatives to init(8), like sysutils/runit-faster, which do not react well to signals send by shutdown(8)/reboot(8) and where you have to use other commands, like runit-init {0,6}. By updating the ck-system-* scripts to run them instead, we can actually make use of things like the Xfce4 logout dialog or Kodi's shutdown dialog with runit-faster. But to make this permanent across updates the scripts have to be installed as sample files. PR: 236445 Submitted by: tobik Approved by: gnome (maintainer timeout, 14 days)
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: FreeBSD GNOME Team <gnome@freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= consolekit
|
|
PORTVERSION= 1.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils gnome
|
|
MASTER_SITES= https://github.com/ConsoleKit2/ConsoleKit2/releases/download/${PORTVERSION}/
|
|
PKGNAMESUFFIX= 2
|
|
DISTNAME= ConsoleKit2-${PORTVERSION}
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Framework for defining and tracking users
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libdbus-1.so:devel/dbus \
|
|
libpolkit-gobject-1.so:sysutils/polkit
|
|
|
|
WRKSRC= ${WRKDIR}/ConsoleKit2-${PORTVERSION}
|
|
USES= gettext gmake libtool localbase pathfix pkgconfig tar:bzip2
|
|
USE_CSTD= gnu99
|
|
USE_XORG= x11
|
|
USE_GNOME= glib20 libxslt introspection:build
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \
|
|
--enable-pam-module \
|
|
--with-pam-module-dir=${PREFIX}/lib \
|
|
--localstatedir=/var \
|
|
--enable-polkit \
|
|
--enable-introspection \
|
|
--without-html-dir \
|
|
--disable-udev-acl \
|
|
--disable-libcgmanager \
|
|
--disable-libdrm \
|
|
--disable-libevdev \
|
|
--disable-libudev \
|
|
--without-systemdsystemunitdir
|
|
INSTALL_TARGET= install-strip
|
|
|
|
post-install:
|
|
.for script in ck-system-hibernate ck-system-hybridsleep \
|
|
ck-system-restart ck-system-stop ck-system-suspend
|
|
cd ${STAGEDIR}${PREFIX}/lib/ConsoleKit/scripts && \
|
|
${MV} ${script} ${script}.sample
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|