~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
5 2

[PATCH] testing/sentrypeer: new aport

Details
Message ID
<20220425185724.23453-1-ghenry@sentrypeer.org>
DKIM signature
missing
Download raw message
Patch: +40 -0
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"
license="GPL-2.0-only GPL-3.0-only"
makedepends="autoconf autoconf-archive automake pkgconfig sqlite-dev opendht-dev jansson-dev libmicrohttpd-dev libosip2-dev pcre2-dev util-linux-dev"
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
Details
Message ID
<165091355472.985.15377663292328433996.gitlab.33616.9710bf05de39bb70df498eed197052044ffa31a5@listserv.local>
In-Reply-To
<20220425185724.23453-1-ghenry@sentrypeer.org> (view parent)
DKIM signature
missing
Download raw message
On Mon, 25 Apr 2022 18:57:24 +0000, Gavin Henry wrote:
> +url="https://sentrypeer.org/"
> +arch="all"
> +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
Details
Message ID
<165091358416.985.11590805890608686678.gitlab.33616.0e8e81bb23711567e39f14a8c906a1dda56e8719@listserv.local>
In-Reply-To
<20220425185724.23453-1-ghenry@sentrypeer.org> (view parent)
DKIM signature
missing
Download raw message
On Mon, 25 Apr 2022 18:57:24 +0000, Gavin Henry wrote:
> +arch="all"
> +license="GPL-2.0-only GPL-3.0-only"
> +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
Details
Message ID
<165091372082.985.12219950892239644164.gitlab.33616.51a92d5f8e768ca3c0d662b00b247f2fc182429b@listserv.local>
In-Reply-To
<20220425185724.23453-1-ghenry@sentrypeer.org> (view parent)
DKIM signature
missing
Download raw message
On Mon, 25 Apr 2022 18:57:24 +0000, Gavin Henry wrote:
> +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
Details
Message ID
<165091407431.985.9018102523073641334.gitlab.33616.9710bf05de39bb70df498eed197052044ffa31a5@listserv.local>
In-Reply-To
<165091355472.985.15377663292328433996.gitlab.33616.9710bf05de39bb70df498eed197052044ffa31a5@listserv.local> (view parent)
DKIM signature
missing
Download raw message
On Mon, 25 Apr 2022 18:57:24 +0000, Gavin Henry wrote:
> +url="https://sentrypeer.org/"
> +arch="all"
> +license="GPL-2.0-only GPL-3.0-only"

Sorry, you told me this before and I committed the wrong version I had. Sorted.

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33616#note_232148
Details
Message ID
<165091545897.985.15908799489566454368.gitlab.33616.03803dacff336a65581bd418416ae96cb7bb7db7@listserv.local>
In-Reply-To
<20220425185724.23453-1-ghenry@sentrypeer.org> (view parent)
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)