Gavin Henry: 1 testing/sentrypeer: new aport 1 files changed, 40 insertions(+), 0 deletions(-)
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.alpinelinux.org/~alpine/aports/patches/4045/mbox | git am -3Learn more about email & git
https://sentrypeer.org/ Honeypot for a distributed p2p list of bad actor IP addresses and phone numbers testing/ --- testing/sentrypeer/APKBUILD | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testing/sentrypeer/APKBUILD diff --git a/testing/sentrypeer/APKBUILD b/testing/sentrypeer/APKBUILD new file mode 100644 index 0000000000..fe66f9ce8d --- /dev/null +++ b/testing/sentrypeer/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Gavin Henry <ghenry@sentrypeer.org> +# Maintainer: Gavin Henry <ghenry@sentrypeer.org> +pkgname=sentrypeer +pkgver=1.4.0 +pkgrel=0 +pkgdesc="Honeypot for a distributed p2p list of bad actor IP addresses and phone numbers" +url="https://sentrypeer.org/" +arch="all"
given that it fails to build on 32-bit, you can add !x86 !armhf !armv7, though this isn't too hard to fix if you feel like it: ``` src/sip_daemon.c:312:55: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Werror=format=] 312 | "epochtime: %ld\nReceived (%d bytes): %.*s\n", | ~~^ | | | long int | %lld 313 | timestamp, bytes_received, | ~~~~~~~~~ | | | time_t {aka long long int} ``` the reason this fails is that time_t is 64-bit on musl even on 32-bit platforms (future proofing for 2038..), but long (%ld) is 32-bit on them. you can use %lld and cast to long long, or figure out some other way -- via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33616#note_232145
+license="GPL-2.0-only GPL-3.0-only"
you should put an AND or OR between these depending on how they apply -- via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33616#note_232139
+makedepends="autoconf autoconf-archive automake pkgconfig sqlite-dev opendht-dev jansson-dev libmicrohttpd-dev libosip2-dev pcre2-dev util-linux-dev"
you should sort these to one per line so the line isn't this long, also pkgconfig is default and doesn't have to be added here -- via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33616#note_232142
+checkdepends="cmocka-dev curl-dev" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/SentryPeer/SentryPeer/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/SentryPeer-$pkgver" + +prepare() { + default_prepare + sed -i '/AM_LDFLAGS=/d' Makefile.am + ./bootstrap.sh +} + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums=" +6ca0b3fba3beaf1262cf18e246acd5fc0d5bd0f04b6007a69aa24197ecb607baf21fade03e4b3e7a67301da0dd33c36d80cc31d06a58befab7e9c272c925cfdc sentrypeer-1.4.0.tar.gz +" -- 2.36.0
Gavin Henry <no-reply@dispatch.alpinelinux.org>I think I'm making a mess of my email patches. I think I'm best doing a fork on gitlab. Apologies. -- via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33616#note_232158