Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5
@ 2019-07-17  9:59 voidlinux-github
  2019-07-17 11:34 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (26 more replies)
  0 siblings, 27 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17  9:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

There is a new pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 4180 bytes --]

From 28b52b0ab41b63be89cceacda9e871f818993e28 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 11:55:42 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                   | 52 +++++++++++++++++++++++++++++++++
 srcpkgs/gnunet/INSTALL.msg      |  1 +
 srcpkgs/gnunet/files/gnunet/run |  2 ++
 srcpkgs/gnunet/template         | 22 ++++++++++++++
 4 files changed, 77 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 027e11d1efd..77cbdfaf8f4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3489,3 +3489,55 @@ libdnssec.so.7 libknot-2.8.2_1
 libzscanner.so.3 libknot-2.8.2_1
 libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..168e12ffbe0
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please run gnunet-config to generate your gnunetd.conf.
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..b0a2487f8c2
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/gnunet-arm -s -c /etc/gnunet/gnunetd.conf
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..5ec95fd783c
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,22 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
@ 2019-07-17 11:34 ` voidlinux-github
  2019-07-17 11:34 ` voidlinux-github
                   ` (25 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14926 bytes --]

From 2565c7e46e8119f650a40a733e55827822c4861d Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:34:38 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  25 ++
 5 files changed, 565 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 027e11d1efd..77cbdfaf8f4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3489,3 +3489,55 @@ libdnssec.so.7 libknot-2.8.2_1
 libzscanner.so.3 libknot-2.8.2_1
 libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..65249df9eb7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,25 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+  vmkdir etc/gnunet
+  vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
  2019-07-17 11:34 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-17 11:34 ` voidlinux-github
  2019-07-17 11:37 ` voidlinux-github
                   ` (24 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14926 bytes --]

From 2565c7e46e8119f650a40a733e55827822c4861d Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:34:38 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  25 ++
 5 files changed, 565 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 027e11d1efd..77cbdfaf8f4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3489,3 +3489,55 @@ libdnssec.so.7 libknot-2.8.2_1
 libzscanner.so.3 libknot-2.8.2_1
 libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..65249df9eb7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,25 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+  vmkdir etc/gnunet
+  vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (2 preceding siblings ...)
  2019-07-17 11:37 ` voidlinux-github
@ 2019-07-17 11:37 ` voidlinux-github
  2019-07-17 11:43 ` voidlinux-github
                   ` (22 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14924 bytes --]

From 66f785cc40429d9319e2e4c662ea8c4416ca5c1a Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:36:59 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  25 ++
 5 files changed, 565 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 027e11d1efd..77cbdfaf8f4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3489,3 +3489,55 @@ libdnssec.so.7 libknot-2.8.2_1
 libzscanner.so.3 libknot-2.8.2_1
 libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..0d1913ff081
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,25 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
  2019-07-17 11:34 ` [PR PATCH] [Updated] " voidlinux-github
  2019-07-17 11:34 ` voidlinux-github
@ 2019-07-17 11:37 ` voidlinux-github
  2019-07-17 11:37 ` voidlinux-github
                   ` (23 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14924 bytes --]

From 66f785cc40429d9319e2e4c662ea8c4416ca5c1a Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:36:59 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  25 ++
 5 files changed, 565 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 027e11d1efd..77cbdfaf8f4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3489,3 +3489,55 @@ libdnssec.so.7 libknot-2.8.2_1
 libzscanner.so.3 libknot-2.8.2_1
 libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..0d1913ff081
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,25 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (4 preceding siblings ...)
  2019-07-17 11:43 ` voidlinux-github
@ 2019-07-17 11:43 ` voidlinux-github
  2019-07-17 11:58 ` voidlinux-github
                   ` (20 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14914 bytes --]

From ef5c74775a369d008de8f7abf0e807a78173c425 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:43:02 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  25 ++
 5 files changed, 565 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..0d1913ff081
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,25 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (3 preceding siblings ...)
  2019-07-17 11:37 ` voidlinux-github
@ 2019-07-17 11:43 ` voidlinux-github
  2019-07-17 11:43 ` voidlinux-github
                   ` (21 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14914 bytes --]

From ef5c74775a369d008de8f7abf0e807a78173c425 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:43:02 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  25 ++
 5 files changed, 565 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..0d1913ff081
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,25 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel \
+	libltdl-devel libtool libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (6 preceding siblings ...)
  2019-07-17 11:58 ` voidlinux-github
@ 2019-07-17 11:58 ` voidlinux-github
  2019-07-17 12:01 ` voidlinux-github
                   ` (18 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14931 bytes --]

From 00042a64102c3ba95462d5c02985399e16f8e523 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:58:38 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  26 ++
 5 files changed, 566 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..d0344c83993
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,26 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="libtool"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (5 preceding siblings ...)
  2019-07-17 11:43 ` voidlinux-github
@ 2019-07-17 11:58 ` voidlinux-github
  2019-07-17 11:58 ` voidlinux-github
                   ` (19 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 11:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14931 bytes --]

From 00042a64102c3ba95462d5c02985399e16f8e523 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 13:58:38 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  26 ++
 5 files changed, 566 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..d0344c83993
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,26 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="libtool"
+makedepends="autoconf automake gettext-devel libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (7 preceding siblings ...)
  2019-07-17 11:58 ` voidlinux-github
@ 2019-07-17 12:01 ` voidlinux-github
  2019-07-17 12:01 ` voidlinux-github
                   ` (17 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14931 bytes --]

From 6453a005ae603b94bfd857d25cb56bbabfbc6078 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 14:01:14 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  26 ++
 5 files changed, 566 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..e06e9344fca
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,26 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake libtool"
+makedepends="gettext-devel libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (8 preceding siblings ...)
  2019-07-17 12:01 ` voidlinux-github
@ 2019-07-17 12:01 ` voidlinux-github
  2019-07-17 12:18 ` voidlinux-github
                   ` (16 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14931 bytes --]

From 6453a005ae603b94bfd857d25cb56bbabfbc6078 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 14:01:14 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  26 ++
 5 files changed, 566 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..e06e9344fca
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,26 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake libtool"
+makedepends="gettext-devel libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (10 preceding siblings ...)
  2019-07-17 12:18 ` voidlinux-github
@ 2019-07-17 12:18 ` voidlinux-github
  2019-07-17 12:24 ` voidlinux-github
                   ` (14 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14931 bytes --]

From 7bdaed98cdbec1a8a8749736cc815bc2f42f3866 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 14:17:51 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  26 ++
 5 files changed, 566 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..1e4abd00ac7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,26 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (9 preceding siblings ...)
  2019-07-17 12:01 ` voidlinux-github
@ 2019-07-17 12:18 ` voidlinux-github
  2019-07-17 12:18 ` voidlinux-github
                   ` (15 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 14931 bytes --]

From 7bdaed98cdbec1a8a8749736cc815bc2f42f3866 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 14:17:51 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 common/shlibs                    |  52 ++++
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  26 ++
 5 files changed, 566 insertions(+)
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..acce530f763 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,55 @@ libkres.so.9 knot-resolver-4.0.0_1
 libnsl.so.2 libnsl-1.2.0_1
 libbcc.so.0 bcc-0.10.0_1
 libbcc_bpf.so.0 bcc-0.10.0_1
+libgnunetarm.so gnunet-0.11.5_1
+libgnunetats.so gnunet-0.11.5_1
+libgnunetatsapplication.so gnunet-0.11.5_1
+libgnunetatstesting.so gnunet-0.11.5_1
+libgnunetatstransport.so gnunet-0.11.5_1
+libgnunetblock.so gnunet-0.11.5_1
+libgnunetblockgroup.so gnunet-0.11.5_1
+libgnunetcadet.so gnunet-0.11.5_1
+libgnunetconsensus.so gnunet-0.11.5_1
+libgnunetcore.so gnunet-0.11.5_1
+libgnunetdatacache.so gnunet-0.11.5_1
+libgnunetdatastore.so gnunet-0.11.5_1
+libgnunetdht.so gnunet-0.11.5_1
+libgnunetdns.so gnunet-0.11.5_1
+libgnunetfragmentation.so gnunet-0.11.5_1
+libgnunetfriends.so gnunet-0.11.5_1
+libgnunetfs.so gnunet-0.11.5_1
+libgnunetgns.so gnunet-0.11.5_1
+libgnunetgnsrecord.so gnunet-0.11.5_1
+libgnunethello.so gnunet-0.11.5_1
+libgnunetidentity.so gnunet-0.11.5_1
+libgnunetnamecache.so gnunet-0.11.5_1
+libgnunetnamestore.so gnunet-0.11.5_1
+libgnunetnatauto.so gnunet-0.11.5_1
+libgnunetnatnew.so gnunet-0.11.5_1
+libgnunetnse.so gnunet-0.11.5_1
+libgnunetnt.so gnunet-0.11.5_1
+libgnunetpeerinfo.so gnunet-0.11.5_1
+libgnunetpeerstore.so gnunet-0.11.5_1
+libgnunetregex.so gnunet-0.11.5_1
+libgnunetregexblock.so gnunet-0.11.5_1
+libgnunetrevocation.so gnunet-0.11.5_1
+libgnunetscalarproduct.so gnunet-0.11.5_1
+libgnunetsecretsharing.so gnunet-0.11.5_1
+libgnunetset.so gnunet-0.11.5_1
+libgnunetsq.so gnunet-0.11.5_1
+libgnunetstatistics.so gnunet-0.11.5_1
+libgnunettestbed.so gnunet-0.11.5_1
+libgnunettestbedlogger.so gnunet-0.11.5_1
+libgnunettesting.so gnunet-0.11.5_1
+libgnunettransport.so gnunet-0.11.5_1
+libgnunettransportapplication.so gnunet-0.11.5_1
+libgnunettransportcommunicator.so gnunet-0.11.5_1
+libgnunettransportcore.so gnunet-0.11.5_1
+libgnunettransportmonitor.so gnunet-0.11.5_1
+libgnunettransporttesting.so gnunet-0.11.5_1
+libgnunettransporttesting2.so gnunet-0.11.5_1
+libgnunetutil.so gnunet-0.11.5_1
+libgnunetvpn.so gnunet-0.11.5_1
+libnss_gns.so gnunet-0.11.5_1
+libnss_gns4.so gnunet-0.11.5_1
+libnss_gns6.so gnunet-0.11.5_1
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..1e4abd00ac7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,26 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (11 preceding siblings ...)
  2019-07-17 12:18 ` voidlinux-github
@ 2019-07-17 12:24 ` voidlinux-github
  2019-07-17 12:26 ` voidlinux-github
                   ` (13 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-512231460
Comment:
Will split this package into two (`gnunet` and `gnunet-devel`) and fix the `shlibs`.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (12 preceding siblings ...)
  2019-07-17 12:24 ` voidlinux-github
@ 2019-07-17 12:26 ` voidlinux-github
  2019-07-17 12:48 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (12 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-512231460
Comment:
Will split this package into two (`gnunet` and `gnunet-devel`) and remove the `shlibs`.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (14 preceding siblings ...)
  2019-07-17 12:48 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-17 12:48 ` voidlinux-github
  2019-07-17 12:52 ` voidlinux-github
                   ` (10 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 13140 bytes --]

From e97d645e14a36728f74c8e73463a88ac7a95815d Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 14:47:51 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 srcpkgs/gnunet-devel             |   1 +
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  36 +++
 5 files changed, 525 insertions(+)
 create mode 120000 srcpkgs/gnunet-devel
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/srcpkgs/gnunet-devel b/srcpkgs/gnunet-devel
new file mode 120000
index 00000000000..3d739abe774
--- /dev/null
+++ b/srcpkgs/gnunet-devel
@@ -0,0 +1 @@
+gnunet
\ No newline at end of file
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..fb3ef1340b7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,36 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}
+
+gnunet-devel_package() {
+	depends="${pkgname}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (13 preceding siblings ...)
  2019-07-17 12:26 ` voidlinux-github
@ 2019-07-17 12:48 ` voidlinux-github
  2019-07-17 12:48 ` voidlinux-github
                   ` (11 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

[DONOTMERGE] New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 13140 bytes --]

From e97d645e14a36728f74c8e73463a88ac7a95815d Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Wed, 17 Jul 2019 14:47:51 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 srcpkgs/gnunet-devel             |   1 +
 srcpkgs/gnunet/INSTALL.msg       |   1 +
 srcpkgs/gnunet/files/gnunet.conf | 482 +++++++++++++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |   5 +
 srcpkgs/gnunet/template          |  36 +++
 5 files changed, 525 insertions(+)
 create mode 120000 srcpkgs/gnunet-devel
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/srcpkgs/gnunet-devel b/srcpkgs/gnunet-devel
new file mode 120000
index 00000000000..3d739abe774
--- /dev/null
+++ b/srcpkgs/gnunet-devel
@@ -0,0 +1 @@
+gnunet
\ No newline at end of file
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..48bcf151152
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,482 @@
+[PATHS]
+# SERVICEHOME = /var/lib/gnunet/
+# DEFAULTCONFIG = /etc/gnunet.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...
+
+[gnunetd]
+HOSTKEY = $SERVICEHOME/.hostkey
+
+[TESTING]
+WEAKRANDOM = NO
+# How long before failing a connection?
+CONNECT_TIMEOUT = 30
+# How many connect attempts should we make?
+CONNECT_ATTEMPTS = 3
+# How many connections can happen simultaneously?
+MAX_OUTSTANDING_CONNECTIONS = 50
+
+# Should we clean up the files on peer group shutdown?
+DELETE_FILES = YES
+
+[client]
+HOME = $SERVICEHOME
+
+[nat]
+# Are we behind NAT?
+BEHIND_NAT = NO
+
+# Is the NAT hole-punched?
+PUNCHED_NAT = NO
+
+# Enable UPNP by default?
+ENABLE_UPNP = NO
+
+# Use addresses from the local network interfaces (inluding loopback, but also others)
+USE_LOCALADDR = YES
+
+# Use address obtained from a DNS lookup of our hostname
+USE_HOSTNAME = NO
+
+# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!)
+# normal interface IP address for non-NATed peers; 
+# possibly auto-detected (using UPnP) if possible if not specified
+# EXTERNAL_ADDRESS = 
+
+# Should we use ICMP-based NAT traversal to try connect to NATed peers
+# or, if we are behind NAT, to allow connections to us?
+ENABLE_ICMP_CLIENT = NO
+ENABLE_ICMP_SERVER = NO
+
+# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY;
+# normal interface IP address for non-NATed peers; 
+# likely auto-detected (via interface list) if not specified (!)
+# INTERNAL_ADDRESS = 
+
+# Disable IPv6 support
+DISABLEV6 = NO
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+HOSTNAME_DNS_FREQUENCY = 1200000
+
+# How often do we iterate over our 
+# network interfaces to check for changes
+# in our IP address? in ms
+IFC_SCAN_FREQUENCY = 3000000
+
+# How often do we query the DNS resolver
+# for our hostname (to get our own IP), in ms
+DYNDNS_FREQUENCY = 140000
+
+[gnunet-nat-server]
+HOSTNAME = gnunet.org
+PORT = 5724
+
+[transport-tcp]
+# Use 0 to ONLY advertise as a peer behind NAT (no port binding)
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+# Maximum number of open TCP connections allowed
+MAX_CONNECTIONS = 128
+
+TIMEOUT = 5000
+
+# ACCEPT_FROM =
+# ACCEPT_FROM6 =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# BINDTO =
+
+MAX_CONNECTIONS = 128
+
+
+[transport-udp]
+PORT = 2086
+
+MAX_BPS = 1000000
+
+
+[transport-http]
+PORT = 1080
+MAX_CONNECTIONS = 128
+
+[transport-https]
+PORT = 4433
+CRYPTO_INIT = NORMAL
+KEY_FILE = https.key
+CERT_FILE = https.cert
+MAX_CONNECTIONS = 128
+
+
+[transport-wlan]
+# Name of the interface in monitor mode (typically monX)
+INTERFACE = mon0
+# Real hardware, no testing
+TESTMODE = 0
+
+
+[arm]
+PORT = 2087
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-arm
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DEFAULTSERVICES = topology hostlist
+UNIXPATH = /tmp/gnunet-service-arm.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# GLOBAL_POSTFIX = -l $SERVICEHOME/{}-logs
+# GLOBAL_PREFIX =
+# USERNAME =
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[statistics]
+AUTOSTART = YES
+PORT = 2088
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-statistics
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-statistics.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[resolver]
+AUTOSTART = YES
+PORT = 2089
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-resolver
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-resolver.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = NO
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+[peerinfo]
+AUTOSTART = YES
+PORT = 2090
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-peerinfo
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-peerinfo.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO = 
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+HOSTS = $SERVICEHOME/data/hosts/
+
+
+[transport]
+AUTOSTART = YES
+PORT = 2091
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-transport
+#PREFIX = valgrind
+NEIGHBOUR_LIMIT = 50
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+PLUGINS = tcp
+UNIXPATH = /tmp/gnunet-service-transport.sock
+BLACKLIST_FILE = $SERVICEHOME/blacklist
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+# ATS options
+DUMP_MLP = NO
+DUMP_SOLUTION = NO
+DUMP_OVERWRITE = NO 
+DUMP_MIN_PEERS = 0
+DUMP_MIN_ADDRS = 0
+DUMP_OVERWRITE = NO
+ATS_MIN_INTERVAL = 15000
+ATS_EXEC_INTERVAL = 30000
+
+
+[core]
+AUTOSTART = YES
+PORT = 2092
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-core
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+# quotas are in bytes per second now!
+TOTAL_QUOTA_IN = 65536
+TOTAL_QUOTA_OUT = 65536
+UNIXPATH = /tmp/gnunet-service-core.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+
+
+[topology]
+MINIMUM-FRIENDS = 0
+FRIENDS-ONLY = NO
+AUTOCONNECT = YES
+TARGET-CONNECTION-COUNT = 16
+FRIENDS = $SERVICEHOME/friends
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-topology
+
+[hostlist]
+# port for hostlist http server
+HTTPPORT = 8080
+HOME = $SERVICEHOME
+HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-hostlist
+# consider having "-e" as default as well once implemented
+OPTIONS = -b
+SERVERS = http://v9.gnunet.org:58080/
+# proxy for downloading hostlists
+HTTP-PROXY = 
+
+
+[datastore]
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-datastore.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PORT = 2093
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-datastore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+QUOTA = 100000000
+BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
+DATABASE = sqlite
+# DISABLE_SOCKET_FORWARDING = NO
+
+[datastore-sqlite]
+FILENAME = $SERVICEHOME/datastore/sqlite.db
+
+[datastore-postgres]
+CONFIG = connect_timeout=10; dbname=gnunet
+
+[datastore-mysql]
+DATABASE = gnunet
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD = 
+# HOST = localhost
+# PORT = 3306
+
+[datacache-mysql]
+DATABASE = gnunetcheck
+CONFIG = ~/.my.cnf
+# USER = gnunet
+# PASSWORD =
+# HOST = localhost
+# PORT = 3306
+
+
+[fs]
+AUTOSTART = YES
+INDEXDB = $SERVICEHOME/idxinfo.lst
+TRUST = $SERVICEHOME/data/credit/
+IDENTITY_DIR = $SERVICEHOME/identities/
+STATE_DIR = $SERVICEHOME/persistence/
+UPDATE_DIR = $SERVICEHOME/updates/
+PORT = 2094
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-fs
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+
+DELAY = YES
+CONTENT_CACHING = YES
+CONTENT_PUSHING = YES
+
+UNIXPATH = /tmp/gnunet-service-fs.sock
+UNIX_MATCH_UID = NO
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+MAX_PENDING_REQUESTS = 65536
+# Maximum frequency we're allowed to poll the datastore
+# for content for migration (can be used to reduce 
+# GNUnet's disk-IO rate)
+MIN_MIGRATION_DELAY = 100
+EXPECTED_NEIGHBOUR_COUNT = 128
+
+[dht]
+AUTOSTART = YES
+PORT = 2095
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dht
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+BUCKET_SIZE = 4
+UNIXPATH = /tmp/gnunet-service-dht.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+# DISABLE_SOCKET_FORWARDING = NO
+# DEBUG = YES
+# USERNAME = 
+# MAXBUF =
+# TIMEOUT =
+# DISABLEV6 =
+# BINDTO =
+# REJECT_FROM =
+# REJECT_FROM6 =
+# PREFIX =
+# DO_FIND_PEER =
+# STRICT_KADEMLIA =
+# USE_MAX_HOPS =
+# MAX_HOPS =
+# REPUBLISH = YES
+# REPLICATION_FREQUENCY = 60 
+# STOP_ON_CLOSEST =
+# STOP_FOUND =
+# CONVERGE_MODIFIER =
+
+
+[dhtcache]
+DATABASE = sqlite
+QUOTA = 1024000
+
+[block]
+PLUGINS = fs dht test dns
+
+[mesh]
+AUTOSTART = YES
+PORT = 2096
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-mesh
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-mesh.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+
+[nse]
+AUTOSTART = YES
+PORT = 2097
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-nse
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/test-nse-service-nse.unix
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+PROOFFILE = $SERVICEHOME/.nse-proof
+HISTOGRAM = $SERVICEHOME/nse-history.log
+
+# How 'slowly' should the proof-of-work be constructed (delay
+# between rounds in ms); sane values between 0 and ~1000.
+WORKDELAY = 5
+
+# Note: changing any of the values below will make this peer
+# completely incompatible with other peers! 
+INTERVAL = 3600000
+WORKBITS = 20
+
+
+[vpn]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-vpn
+IPV6ADDR = 1234::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.11.10.1
+IPV4MASK = 255.255.0.0
+VIRTDNS = 10.11.10.2
+IFNAME = vpn-gnunet
+
+[exit]
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-daemon-exit
+IPV6ADDR = 1234:1::1
+IPV6PREFIX = 32
+IPV4ADDR = 10.10.1.1
+IPV4MASK = 255.255.0.0
+IFNAME = exit-gnunet
+ENABLE_UDP = NO
+ENABLE_TCP = NO
+
+[dns]
+AUTOSTART = YES
+PORT = 0
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+CONFIG = $DEFAULTCONFIG
+BINARY = gnunet-service-dns
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+UNIXPATH = /tmp/gnunet-service-dns.sock
+PROVIDE_EXIT = NO
+
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..3a2209f201b
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+/usr/bin/gnunet-arm -s -c /etc/gnunet/gnunet.conf
+PID=$(pgrep -f gnunet-service-arm)
+tail -f /dev/null --pid="${PID}"
+pkill gnunet
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..fb3ef1340b7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,36 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}
+
+gnunet-devel_package() {
+	depends="${pkgname}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [DONOTMERGE] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (15 preceding siblings ...)
  2019-07-17 12:48 ` voidlinux-github
@ 2019-07-17 12:52 ` voidlinux-github
  2019-07-19  7:03 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (9 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-17 12:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-512231460
Comment:
Will split this package into two (`gnunet` and `gnunet-devel`) and fix the `shlibs`.

Edit: Should be all good now. 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (17 preceding siblings ...)
  2019-07-19  7:03 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-19  7:03 ` voidlinux-github
  2019-07-19  7:04 ` voidlinux-github
                   ` (7 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-19  7:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 3189 bytes --]

From 12ffde36261f57d5192469a79cd1e0f8d9401f84 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Fri, 19 Jul 2019 09:03:01 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 srcpkgs/gnunet-devel             |  1 +
 srcpkgs/gnunet/INSTALL.msg       |  1 +
 srcpkgs/gnunet/files/gnunet.conf | 24 +++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |  2 ++
 srcpkgs/gnunet/template          | 36 ++++++++++++++++++++++++++++++++
 5 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/gnunet-devel
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/srcpkgs/gnunet-devel b/srcpkgs/gnunet-devel
new file mode 120000
index 00000000000..3d739abe774
--- /dev/null
+++ b/srcpkgs/gnunet-devel
@@ -0,0 +1 @@
+gnunet
\ No newline at end of file
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..2664bc2a6e4
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,24 @@
+[PATHS]
+SERVICEHOME = /var/lib/gnunet
+DEFAULTCONFIG = /etc/gnunet/gnunet.conf
+
+[arm]
+SYSTEM_ONLY = YES
+USER_ONLY = NO
+
+[transport-tcp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[transport-udp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[nat]
+BEHIND_NAT = YES
+ENABLE_UPNP = NO
+USE_LOCALADDR = NO
+DISABLEV6 = YES
+
+[hostlist]
+OPTIONS = -b -e
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..4adb83a4d02
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..fb3ef1340b7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,36 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}
+
+gnunet-devel_package() {
+	depends="${pkgname}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (16 preceding siblings ...)
  2019-07-17 12:52 ` voidlinux-github
@ 2019-07-19  7:03 ` voidlinux-github
  2019-07-19  7:03 ` voidlinux-github
                   ` (8 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-19  7:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

I know the workaround in https://github.com/void-linux/void-packages/pull/13167/files#diff-d563501cb146c13f7c87ffeb0fff80a1 is ugly but `gnunet-arm` has no way not to detach/fork: https://gist.github.com/Anachron/be3ff6d0d22d317ed36e3871ea871b17

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 3189 bytes --]

From 12ffde36261f57d5192469a79cd1e0f8d9401f84 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Fri, 19 Jul 2019 09:03:01 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 srcpkgs/gnunet-devel             |  1 +
 srcpkgs/gnunet/INSTALL.msg       |  1 +
 srcpkgs/gnunet/files/gnunet.conf | 24 +++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |  2 ++
 srcpkgs/gnunet/template          | 36 ++++++++++++++++++++++++++++++++
 5 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/gnunet-devel
 create mode 100644 srcpkgs/gnunet/INSTALL.msg
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/srcpkgs/gnunet-devel b/srcpkgs/gnunet-devel
new file mode 120000
index 00000000000..3d739abe774
--- /dev/null
+++ b/srcpkgs/gnunet-devel
@@ -0,0 +1 @@
+gnunet
\ No newline at end of file
diff --git a/srcpkgs/gnunet/INSTALL.msg b/srcpkgs/gnunet/INSTALL.msg
new file mode 100644
index 00000000000..3e20257a4fe
--- /dev/null
+++ b/srcpkgs/gnunet/INSTALL.msg
@@ -0,0 +1 @@
+Please modify your /etc/gnunet/gnunet.conf and start gnunet.
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..2664bc2a6e4
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,24 @@
+[PATHS]
+SERVICEHOME = /var/lib/gnunet
+DEFAULTCONFIG = /etc/gnunet/gnunet.conf
+
+[arm]
+SYSTEM_ONLY = YES
+USER_ONLY = NO
+
+[transport-tcp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[transport-udp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[nat]
+BEHIND_NAT = YES
+ENABLE_UPNP = NO
+USE_LOCALADDR = NO
+DISABLEV6 = YES
+
+[hostlist]
+OPTIONS = -b -e
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..4adb83a4d02
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..fb3ef1340b7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,36 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}
+
+gnunet-devel_package() {
+	depends="${pkgname}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (18 preceding siblings ...)
  2019-07-19  7:03 ` voidlinux-github
@ 2019-07-19  7:04 ` voidlinux-github
  2019-07-19  7:04 ` voidlinux-github
                   ` (6 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-19  7:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-512231460
Comment:
Will split this package into two (`gnunet` and `gnunet-devel`) and fix the `shlibs`.

Edit: Should be all good now. 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (19 preceding siblings ...)
  2019-07-19  7:04 ` voidlinux-github
@ 2019-07-19  7:04 ` voidlinux-github
  2019-07-19  8:55 ` voidlinux-github
                   ` (5 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-19  7:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-513117972
Comment:
`gnunet` doesn't fork into the background anymore and the config file has been minimized.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (20 preceding siblings ...)
  2019-07-19  7:04 ` voidlinux-github
@ 2019-07-19  8:55 ` voidlinux-github
  2019-07-20 11:21 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (4 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-19  8:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-513117972
Comment:
`gnunet` doesn't fork into the background anymore and the config file has been minimized. Ping @Johnnynator 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (22 preceding siblings ...)
  2019-07-20 11:21 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-20 11:21 ` voidlinux-github
  2019-07-20 11:38 ` voidlinux-github
                   ` (2 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-20 11:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 2857 bytes --]

From 7d1dde5f8d49caa9d8c0e1cc11706c41f1738ee9 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Sat, 20 Jul 2019 13:20:59 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 srcpkgs/gnunet-devel             |  1 +
 srcpkgs/gnunet/files/gnunet.conf | 24 +++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |  2 ++
 srcpkgs/gnunet/template          | 36 ++++++++++++++++++++++++++++++++
 4 files changed, 63 insertions(+)
 create mode 120000 srcpkgs/gnunet-devel
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/srcpkgs/gnunet-devel b/srcpkgs/gnunet-devel
new file mode 120000
index 00000000000..3d739abe774
--- /dev/null
+++ b/srcpkgs/gnunet-devel
@@ -0,0 +1 @@
+gnunet
\ No newline at end of file
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..2664bc2a6e4
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,24 @@
+[PATHS]
+SERVICEHOME = /var/lib/gnunet
+DEFAULTCONFIG = /etc/gnunet/gnunet.conf
+
+[arm]
+SYSTEM_ONLY = YES
+USER_ONLY = NO
+
+[transport-tcp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[transport-udp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[nat]
+BEHIND_NAT = YES
+ENABLE_UPNP = NO
+USE_LOCALADDR = NO
+DISABLEV6 = YES
+
+[hostlist]
+OPTIONS = -b -e
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..4adb83a4d02
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..fb3ef1340b7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,36 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}
+
+gnunet-devel_package() {
+	depends="${pkgname}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Updated] New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (21 preceding siblings ...)
  2019-07-19  8:55 ` voidlinux-github
@ 2019-07-20 11:21 ` voidlinux-github
  2019-07-20 11:21 ` voidlinux-github
                   ` (3 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-20 11:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

There is an updated pull request by Anachron against master on the void-packages repository

https://github.com/Anachron/void-packages gnunet
https://github.com/void-linux/void-packages/pull/13167

New package: gnunet-0.11.5
Preparing the `gnunet` package for inclusion.

A patch file from https://github.com/void-linux/void-packages/pull/13167.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnunet-13167.patch --]
[-- Type: application/text/x-diff, Size: 2857 bytes --]

From 7d1dde5f8d49caa9d8c0e1cc11706c41f1738ee9 Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Sat, 20 Jul 2019 13:20:59 +0200
Subject: [PATCH] New package: gnunet-0.11.5

---
 srcpkgs/gnunet-devel             |  1 +
 srcpkgs/gnunet/files/gnunet.conf | 24 +++++++++++++++++++++
 srcpkgs/gnunet/files/gnunet/run  |  2 ++
 srcpkgs/gnunet/template          | 36 ++++++++++++++++++++++++++++++++
 4 files changed, 63 insertions(+)
 create mode 120000 srcpkgs/gnunet-devel
 create mode 100644 srcpkgs/gnunet/files/gnunet.conf
 create mode 100644 srcpkgs/gnunet/files/gnunet/run
 create mode 100644 srcpkgs/gnunet/template

diff --git a/srcpkgs/gnunet-devel b/srcpkgs/gnunet-devel
new file mode 120000
index 00000000000..3d739abe774
--- /dev/null
+++ b/srcpkgs/gnunet-devel
@@ -0,0 +1 @@
+gnunet
\ No newline at end of file
diff --git a/srcpkgs/gnunet/files/gnunet.conf b/srcpkgs/gnunet/files/gnunet.conf
new file mode 100644
index 00000000000..2664bc2a6e4
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet.conf
@@ -0,0 +1,24 @@
+[PATHS]
+SERVICEHOME = /var/lib/gnunet
+DEFAULTCONFIG = /etc/gnunet/gnunet.conf
+
+[arm]
+SYSTEM_ONLY = YES
+USER_ONLY = NO
+
+[transport-tcp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[transport-udp]
+PORT = 2086
+ADVERTISED_PORT = 2086
+
+[nat]
+BEHIND_NAT = YES
+ENABLE_UPNP = NO
+USE_LOCALADDR = NO
+DISABLEV6 = YES
+
+[hostlist]
+OPTIONS = -b -e
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
new file mode 100644
index 00000000000..4adb83a4d02
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
new file mode 100644
index 00000000000..fb3ef1340b7
--- /dev/null
+++ b/srcpkgs/gnunet/template
@@ -0,0 +1,36 @@
+# Template file for 'gnunet'
+pkgname=gnunet
+version=0.11.5
+revision=1
+wrksrc="${pkgname}-v${version}"
+build_style=gnu-configure
+conf_files="/etc/gnunet/gnunet.conf"
+hostmakedepends="autoconf automake gettext-devel libtool"
+makedepends="libgcrypt-devel libidn-devel
+ libltdl-devel libunistring-devel sqlite-devel zlib-devel"
+short_desc="Framework for secure peer-to-peer networking"
+maintainer="Anachron <gith@cron.world>"
+license="GPL-3.0-or-later"
+homepage="https://gnunet.org"
+distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
+checksum=ac99e7e5a167aa42e7734ad5c94a31be1f9fe98842a923c382c8a30b5320561a
+
+pre_configure() {
+	./bootstrap
+}
+
+post_install() {
+	vmkdir etc/gnunet
+	vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
+	vsv gnunet
+}
+
+gnunet-devel_package() {
+	depends="${pkgname}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (23 preceding siblings ...)
  2019-07-20 11:21 ` voidlinux-github
@ 2019-07-20 11:38 ` voidlinux-github
  2019-07-20 11:38 ` voidlinux-github
  2019-07-23 17:30 ` [PR PATCH] [Merged]: " voidlinux-github
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-20 11:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-513460365
Comment:
@Chocimier @Johnnynator all good now

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (24 preceding siblings ...)
  2019-07-20 11:38 ` voidlinux-github
@ 2019-07-20 11:38 ` voidlinux-github
  2019-07-23 17:30 ` [PR PATCH] [Merged]: " voidlinux-github
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-20 11:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/pull/13167#issuecomment-513117972
Comment:
`gnunet` doesn't fork into the background anymore and the config file has been minimized. Ping @Johnnynator 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PR PATCH] [Merged]: New package: gnunet-0.11.5
  2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
                   ` (25 preceding siblings ...)
  2019-07-20 11:38 ` voidlinux-github
@ 2019-07-23 17:30 ` voidlinux-github
  26 siblings, 0 replies; 28+ messages in thread
From: voidlinux-github @ 2019-07-23 17:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

There's a merged pull request on the void-packages repository

New package: gnunet-0.11.5
https://github.com/void-linux/void-packages/pull/13167
Description: Preparing the `gnunet` package for inclusion.

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2019-07-23 17:30 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17  9:59 [PR PATCH] [DONOTMERGE] New package: gnunet-0.11.5 voidlinux-github
2019-07-17 11:34 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-17 11:34 ` voidlinux-github
2019-07-17 11:37 ` voidlinux-github
2019-07-17 11:37 ` voidlinux-github
2019-07-17 11:43 ` voidlinux-github
2019-07-17 11:43 ` voidlinux-github
2019-07-17 11:58 ` voidlinux-github
2019-07-17 11:58 ` voidlinux-github
2019-07-17 12:01 ` voidlinux-github
2019-07-17 12:01 ` voidlinux-github
2019-07-17 12:18 ` voidlinux-github
2019-07-17 12:18 ` voidlinux-github
2019-07-17 12:24 ` voidlinux-github
2019-07-17 12:26 ` voidlinux-github
2019-07-17 12:48 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-17 12:48 ` voidlinux-github
2019-07-17 12:52 ` voidlinux-github
2019-07-19  7:03 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-19  7:03 ` voidlinux-github
2019-07-19  7:04 ` voidlinux-github
2019-07-19  7:04 ` voidlinux-github
2019-07-19  8:55 ` voidlinux-github
2019-07-20 11:21 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-20 11:21 ` voidlinux-github
2019-07-20 11:38 ` voidlinux-github
2019-07-20 11:38 ` voidlinux-github
2019-07-23 17:30 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).