From e0a1775fa2587d165aa7cb7975bd67fb4621193b Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:37:29 +0200 Subject: [PATCH 01/11] added: sentrypeer --- packages/sentrypeer/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 packages/sentrypeer/PKGBUILD diff --git a/packages/sentrypeer/PKGBUILD b/packages/sentrypeer/PKGBUILD new file mode 100644 index 00000000000..55842059ee2 --- /dev/null +++ b/packages/sentrypeer/PKGBUILD @@ -0,0 +1,43 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=sentrypeer +pkgver=v3.0.0.r14.g02173c8 +pkgrel=1 +pkgdesc='Protect SIP Servers from bad actors.' +arch=('any') +groups=('blackarch' 'blackarch-defensive') +url='https://github.com/SentryPeer/SentryPeer' +license=('GPL') +depends=('curl' 'opendht-c' 'jansson' 'libmicrohttpd' 'libosip2' 'pcre2' 'sqlite' 'uuid') +makedepends=('autoconf' 'autoconf-archive' 'automake' 'cmocka' 'git') +source=("git+https://github.com/SentryPeer/$pkgname") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$pkgname" + + ./bootstrap.sh + ./configure --prefix=/usr +} + +build() { + cd "$pkgname" + + make + make check +} + +package() { + cd "$pkgname" + + make DESTDIR="$pkgdir" install + + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md +} From 3688efa116c7976fcd2ad63f22252e0821beb2f8 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:40:38 +0200 Subject: [PATCH 02/11] added: sentypeer dependency --- packages/opendht-c/PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 packages/opendht-c/PKGBUILD diff --git a/packages/opendht-c/PKGBUILD b/packages/opendht-c/PKGBUILD new file mode 100644 index 00000000000..74d55f2680b --- /dev/null +++ b/packages/opendht-c/PKGBUILD @@ -0,0 +1,55 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=opendht-c +pkgver=v2.6.0rc5.r8.g3e888d8e +pkgrel=1 +epoch=1 +pkgdesc="C++17 Distributed Hash Table implementation." +arch=('any') +url='https://github.com/savoirfairelinux/opendht' +license=('GPL3') +depends=('argon2' 'asio' 'gnutls' 'jsoncpp' 'nettle' 'readline') +makedepends=('cmake' 'cython' 'fmt' 'git' 'http-parser' 'msgpack-cxx' 'python' 'python-setuptools' 'restinio' 'samurai') +checkdepends=('cppunit-dev') +provides=('opendht') +conflicts=('opendht') +source=("git+https://github.com/savoirfairelinux/${pkgname%-c}.git") +sha512sums=('SKIP') + +pkgver() { + cd "${pkgname%-c}" + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "${srcdir}/${pkgname%-*}" + + install -d build +} + +build() { + cd "${srcdir}/${pkgname%-c}/build" + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DOPENDHT_C=ON \ + -DOPENDHT_TOOLS=ON \ + -DOPENDHT_PYTHON=ON \ + -DOPENDHT_HTTP=ON \ + -DOPENDHT_PUSH_NOTIFICATIONS=ON \ + -DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \ + $CMAKE_CROSSOPTS . + make +} + +package() { + cd "${srcdir}/${pkgname%-c}/build" + + make DESTDIR="${pkgdir}" install + install -D -m644 ../README.md "${pkgdir}/usr/share/doc/opendht/README.md" +} From b2a9554dd3f7777d4705d8279d874d58e74fee2b Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:43:53 +0200 Subject: [PATCH 03/11] added: sentrypeer dependency --- packages/libosip2/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 packages/libosip2/PKGBUILD diff --git a/packages/libosip2/PKGBUILD b/packages/libosip2/PKGBUILD new file mode 100644 index 00000000000..069a7867454 --- /dev/null +++ b/packages/libosip2/PKGBUILD @@ -0,0 +1,35 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +# Maintainer: Brian Bidulock +# Contributor: Sergej Pupykin +# Contributor: Michal Hybner + +pkgname=libosip2 +epoch=1 +pkgver=5.3.1 +pkgrel=1 +pkgdesc="an implementation of SIP" +arch=('x86_64' 'i686') +url="http://www.gnu.org/software/osip/" +license=('LGPL') +depends=(glibc) +options=(!emptydirs) +validpgpkeys=('34C3985D068879312FE23C8BB5902A3AD90A5421') +source=(https://ftp.gnu.org/gnu/osip/libosip2-${pkgver/_/-}.tar.gz) +sha512sums=('cd9db7a736cca90c6862b84c4941ef025f5affab8af9bbc02ce0dd3310a2c555e0922c1bfa72d8ac08791fa1441bbcc30b627d52ca8b51f3471573a10ac82a00') + +build() { + cd "$srcdir"/libosip2-${pkgver/_/-}/ + + ./configure --prefix=/usr --disable-semaphore --enable-sysv + # Fight unused direct deps + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + make +} + +package() { + cd "$srcdir"/libosip2-${pkgver/_/-}/ + + make DESTDIR="$pkgdir" install +} From 0d8518bb41c5d7ed54ae12708b9c08be3d2c6bdb Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:44:18 +0200 Subject: [PATCH 04/11] added: sentrypeer --- lists/to-release | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..ef2b76da219 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,3 @@ +sentrypeer +libosip2 +opendht-c From ffb5c1521a0353539c32aff27bb5ae10d8a73b01 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:44:46 +0200 Subject: [PATCH 05/11] Update packages/sentrypeer/PKGBUILD Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> --- packages/sentrypeer/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sentrypeer/PKGBUILD b/packages/sentrypeer/PKGBUILD index 55842059ee2..1a4be37ddbb 100644 --- a/packages/sentrypeer/PKGBUILD +++ b/packages/sentrypeer/PKGBUILD @@ -10,7 +10,7 @@ groups=('blackarch' 'blackarch-defensive') url='https://github.com/SentryPeer/SentryPeer' license=('GPL') depends=('curl' 'opendht-c' 'jansson' 'libmicrohttpd' 'libosip2' 'pcre2' 'sqlite' 'uuid') -makedepends=('autoconf' 'autoconf-archive' 'automake' 'cmocka' 'git') +makedepends=('autoconf-archive' 'cmocka' 'git') source=("git+https://github.com/SentryPeer/$pkgname") sha512sums=('SKIP') From 010302ba928af78513dcee6afc7923fd494c14ca Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:56:43 +0200 Subject: [PATCH 06/11] Update PKGBUILD --- packages/libosip2/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/libosip2/PKGBUILD b/packages/libosip2/PKGBUILD index 069a7867454..0708ac44f6a 100644 --- a/packages/libosip2/PKGBUILD +++ b/packages/libosip2/PKGBUILD @@ -10,7 +10,7 @@ epoch=1 pkgver=5.3.1 pkgrel=1 pkgdesc="an implementation of SIP" -arch=('x86_64' 'i686') +arch=('x86_64' 'aarch64') url="http://www.gnu.org/software/osip/" license=('LGPL') depends=(glibc) From caa3f7b7b33c9b8baad279f85f1fcc4c6c9c3742 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:57:02 +0200 Subject: [PATCH 07/11] Update PKGBUILD --- packages/opendht-c/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opendht-c/PKGBUILD b/packages/opendht-c/PKGBUILD index 74d55f2680b..c027a2ba72f 100644 --- a/packages/opendht-c/PKGBUILD +++ b/packages/opendht-c/PKGBUILD @@ -6,7 +6,7 @@ pkgver=v2.6.0rc5.r8.g3e888d8e pkgrel=1 epoch=1 pkgdesc="C++17 Distributed Hash Table implementation." -arch=('any') +arch=('x86_64' 'aarch64') url='https://github.com/savoirfairelinux/opendht' license=('GPL3') depends=('argon2' 'asio' 'gnutls' 'jsoncpp' 'nettle' 'readline') From 2b30159d1f728e9847e0a2085511b7c1a1a0a80a Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 15:57:22 +0200 Subject: [PATCH 08/11] Update PKGBUILD --- packages/sentrypeer/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sentrypeer/PKGBUILD b/packages/sentrypeer/PKGBUILD index 1a4be37ddbb..7e245fa588c 100644 --- a/packages/sentrypeer/PKGBUILD +++ b/packages/sentrypeer/PKGBUILD @@ -5,7 +5,7 @@ pkgname=sentrypeer pkgver=v3.0.0.r14.g02173c8 pkgrel=1 pkgdesc='Protect SIP Servers from bad actors.' -arch=('any') +arch=('x86_64' 'aarch64') groups=('blackarch' 'blackarch-defensive') url='https://github.com/SentryPeer/SentryPeer' license=('GPL') From 68619ef3c08959ef5e66ef90ac1c2b154e0e1689 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 16:07:56 +0200 Subject: [PATCH 09/11] Update PKGBUILD --- packages/libosip2/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/libosip2/PKGBUILD b/packages/libosip2/PKGBUILD index 0708ac44f6a..c12b2d669bb 100644 --- a/packages/libosip2/PKGBUILD +++ b/packages/libosip2/PKGBUILD @@ -33,3 +33,4 @@ package() { make DESTDIR="$pkgdir" install } + From b81ffd4a54ba928e3c772ae7213b893aa40d113a Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 16:08:33 +0200 Subject: [PATCH 10/11] Update PKGBUILD --- packages/opendht-c/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opendht-c/PKGBUILD b/packages/opendht-c/PKGBUILD index c027a2ba72f..51e1779a283 100644 --- a/packages/opendht-c/PKGBUILD +++ b/packages/opendht-c/PKGBUILD @@ -53,3 +53,4 @@ package() { make DESTDIR="${pkgdir}" install install -D -m644 ../README.md "${pkgdir}/usr/share/doc/opendht/README.md" } + From 48b61e05a989252b954752b6617422164dc9de16 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 7 Jul 2023 16:09:10 +0200 Subject: [PATCH 11/11] Update PKGBUILD --- packages/sentrypeer/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sentrypeer/PKGBUILD b/packages/sentrypeer/PKGBUILD index 7e245fa588c..9fea8e66889 100644 --- a/packages/sentrypeer/PKGBUILD +++ b/packages/sentrypeer/PKGBUILD @@ -41,3 +41,4 @@ package() { install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md } +