Package Details: gnunet-git 0.21.2.r38.g604b2d10b-1

Git Clone URL: https://aur.archlinux.org/gnunet-git.git (read-only, click to copy)
Package Base: gnunet-git
Description: A framework for secure peer-to-peer networking
Upstream URL: http://gnunet.org
Keywords: Anonymity F2F File-Sharing GNS GNUnet Internet P2P VPN
Licenses: AGPL
Conflicts: gnunet, gnunet-bin
Provides: gnunet
Submitter: grufo
Maintainer: grufo (redfish)
Last Packager: grufo
Votes: 6
Popularity: 0.000172
First Submitted: 2018-03-16 13:42 (UTC)
Last Updated: 2024-06-21 17:59 (UTC)

Dependencies (47)

Required by (28)

Sources (6)

Pinned Comments

grufo commented on 2021-12-30 18:02 (UTC)

After installing the package do not forget to add your user to the gnunet group, with

sudo usermod -aG gnunet "$(whoami)"

If later you want to remove your user from the group, launch:

sudo gpasswd --delete "$(whoami)" gnunet

For information on how to use GNUnet plaese refer to the GNUnet article in the ArchWiki.

Latest Comments

« First ‹ Previous 1 2 3

grufo commented on 2018-03-23 16:00 (UTC)

@redfish

Thank you very much for your help! Yes, this package had been removed and I used the official gnunet package as a new starting base. After your suggestions I fixed everything and I think that the gnunet user issue might be solvable by using fakeuser (https://aur.archlinux.org/packages/fakeuser-git/). I am going to send you an email with the updates for a test/review.

--grufo

redfish commented on 2018-03-23 05:47 (UTC) (edited on 2018-03-23 05:47 (UTC) by redfish)

The defaults.conf is out-of-date (for example, USE_LOCALADDR is no longer a valid option) and this file should be removed from the package, because the default configs are automatically installed into /usr/share/gnunet/config.d/*.conf. If the user wants to change the defaults, he should create a /etc/gnunetd.conf and define only the options he wants to override. (Similar usage model as systemd config files.) It's not good to have all defaults in this .conf in the package, because it will fall out of sync with upstream.

Option --with-nssdir no longer exists. Remove it, please.

Remove this too, these files are no longer installed: rm -rf "${pkgdir}/usr/include/libltdl" "${pkgdir}/usr/lib/libltdl".* "${pkgdir}/usr/include/ltdl.h"

The package version should still contain the major.minor.build version in addition to VCS revision height and commit hash, like so: 0.11.0.r123.gaabbccddeeff. Here is a corrected pkgver():

    local _ver=$(grep 'AC_INIT' configure.ac | grep -o '[0-9]\(\.[0-9]\+\)\+')
    printf "'${_ver}.r%s.g%s'" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

The recommendation printed by the configure script is to create a dedicated 'gnunet' user and a 'gnunetdns' group. It's not good to run as nobody because gnunet creates files, so those files should be owned by gnunet user. So, please add an install file to the package that will create the user, the gnunetdns group, and the /var/lib/gnunet. Also, then, add under [PATHS] one option SERVICEHOME = /var/lib/gnunet to the gnunet.conf in this package. Also, at the time of running 'make install' the group gnunetdns must exist, otherwise the permissions/ownership on some service executables are not going to be correct and they will fail to start. I am not sure what is the best way to do this, because creating the group in package() seems not conventional. If not that, then a alternative would be to patch up the ownership with chmod in .install, the disadvantage is that it duplicates upstream commands and will go out of sync with upstream.

Add shutdown command to .service and and add this to avoid issue with child process detection (I had some issue):

ExecStop=/usr/bin/gnunet-arm -e -c /etc/gnunetd.conf
GuessMainPID=no

I can provide a diff, if you prefer.

Btw, why was this package re-created and re-uploade? As a result the AUR comments were lost. Also it might be good to credit the original uploader in the contributors list: kertase kertase at gmail com