summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2015-06-10 05:45:51 -0600
committerBrian Bidulock2015-06-10 05:45:51 -0600
commit6a2c399e3263bb03d36b6dc35159cf16aba470c0 (patch)
treec6d69d014c4ab402b9a3ee45cd0ed4ed7f7ca1dd
downloadaur-6a2c399e3263bb03d36b6dc35159cf16aba470c0.tar.gz
initial version
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD54
-rw-r--r--gksu-polkit-0.0.3-policy.patch16
-rw-r--r--gksu-polkit-dbus.patch7
-rw-r--r--gksu-polkit.service7
5 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4558ae89bec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = gksu-polkit-git
+ pkgdesc = Replacement for gksu that uses PolicyKit
+ pkgver = 0.0.2.r3.gd7e3160
+ pkgrel = 1
+ epoch = 2
+ url = https://live.gnome.org/gksu
+ arch = x86_64
+ arch = i686
+ license = GPL3
+ makedepends = git
+ makedepends = gtk-doc
+ makedepends = vala
+ makedepends = intltool
+ depends = polkit
+ depends = libgee06
+ depends = gtk2
+ depends = startup-notification
+ depends = dbus-glib
+ depends = xorg-xauth
+ provides = gksu-polkit
+ conflicts = gksu-polkit
+ source = gksu-polkit-git::git://git.debian.org/~kov/gksu-polkit.git
+ source = gksu-polkit-0.0.3-policy.patch
+ source = gksu-polkit-dbus.patch
+ source = gksu-polkit.service
+ sha256sums = SKIP
+ sha256sums = 334e26dce80e0dead984b04122d22ee13e4c5ff5d370098c7e46503855fad250
+ sha256sums = a0efd0d989abb31c765f4eedda6e1ff99f99cfff1ef52bc11adb983505836f0d
+ sha256sums = 41ff7af4bfbb56893393f25135966b54c1bf7683fc38a2a0f0129fb23712b27b
+
+pkgname = gksu-polkit-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3012788c5df
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
+
+pkgname=gksu-polkit-git
+pkgver=0.0.2.r3.gd7e3160
+pkgrel=1
+epoch=2
+pkgdesc="Replacement for gksu that uses PolicyKit"
+arch=('x86_64' 'i686')
+url="https://live.gnome.org/gksu"
+license=('GPL3')
+depends=('polkit' 'libgee06' 'gtk2' 'startup-notification' 'dbus-glib' 'xorg-xauth')
+makedepends=('git' 'gtk-doc' 'vala' 'intltool')
+provides=('gksu-polkit')
+conflicts=('gksu-polkit')
+source=("$pkgname::git://git.debian.org/~kov/gksu-polkit.git"
+ "gksu-polkit-0.0.3-policy.patch"
+ "gksu-polkit-dbus.patch"
+ "gksu-polkit.service")
+sha256sums=('SKIP'
+ '334e26dce80e0dead984b04122d22ee13e4c5ff5d370098c7e46503855fad250'
+ 'a0efd0d989abb31c765f4eedda6e1ff99f99cfff1ef52bc11adb983505836f0d'
+ '41ff7af4bfbb56893393f25135966b54c1bf7683fc38a2a0f0129fb23712b27b')
+
+pkgver() {
+ cd $pkgname
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd $pkgname
+
+ # https://bugzilla.redhat.com/show_bug.cgi?id=883162
+ # https://access.redhat.com/security/cve/CVE-2012-5617
+ patch -Np1 -b -z .orig -i "$srcdir/gksu-polkit-0.0.3-policy.patch"
+
+ # Systemd dbus service management
+ patch -Np0 -b -z .orig -i "$srcdir/gksu-polkit-dbus.patch"
+}
+
+build() {
+ cd $pkgname
+ LDFLAGS=$(echo "$LDFLAGS"|sed 's|,--as-needed||')
+ ./autogen.sh --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/gksu-polkit.service" \
+ "$pkgdir/$(pkg-config systemd --variable=systemdsystemunitdir )/gksu.service"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/gksu-polkit-0.0.3-policy.patch b/gksu-polkit-0.0.3-policy.patch
new file mode 100644
index 00000000000..91a5daa9575
--- /dev/null
+++ b/gksu-polkit-0.0.3-policy.patch
@@ -0,0 +1,16 @@
+diff -Naur gksu-polkit.old/data/org.gnome.gksu.policy gksu-polkit/data/org.gnome.gksu.policy
+--- gksu-polkit.old/data/org.gnome.gksu.policy 2013-07-21 14:42:16.039085780 +0200
++++ gksu-polkit/data/org.gnome.gksu.policy 2013-07-21 14:42:44.810774723 +0200
+@@ -10,9 +10,9 @@
+ <description>spawn</description>
+ <message>System policy prevents executing a program with administration privileges</message>
+ <defaults>
+- <allow_any>auth_self</allow_any>
+- <allow_inactive>auth_self</allow_inactive>
+- <allow_active>auth_self</allow_active>
++ <allow_any>auth_admin</allow_any>
++ <allow_inactive>auth_admin</allow_inactive>
++ <allow_active>auth_admin</allow_active>
+ </defaults>
+ </action>
+
diff --git a/gksu-polkit-dbus.patch b/gksu-polkit-dbus.patch
new file mode 100644
index 00000000000..4f7743ab095
--- /dev/null
+++ b/gksu-polkit-dbus.patch
@@ -0,0 +1,7 @@
+--- mechanism/org.gnome.Gksu.service.in 2008-09-19 01:20:07.000000000 +0200
++++ mechanism/org.gnome.Gksu.service.in 2012-09-15 21:30:56.475687372 +0200
+@@ -2,3 +2,4 @@
+ Name=org.gnome.Gksu
+ Exec=@sbindir@/gksu-server
+ User=root
++SystemdService=gksu.service
diff --git a/gksu-polkit.service b/gksu-polkit.service
new file mode 100644
index 00000000000..b80878c352e
--- /dev/null
+++ b/gksu-polkit.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Gksu server
+
+[Service]
+Type=dbus
+BusName=org.gnome.Gksu
+ExecStart=/usr/sbin/gksu-server