diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-01 13:30:14 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-01 13:30:14 +0800 |
commit | 6d90c138e87ee6f874f79b07776712422a081e82 (patch) | |
tree | d554cea8fc7e373ffd693cff2eff2e3a8f4f5c07 | |
parent | 3bb69b0e9e279a8601f22ec94bcd8c7c059acac8 (diff) | |
download | marcuscom-ports-6d90c138e87ee6f874f79b07776712422a081e82.tar.gz marcuscom-ports-6d90c138e87ee6f874f79b07776712422a081e82.tar.zst marcuscom-ports-6d90c138e87ee6f874f79b07776712422a081e82.zip |
Add a port of PolicyKit from a 10 day old snapshot from FreeDesktop CVS.
This port is needed for HAL.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6184 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | sysutils/policykit/Makefile | 35 | ||||
-rw-r--r-- | sysutils/policykit/distinfo | 3 | ||||
-rw-r--r-- | sysutils/policykit/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/policykit/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/policykit/pkg-install | 38 | ||||
-rw-r--r-- | sysutils/policykit/pkg-plist | 19 |
6 files changed, 110 insertions, 0 deletions
diff --git a/sysutils/policykit/Makefile b/sysutils/policykit/Makefile new file mode 100644 index 000000000..328a0a7e8 --- /dev/null +++ b/sysutils/policykit/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: PolicyKit +# Date Created: 22 June 2004 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= policykit +PORTVERSION= 0.1 +CATEGORIES= sysutils gnome +MASTER_SITES= http://www.marcuscom.com/downloads/ +DISTNAME= PolicyKit-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Framework for controlling access to system-wide components + +LIB_DEPENDS= dbus-1.2:${PORTSDIR}/devel/dbus + +USE_BZIP2= yes +USE_GNOME= gnomehack gnometarget +USE_GMAKE= yes +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes +CONFIGURE_ARGS= --disable-gtk-doc \ + --with-pid-file=/var/run/polkitd/polkitd.pid +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + GTKDOC="false" + +post-install: +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + +.include <bsd.port.mk> diff --git a/sysutils/policykit/distinfo b/sysutils/policykit/distinfo new file mode 100644 index 000000000..dac5f20aa --- /dev/null +++ b/sysutils/policykit/distinfo @@ -0,0 +1,3 @@ +MD5 (PolicyKit-0.1.tar.bz2) = 2c7a9c6091d7cbbb8c3ab13801c7a251 +SHA256 (PolicyKit-0.1.tar.bz2) = 760e9bd9729086a8c3991021bd527cc9da97ae9d090ea9be89b13a14489fa8a9 +SIZE (PolicyKit-0.1.tar.bz2) = 327358 diff --git a/sysutils/policykit/files/patch-Makefile.in b/sysutils/policykit/files/patch-Makefile.in new file mode 100644 index 000000000..0c9552c02 --- /dev/null +++ b/sysutils/policykit/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Mon May 1 01:11:30 2006 ++++ Makefile.in Mon May 1 01:11:43 2006 +@@ -231,7 +231,7 @@ sbindir = @sbindir@ + sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-SUBDIRS = libpolkit polkitd doc tools privileges ++SUBDIRS = libpolkit polkitd tools privileges + pamdir = $(sysconfdir)/pam.d + pam_DATA = policy-kit + pkgconfigdir = $(prefix)/libdata/pkgconfig diff --git a/sysutils/policykit/pkg-descr b/sysutils/policykit/pkg-descr new file mode 100644 index 000000000..5c0023101 --- /dev/null +++ b/sysutils/policykit/pkg-descr @@ -0,0 +1,4 @@ +PolicyKit is a framework for defining policy for system-wide components and +for desktop pieces to configure it. It is used by HAL. + +WWW: http://www.freedesktop.org/Software/hal diff --git a/sysutils/policykit/pkg-install b/sysutils/policykit/pkg-install new file mode 100644 index 000000000..7c7d4baca --- /dev/null +++ b/sysutils/policykit/pkg-install @@ -0,0 +1,38 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + USER=polkit + GROUP=${USER} + UID=559 + GID=${UID} + PW=/usr/sbin/pw + + if ${PW} group show "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if ${PW} groupadd ${GROUP} -g ${GID}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + if ${PW} user show "${USER}" 2>/dev/null; then + echo "You already have a user \"${USER}\", so I will use it." + else + if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \ + -d "/nonexistent" -s /sbin/nologin -c "PolicyKit Daemon User" + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi + fi + + /usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/polkitd + exit 0 + ;; +esac diff --git a/sysutils/policykit/pkg-plist b/sysutils/policykit/pkg-plist new file mode 100644 index 000000000..bf94063fb --- /dev/null +++ b/sysutils/policykit/pkg-plist @@ -0,0 +1,19 @@ +bin/polkit-grant-privilege +bin/polkit-is-privileged +bin/polkit-list-privileges +etc/PolicyKit/privilege.d/desktop-console.privilege +etc/dbus-1/system.d/PolicyKit.conf +etc/pam.d/policy-kit +include/libpolkit/libpolkit.h +lib/libpolkit.a +lib/libpolkit.la +lib/libpolkit.so +lib/libpolkit.so.0 +libdata/pkgconfig/polkit.pc +sbin/polkitd +@dirrm include/libpolkit +@dirrm etc/PolicyKit/privilege.d +@dirrm etc/PolicyKit +@cwd /var/run +@unexec rm -f %D/polkitd/polkitd.pid +@dirrm polkitd |