summarylogtreecommitdiffstats
path: root/gnunet.install
diff options
context:
space:
mode:
authorgrufo2021-08-20 14:43:24 +0100
committergrufo2021-08-20 14:43:24 +0100
commit798c63acd66d669131f4cebf025610c90443342f (patch)
tree3ccabf911e1eadf9d9ef320e90a6e3881d83695f /gnunet.install
parent9fcf911b88b47967ae0c0d8337c0e81b1dec83d9 (diff)
downloadaur-798c63acd66d669131f4cebf025610c90443342f.tar.gz
Removed `$conflicts` variable; used `gnunet.tmpfiles` for managing permissions; removed `gnunet.install` file
Diffstat (limited to 'gnunet.install')
-rw-r--r--gnunet.install40
1 files changed, 0 insertions, 40 deletions
diff --git a/gnunet.install b/gnunet.install
deleted file mode 100644
index feb95762e093..000000000000
--- a/gnunet.install
+++ /dev/null
@@ -1,40 +0,0 @@
-_gnunet_setuid() {
- getent group gnunetdns > /dev/null || groupadd -r gnunetdns
- getent passwd gnunet > /dev/null || useradd -r -U -l -d /var/lib/gnunet -s /bin/sh -c "GNUnet" gnunet
- local GNUNETDNS_GROUP="$(getent group gnunetdns | cut -d: -f3)"
- chown root:root /usr/lib/gnunet/libexec/gnunet-helper-vpn
- chmod u+s /usr/lib/gnunet/libexec/gnunet-helper-vpn
- # chown root:root /usr/lib/gnunet/libexec/gnunet-helper-transport-wlan
- # chmod u+s /usr/lib/gnunet/libexec/gnunet-helper-transport-wlan
- # chown root:root /usr/lib/gnunet/libexec/gnunet-helper-transport-bluetooth
- # chmod u+s /usr/lib/gnunet/libexec/gnunet-helper-transport-bluetooth
- chown root /usr/lib/gnunet/libexec/gnunet-helper-dns
- chgrp "${GNUNETDNS_GROUP}" /usr/lib/gnunet/libexec/gnunet-helper-dns
- chmod 4750 /usr/lib/gnunet/libexec/gnunet-helper-dns
- chgrp "${GNUNETDNS_GROUP}" /usr/lib/gnunet/libexec/gnunet-helper-dns
- chown gnunet:"${GNUNETDNS_GROUP}" /usr/lib/gnunet/libexec/gnunet-helper-dns
- chmod 2750 /usr/lib/gnunet/libexec/gnunet-helper-dns
- chown root:root /usr/lib/gnunet/libexec/gnunet-helper-exit
- chmod u+s /usr/lib/gnunet/libexec/gnunet-helper-exit
- chown root:root /usr/lib/gnunet/libexec/gnunet-helper-nat-server
- chown root:root /usr/lib/gnunet/libexec/gnunet-helper-nat-client
- chmod u+s /usr/lib/gnunet/libexec/gnunet-helper-nat-server
- chmod u+s /usr/lib/gnunet/libexec/gnunet-helper-nat-client
-}
-
-post_install() {
- echo ' -> Setting `setuid` permissions...'
- _gnunet_setuid
-}
-
-post_upgrade() {
- echo ' -> Updating `setuid` permissions...'
- _gnunet_setuid
-}
-
-post_remove() {
- getent passwd gnunet > /dev/null && userdel gnunet
- getent group gnunet > /dev/null && groupdel gnunet
- getent group gnunetdns > /dev/null && groupdel gnunetdns
-}
-