Browse Source

[testing] -> [extra] 'polkit-0.115+24+g5230646-1' move

master
artoo 6 months ago
parent
commit
bcb7727976
Signed by: artoo <artoo@artixlinux.org> GPG Key ID: 3292CD0BB0DB310B

+ 3
- 5
polkit/repos/extra-x86_64/PKGBUILD View File

@@ -1,8 +1,7 @@
1
-# $Id$
2 1
 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 2
 
4 3
 pkgname=polkit
5
-pkgver=0.115+3+g8638ec5
4
+pkgver=0.115+24+g5230646
6 5
 pkgrel=1
7 6
 pkgdesc="Application development toolkit for controlling system-wide privileges"
8 7
 arch=(x86_64)
@@ -10,8 +9,8 @@ license=(LGPL)
10 9
 url="https://www.freedesktop.org/wiki/Software/polkit/"
11 10
 depends=(glib2 pam expat elogind js52)
12 11
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
13
-_commit=8638ec5cd534dcc616b68e5b0744c493c0c71dc9  # master~2
14
-source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit"
12
+_commit=5230646dc6876ef6e27f57926b1bad348f636147  # master
13
+source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
15 14
         '99-artix.rules'
16 15
         'elogind-configure-fix.patch')
17 16
 sha256sums=('SKIP'
@@ -25,7 +24,6 @@ pkgver() {
25 24
 
26 25
 prepare() {
27 26
   cd $pkgname
28
-  git cherry-pick -n 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409
29 27
   patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch
30 28
   NOCONFIGURE=1 ./autogen.sh
31 29
 }

+ 0
- 21
polkit/repos/testing-x86_64/99-artix.rules View File

@@ -1,21 +0,0 @@
1
-polkit.addRule(function(action, subject) {
2
-    if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
3
-        return polkit.Result.YES;
4
-    }
5
-});
6
-
7
-polkit.addRule(function(action, subject) {
8
-    if (action.id == "org.freedesktop.login1.power-off" ||
9
-        action.id == "org.freedesktop.login1.reboot" ||
10
-        action.id == "org.freedesktop.login1.hibernate" ||
11
-        action.id == "org.freedesktop.login1.suspend") {
12
-        return polkit.Result.YES;
13
-    }
14
-});
15
-
16
-polkit.addRule(function(action, subject) {
17
-    if (action.id == "org.freedesktop.upower.hibernate" ||
18
-        action.id == "org.freedesktop.upower.suspend") {
19
-        return polkit.Result.YES;
20
-    }
21
-});

+ 0
- 63
polkit/repos/testing-x86_64/PKGBUILD View File

@@ -1,63 +0,0 @@
1
-# Maintainer: Jan de Groot <jgc@archlinux.org>
2
-
3
-pkgname=polkit
4
-pkgver=0.115+24+g5230646
5
-pkgrel=1
6
-pkgdesc="Application development toolkit for controlling system-wide privileges"
7
-arch=(x86_64)
8
-license=(LGPL)
9
-url="https://www.freedesktop.org/wiki/Software/polkit/"
10
-depends=(glib2 pam expat elogind js52)
11
-makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
12
-_commit=5230646dc6876ef6e27f57926b1bad348f636147  # master
13
-source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
14
-        '99-artix.rules'
15
-        'elogind-configure-fix.patch')
16
-sha256sums=('SKIP'
17
-            'd28d6ecaf7682860e2b3768bb266bd94313546b7cd0ef3c2eace7b1576c47adb'
18
-            'd90b2a95aa3e9e1ebf9369c038c144e04900e095c5405bc4ba4901c31bf3f59b')
19
-
20
-pkgver() {
21
-  cd $pkgname
22
-  git describe --tags | sed 's/-/+/g'
23
-}
24
-
25
-prepare() {
26
-  cd $pkgname
27
-  patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch
28
-  NOCONFIGURE=1 ./autogen.sh
29
-}
30
-
31
-build() {
32
-  cd $pkgname
33
-
34
-  ./configure --prefix=/usr --sysconfdir=/etc \
35
-      --localstatedir=/var --libexecdir=/usr/lib \
36
-      --enable-libsystemd-login=no --disable-static \
37
-      --enable-gtk-doc --with-os-type=redhat \
38
-      --enable-libelogind=yes --with-systemdsystemunitdir=no
39
-
40
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41
-
42
-  make
43
-}
44
-
45
-check() {
46
-  cd $pkgname
47
-  make -k check || :
48
-}
49
-
50
-package() {
51
-  cd $pkgname
52
-  make DESTDIR="$pkgdir" install
53
-
54
-  install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
55
-
56
-  install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
57
-u polkitd 102 "PolicyKit daemon"
58
-m polkitd proc
59
-END
60
-    install -m0644 "${srcdir}"/99-artix.rules "${pkgdir}"/etc/polkit-1/rules.d
61
-}
62
-
63
-# vim: ts=2 sw=2 et:

+ 0
- 28
polkit/repos/testing-x86_64/elogind-configure-fix.patch View File

@@ -1,28 +0,0 @@
1
-From 08bb656496cd3d6213bbe9473f63f2d4a110da6e Mon Sep 17 00:00:00 2001
2
-From: Rasmus Thomsen <cogitri@exherbo.org>
3
-Date: Wed, 11 Apr 2018 13:14:14 +0200
4
-Subject: [PATCH] configure: fix elogind support
5
-
6
-HAVE_LIBSYSTEMD is used to determine which source files to use.
7
-We have to check if either have_libsystemd or have_libelogind is
8
-true, as both of these need the source files which are used when
9
-HAVE_LIBSYSTEMD is true.
10
----
11
- configure.ac | 2 +-
12
- 1 file changed, 1 insertion(+), 1 deletion(-)
13
-
14
-diff --git a/configure.ac b/configure.ac
15
-index 36df239..da47ecb 100644
16
---- a/configure.ac
17
-+++ b/configure.ac
18
-@@ -221,7 +221,7 @@ AS_IF([test "x$cross_compiling" != "xyes" ], [
19
-
20
- AC_SUBST(LIBSYSTEMD_CFLAGS)
21
- AC_SUBST(LIBSYSTEMD_LIBS)
22
--AM_CONDITIONAL(HAVE_LIBSYSTEMD, [test "$have_libsystemd" = "yes"], [Using libsystemd])
23
-+AM_CONDITIONAL(HAVE_LIBSYSTEMD, [test "$have_libsystemd" = "yes" || test "$have_libelogind" = "yes" ], [Using libsystemd])
24
-
25
- dnl ---------------------------------------------------------------------------
26
- dnl - systemd unit / service files
27
---
28
-2.17.0

Loading…
Cancel
Save