Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] socklog: depend on ipsvd for ucspi-tcp service
@ 2022-12-28  0:13 kruceter
  2022-12-28  0:25 ` [PR PATCH] [Updated] " kruceter
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: kruceter @ 2022-12-28  0:13 UTC (permalink / raw)
  To: ml

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

There is a new 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

socklog: depend on ipsvd for ucspi-tcp service
cc: @leahneukirchen (socklog's maintainer)

Closes #41300.

### socklog

#### 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: 3883 bytes --]

From ebe519f6750b088eb31586cda3ef8256b8e72a30 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 a0e74374264ff6fa61434523b165b114df19992a Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Wed, 28 Dec 2022 02:52:37 +0300
Subject: [PATCH 2/2] socklog: depend on ipsvd for ucspi-tcp service; fix
 license

The "license" variable was fixed to comply with xlint.
---
 srcpkgs/socklog/template | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/socklog/template b/srcpkgs/socklog/template
index eec1260e4740..557c976d6de8 100644
--- a/srcpkgs/socklog/template
+++ b/srcpkgs/socklog/template
@@ -1,10 +1,11 @@
 # Template file for 'socklog'
 pkgname=socklog
 version=2.1.0
-revision=5
+revision=6
+depends="ipsvd"
 short_desc="Small and secure syslogd replacement for use with runit"
 maintainer="Leah Neukirchen <leah@vuxu.org>"
-license="custom"
+license="BSD-3-Clause"
 homepage="http://smarden.org/socklog/"
 distfiles="http://smarden.org/socklog/socklog-${version}.tar.gz"
 checksum=aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-01-02 15:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PR PATCH] [Updated] " kruceter
2023-01-02 15:19 ` [PR PATCH] [Merged]: " leahneukirchen

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).