Hello,
After seeing that gmnisrv cannot be packaged for Parabola (since the
licensing status thereof isn't clear).
I have asked bill-auger for advice, and resolved to preparing a
PKGBUILD for gmid - as it is clearly licensed under ISC+BSD (with
proper copyright + license declaration headers in each file).
I've tested this PKGBUILD with libremakepkg, and the daemon works as
expected on my machine.

A slight modification from the upstream AUR package is clearing out all
the website files for the project (not relevant to the
package/software) and removing the contrib/ directory - as the code
there has no copyright or license statements.

I've attached the patchset to this email.
From fd71a26150595e35ee91a0c7d1e35be15946d5c9 Mon Sep 17 00:00:00 2001
From: wael <[email protected]>
Date: Fri, 3 Dec 2021 22:36:49 +0200
Subject: [PATCH 1/2] Modified and added PKGBUILD for gmid - a gemini server
 licensed under ISC.

---
 pcr/gmid/PKGBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 pcr/gmid/PKGBUILD

diff --git a/pcr/gmid/PKGBUILD b/pcr/gmid/PKGBUILD
new file mode 100644
index 000000000..81be42d0b
--- /dev/null
+++ b/pcr/gmid/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Andrea Feletto <[email protected]>
+# Contributor: Wael Karram <adminmail aT firemail dOt cc>
+
+pkgname=gmid
+pkgver=1.7.5
+pkgrel=1
+pkgdesc='Fast Gemini server written with security in mind.'
+arch=('x86_64')
+url='https://gmid.omarpolo.com'
+license=('ISC')
+depends=('libretls' 'libevent')
+makedepends=('procps-ng')
+conflicts=('gmid-git' 'gmid-bin')
+source=("https://git.omarpolo.com/$pkgname/snapshot/$pkgname-$pkgver.tar.gz";)
+sha256sums=('68859a8908dde24fb20d4d5d9530a0022751602ac254b6790f41056130a116f1')
+
+build() {
+	cd "$srcdir/$pkgname-$pkgver"
+	MANDIR='usr/share/man/' ./configure PREFIX='usr/'
+	make
+}
+
+check() {
+	cd "$srcdir/$pkgname-$pkgver"
+	make regress
+}
+
+package() {
+	cd "$srcdir/$pkgname-$pkgver"
+	make DESTDIR="$pkgdir/" install
+	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
-- 
2.34.1
From 08cb79d4a2a8b7e755009d71822f175b4ffbfeaf Mon Sep 17 00:00:00 2001
From: wael <[email protected]>
Date: Fri, 3 Dec 2021 22:58:45 +0200
Subject: [PATCH 2/2] Added package build for gmid, after testing the package
 (and packaging process) and cleaning it up.

---
 pcr/gmid/PKGBUILD | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pcr/gmid/PKGBUILD b/pcr/gmid/PKGBUILD
index 81be42d0b..e31488e8d 100644
--- a/pcr/gmid/PKGBUILD
+++ b/pcr/gmid/PKGBUILD
@@ -27,6 +27,12 @@ check() {
 
 package() {
 	cd "$srcdir/$pkgname-$pkgver"
+	# Clean out the contrib dir, as the status thereof isn't clear.
+	rm -rf contrib/
+	# Clean out gitignore.
+	rm .gitignore
+	# Remove site data.
+	rm -rf site/
 	make DESTDIR="$pkgdir/" install
 	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
 	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
-- 
2.34.1

Attachment: pgp4ToGVU3kyO.pgp
Description: OpenPGP digital signature

_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to