Github messages for voidlinux
 help / color / mirror / Atom feed
From: kruceter <kruceter@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages: ipsvd, socklog-ucspi
Date: Thu, 29 Dec 2022 23:33:37 +0100	[thread overview]
Message-ID: <20221229223337.Aqwvi4sIceNhaMyssOQlQPBzKwSmVyynt45wGWEtUxg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41321@inbox.vuxu.org>

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

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

https://github.com/kruceter/void-packages ipsvd
https://github.com/void-linux/void-packages/pull/41321

New packages: ipsvd, socklog-ucspi
cc: @leahneukirchen (socklog's maintainer)

Closes #41300.

### socklog-ucspi

#### Testing the changes
- I tested the changes in this PR: **briefly**

### ipsvd

The build method is not much different from socklog (the same author).

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


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

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

From 2d1dfe40c1acf79c12cc7992503a0b70ac9b2361 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Wed, 28 Dec 2022 02:44:46 +0300
Subject: [PATCH 1/2] New package: ipsvd

---
 srcpkgs/ipsvd/patches/cross.patch | 47 +++++++++++++++++++++++++++++++
 srcpkgs/ipsvd/template            | 40 ++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)
 create mode 100644 srcpkgs/ipsvd/patches/cross.patch
 create mode 100644 srcpkgs/ipsvd/template

diff --git a/srcpkgs/ipsvd/patches/cross.patch b/srcpkgs/ipsvd/patches/cross.patch
new file mode 100644
index 000000000000..3e729cf44315
--- /dev/null
+++ b/srcpkgs/ipsvd/patches/cross.patch
@@ -0,0 +1,47 @@
+chskshsgr must be built for the host.
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -194,17 +194,22 @@
+ case_diffb.o: case.h case_diffb.c compile
+ 	./compile case_diffb.c
+ 
+-chkshsgr: chkshsgr.o load
+-	./load chkshsgr
++chkshsgr: chkshsgr.o loadhost
++	./loadhost chkshsgr
+ 
+-chkshsgr.o: chkshsgr.c compile
+-	./compile chkshsgr.c
++chkshsgr.o: chkshsgr.c compilehost
++	./compilehost chkshsgr.c
+ 
+ choose: choose.sh warn-auto.sh
+ 	rm -f choose
+ 	cat warn-auto.sh choose.sh >choose
+ 	chmod 555 choose
+ 
++compilehost:
++	cat warn-auto.sh > compilehost
++	@echo 'exec cc -c $${1+"$$@"}' >> compilehost
++	chmod 555 compilehost
++
+ coe.o: coe.c coe.h compile
+ 	./compile coe.c
+ 
+@@ -351,6 +356,15 @@
+ 	sh print-ld.sh >load
+ 	chmod 555 load
+ 
++loadhost:
++	rm -f loadhost
++	@echo > loadhost
++	@echo 'systype="`cat systype`"' >> loadhost
++	@echo 'cat warn-auto.sh' >> loadhost
++	@echo 'main="$$1"; shift' >> loadhost
++	@echo 'exec cc -o "$$main" "$$main".o $${1+"$$@"}' >> loadhost
++	chmod 555 loadhost
++
+ lock_ex.o: compile hasflock.h lock.h lock_ex.c
+ 	./compile lock_ex.c
+ 
diff --git a/srcpkgs/ipsvd/template b/srcpkgs/ipsvd/template
new file mode 100644
index 000000000000..c1e118fb4c40
--- /dev/null
+++ b/srcpkgs/ipsvd/template
@@ -0,0 +1,40 @@
+# Template file for 'ipsvd'
+pkgname=ipsvd
+version=1.0.0
+revision=1
+build_wrksrc="${pkgname}-${version}"
+short_desc="Set of internet protocol service daemons for Unix"
+maintainer="Krul Ceter <kruceter@proton.me>"
+license="BSD-3-Clause"
+homepage="http://smarden.org/ipsvd"
+distfiles="http://smarden.org/ipsvd/ipsvd-${version}.tar.gz"
+checksum=ef7a725bc85acb5d09ab57658385bb470b3e4da5a4ffc88b5da6c6bd37d01fad
+patch_args="-Np1 --directory=${build_wrksrc}"
+
+do_configure() {
+	echo "$CC $CFLAGS" > src/conf-cc
+	echo "$CC $LDFLAGS -Wl,-z -Wl,noexecstack" > src/conf-ld
+}
+
+do_build() {
+	package/compile
+}
+
+do_install() {
+	# sslio and sslsvd are not compiled (matrixssl is required).
+	rm -r man/{sslio,sslsvd}* doc/{sslio,sslsvd}*
+
+	for bin in command/*; do
+		vbin "$bin";
+	done
+
+	for man in man/*; do
+		vman "$man";
+	done
+
+	for doc in doc/*; do
+		vdoc "$doc";
+	done
+
+	vlicense package/COPYING
+}

From f981bba417dfaefd80c994ab264f090b1e39653e Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Wed, 28 Dec 2022 23:54:09 +0300
Subject: [PATCH 2/2] New package: socklog-ucspi

---
 .../socklog-ucspi/files/socklog-ucspi-tcp/log/run  |  3 +++
 srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/run  |  5 +++++
 srcpkgs/socklog-ucspi/template                     | 14 ++++++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/log/run
 create mode 100644 srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/run
 create mode 100644 srcpkgs/socklog-ucspi/template

diff --git a/srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/log/run b/srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/log/run
new file mode 100644
index 000000000000..acfadabea4d8
--- /dev/null
+++ b/srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec vlogger -p daemon -t socklog-ucspi-tcp
diff --git a/srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/run b/srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/run
new file mode 100644
index 000000000000..fd750fe9a45e
--- /dev/null
+++ b/srcpkgs/socklog-ucspi/files/socklog-ucspi-tcp/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -r conf ] && . ./conf
+
+exec tcpsvd -vllogserver -u nobody ${HOST:-0} ${PORT:-10116} socklog ucspi TCPREMOTEIP
diff --git a/srcpkgs/socklog-ucspi/template b/srcpkgs/socklog-ucspi/template
new file mode 100644
index 000000000000..6fa8a209f0dc
--- /dev/null
+++ b/srcpkgs/socklog-ucspi/template
@@ -0,0 +1,14 @@
+# Template file for 'socklog-ucspi'
+pkgname=socklog-ucspi
+version=20221228
+revision=1
+build_style=meta
+depends="socklog ipsvd"
+short_desc="UCSPI-TCP services for socklog"
+maintainer="Krul Ceter <kruceter@proton.me>"
+license="Public Domain"
+homepage="http://smarden.org/socklog"
+
+do_install() {
+	vsv socklog-ucspi-tcp
+}

  parent reply	other threads:[~2022-12-29 22:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-28  0:13 [PR PATCH] socklog: depend on ipsvd for ucspi-tcp service kruceter
2022-12-28  0:25 ` [PR PATCH] [Updated] " kruceter
2022-12-28  0:27 ` kruceter
2022-12-28 19:47 ` leahneukirchen
2022-12-28 19:48 ` leahneukirchen
2022-12-28 20:58 ` [PR PATCH] [Updated] " kruceter
2022-12-29  3:00 ` New packages: ipsvd, socklog-ucspi sbromberger
2022-12-29  5:44 ` sbromberger
2022-12-29  5:45 ` sbromberger
2022-12-29  5:45 ` sbromberger
2022-12-29  8:00 ` kruceter
2022-12-29 16:32 ` leahneukirchen
2022-12-29 16:58 ` sbromberger
2022-12-29 22:32 ` kruceter
2022-12-29 22:33 ` kruceter [this message]
2023-01-02 15:19 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221229223337.Aqwvi4sIceNhaMyssOQlQPBzKwSmVyynt45wGWEtUxg@z \
    --to=kruceter@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).