commit: c63ee55bd8516b9e7df2b74f3a434f4a2c96e65d
Author: Steffen Christgau <mail <AT> s14u <DOT> de>
AuthorDate: Fri Apr 5 08:13:31 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Apr 5 08:20:04 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c63ee55b
net-misc/wsdd: add 0.8
Signed-off-by: Steffen Christgau <mail <AT> s14u.de>
net-misc/wsdd/Manifest | 1 +
net-misc/wsdd/wsdd-0.8.ebuild | 44 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/net-misc/wsdd/Manifest b/net-misc/wsdd/Manifest
index b8530a0ac5..21f2ff382e 100644
--- a/net-misc/wsdd/Manifest
+++ b/net-misc/wsdd/Manifest
@@ -1,2 +1,3 @@
DIST wsdd-0.7.0.tar.gz 30155 BLAKE2B
74eae9e8dbe4b357cf8931c07ca2131e541bbc57c066197debc6add7dfa99411c836cf4058d477ebbcf484682496110f533e6b8ecb79a8ea789fdc1fec5ebfce
SHA512
06926872a63b16526c315dd97e0b7711475c7a4f348db3cb994694256dd01ab099b98b0f6881a7a4fae97b9a8c6784da4b0dc7ec30bb607aa77c824d0687ee76
DIST wsdd-0.7.1.tar.gz 35921 BLAKE2B
ce43022c3bd9f7ff1fd7169ac0d5ab6b2ff78d35c221c05b2e20908a5772d563ab2aca571d4e6ae48a55d19d4adcb9cde60f720ae47af8ee950198224fcfdb26
SHA512
3d65fd5d5b4bd6ff37409e07301e082ffd2bb5df184cc12730e2cb2d36ebef030c6121b515af9c7eca59562e73414c7da6f7a6cd1b05c3bb27745e402cd7f684
+DIST wsdd-0.8.tar.gz 40455 BLAKE2B
e4b8e29073b6ea23b73d2f740f6dbabd8c90b615de32d9972c59e5a822daf6232fcdeafb180492a37c4a29ec266c733b160376abedce3b6a90feded2aed25aa2
SHA512
e3e5164f9ebe39c979456169bf1b0c6c4cd974792f08fa4dfab9c313fba88ae1208a8112db09c3655719b4e26bfc2616f844f17d2a245132c2f5b22e978e3c20
diff --git a/net-misc/wsdd/wsdd-0.8.ebuild b/net-misc/wsdd/wsdd-0.8.ebuild
new file mode 100644
index 0000000000..faed7e1265
--- /dev/null
+++ b/net-misc/wsdd/wsdd-0.8.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{10,11,12} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit python-r1 systemd
+
+DESCRIPTION="A Web Service Discovery host daemon."
+HOMEPAGE="https://github.com/christgau/wsdd"
+SRC_URI="https://github.com/christgau/wsdd/archive/v${PV}.tar.gz ->
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="samba"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Samba is technically not a requirement of wsdd, but depend on it if the use
flags is set.
+RDEPEND="${PYTHON_DEPS} acct-group/${PN} acct-user/${PN} samba? ( net-fs/samba
)"
+
+src_install() {
+ python_foreach_impl python_newscript src/wsdd.py wsdd
+
+ # remove dependency on samba from init.d script if samba is not in use
flags
+ if ! use samba ; then
+ sed -i -e '/need samba/d' etc/openrc/init.d/wsdd || die
+ fi
+
+ sed -i -e "s/daemon:daemon/${PN}:${PN}/" etc/openrc/init.d/wsdd || die
+
+ doinitd etc/openrc/init.d/wsdd
+ doconfd etc/openrc/conf.d/wsdd
+
+ # install systemd unit file with dependency on samba service if use
flag is set
+ if use samba; then
+ sed -i -e 's/;Wants=smb.service/Wants=samba.service/'
etc/systemd/wsdd.service || die
+ fi
+ systemd_dounit etc/systemd/wsdd.service
+
+ dodoc README.md
+ doman man/wsdd.8
+}