fix policy issues and simplify
authorxrs <xrs@mail36.net>
Sat, 26 Oct 2019 13:00:21 +0000 (15:00 +0200)
committerxrs <xrs@mail36.net>
Sat, 26 Oct 2019 13:00:21 +0000 (15:00 +0200)
contrib/alpine/gnunet-gtk/APKBUILD
contrib/alpine/gnunet/APKBUILD
contrib/alpine/gnunet/gnunet-user-services.initd
contrib/alpine/gnunet/gnunet.post-deinstall [deleted file]
contrib/alpine/gnunet/gnunet.xsession
contrib/alpine/gnurl/APKBUILD

index 75ccadbf056936430fe04308aa5a9cd1ec69c5d1..8c72bdb6c50ba22b3d1225009a5bcaedd3be747d 100644 (file)
@@ -6,8 +6,7 @@ pkgrel=0
 pkgdesc="Graphical user interface for GNUnet"
 url="https://gnunet.org"
 arch="all"
-license="GPL-3.0"
-depends="gnunet gtk+3.0 glade"
+license="GPL-3.0-only"
 makedepends="gnunet-dev gtk+3.0-dev glade-dev"
 subpackages="$pkgname-dev $pkgname-doc"
 source="https://mirrors.ocf.berkeley.edu/gnu/gnunet/gnunet-gtk-$pkgver.tar.gz"
@@ -28,7 +27,6 @@ build() {
 
 check() {
        make DESTDIR="$pkgdir" check
-       exit 0
 }
 
 package() {
index da2b2dec4fd5897e03293515b2c18f7d091682a8..b21c6241e3809b1222b2bcc28c8b9768ddd5b6ee 100644 (file)
@@ -6,10 +6,8 @@ pkgrel=0
 pkgdesc="A framework for secure and privacy enhancing peer-to-peer networking"
 url="https://gnunet.org"
 arch="all"
-license="AGPL-3.0"
-depends="libgpg-error libgcrypt nettle unbound-libs gnutls gnutls-utils gnurl
-       libgnurl libmicrohttpd openssl libunistring libidn2 nss sqlite zlib
-       miniupnpc gmp gettext bash which iptables coreutils sudo"
+license="AGPL-3.0-only"
+depends="gnutls-utils bash which iptables coreutils"
 depends_dev="libgpg-error-dev libgcrypt-dev nettle-dev unbound-dev gnutls-dev
        gnurl-dev libmicrohttpd-dev openssl-dev libunistring-dev libidn2-dev
        nss-dev sqlite-dev zlib-dev miniupnpc-dev gmp-dev gettext"
@@ -42,12 +40,11 @@ build() {
                --mandir=/usr/share/man \
                --localstatedir=/var \
                --enable-logging=verbose
-       make
+       make -j 1
 }
 
 check() {
        make DESTDIR="$pkgdir" check
-       exit 0
 }
 
 package() {
@@ -94,5 +91,5 @@ sha512sums="1c6ea2ac7280d2edb30df627b79e017d199e93cd3970ce49f3f049abfb1dddfed541
 a0f55413ed2c6edd6746a751d92ddac95ba70f20eefb07330817870d749456448f44bba95d245911a00f6078e0c2ac626004e3b764be5e5e049c00626c4c5ac0  gnunet-system.conf
 b21112ff16aee771332aa9c33f55b0c7f46fe0266053543241e3efbe25dba56482c0e11112a192eefe59f1c74d2af5d7071b6a4e1e875cfc7e9d55b5fe8a0a33  gnunet-user.conf
 96ab78bb48d5fb10f0b34336ad05e73b543c4362c73436ef20b3bb83dff214e997acf38a2ea493b1901bdc37c8877d83cdaebd73a0e50831e2f23413c8edda76  gnunet-system-services.initd
-f67252e18c5fd701338653efe4cc14caae9213c1955f690cddec9fd7ad31a22680e931fbe908a1c5a78dc05094e547b2279f9a488f2ed80cc169590ad5ffa064  gnunet-user-services.initd
-839a081aca19b863f378db980e6447ad30c6c0ee72fac6e11c65e57e86886d675ebc61069e17f696b6ca868e8ce259cabf80feb90b04b23f3da3c628f7beb915  gnunet.xsession"
+3dc88aaedc3886c0795bdb4c8e259125232ba10f2bc762216c341bb3240ef0855cba968799ba121304463a65e73ed0f62dec03759a2be478ec4ac086361b49ba  gnunet-user-services.initd
+4fe1ed80cbaa4c140805bde2629fdb32b97f3273281ae7277c8988b4e490605652cdb9975fc1178169426f2279597c55f6e6b75b52315a426d78a1fedbb08401  gnunet.xsession"
index 6c960944ea80627ef8561aee804e64db2b03c547..0d7a626e7c9894bbcc8b35658a8fab2b87b415e5 100644 (file)
@@ -16,8 +16,8 @@ start() {
        for user in $users; do
                if test -z "`ps|grep $user|grep gnunet-service-arm`" > /dev/null 2>&1
                then
-                       sudo -u $user gnunet-arm \
-                               -c /home/$user/.config/gnunet.conf -s
+                       su $user -c "gnunet-arm \
+                               -c /home/$user/.config/gnunet.conf -s"
                fi
        done
 }
@@ -26,8 +26,8 @@ stop() {
        for user in $users; do
                if test -n "`ps|grep $user|grep gnunet-service-arm`" > /dev/null 2>&1
                then
-                       sudo -u $user gnunet-arm \
-                               -c /home/$user/.config/gnunet.conf -e
+                       su $user -c "gnunet-arm \
+                               -c /home/$user/.config/gnunet.conf -e"
                fi
        done
 }
diff --git a/contrib/alpine/gnunet/gnunet.post-deinstall b/contrib/alpine/gnunet/gnunet.post-deinstall
deleted file mode 100644 (file)
index ab98ab5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-deluser --remove-home gnunet # implicitly removes group gnunet
-delgroup gnunetdns
-
-exit 0
index f19d6baf7fa055c64f101b07dc419713387477cd..944d47a277b04ac85b04e6b9f68118dd3da1847d 100644 (file)
@@ -2,7 +2,8 @@
 user=$(whoami)
 gnunet_proxy=$(gnunet-config -c /etc/skel/.config/gnunet.conf -s gns-proxy|grep 'IMMEDIATE_START = YES')
 
-# Enable GNS proxy for new users informed by /etc/skel.
+# Enable GNS proxy for new users informed by /etc/skel (system wide 
+# installation decision).
 if [ "$gnunet_proxy" ]; then
 
        # Calculate user specific port
@@ -45,10 +46,3 @@ fi
 
 # Create/Renew GNS certificate authority (CA) per user.
 gnunet-gns-proxy-setup-ca
-
-# In case a new user was added and gnunet-user-services has not been 
-# restarted afterwards, start user services after login.
-if test -z "`ps|grep -v grep|grep $user|grep gnunet-service-arm`" > /dev/null 2>&1
-then
-       gnunet-arm -c /home/$user/.config/gnunet.conf -s
-fi
index f14a9bd971358aba498bad4dece858bc121add18..24a5ee8665406b28ac659102519135e8f0822851 100644 (file)
@@ -7,7 +7,8 @@ pkgdesc="curl with only HTTP/HTTPS support and GnuTLS"
 url="https://gnunet.org/en/gnurl.html"
 arch="all"
 license="MIT"
-depends="ca-certificates gnutls libidn2 zlib"
+#depends="ca-certificates gnutls libidn2 zlib"
+depends="ca-certificates"
 depends_dev="gnutls-dev libidn2-dev zlib-dev"
 makedepends="$depends_dev autoconf automake libtool perl pkgconf python3"
 subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc libgnurl"