From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C136B158041 for ; Fri, 5 Apr 2024 08:21:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA93C2BC013; Fri, 5 Apr 2024 08:21:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C70032BC013 for ; Fri, 5 Apr 2024 08:21:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B67293431B6 for ; Fri, 5 Apr 2024 08:21:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 249D6167F for ; Fri, 5 Apr 2024 08:21:05 +0000 (UTC) From: "Steffen Christgau" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Steffen Christgau" Message-ID: <1712305204.c63ee55bd8516b9e7df2b74f3a434f4a2c96e65d.christgau@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/wsdd/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/wsdd/Manifest net-misc/wsdd/wsdd-0.8.ebuild X-VCS-Directories: net-misc/wsdd/ X-VCS-Committer: christgau X-VCS-Committer-Name: Steffen Christgau X-VCS-Revision: c63ee55bd8516b9e7df2b74f3a434f4a2c96e65d X-VCS-Branch: dev Date: Fri, 5 Apr 2024 08:21:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0c2e1916-0449-480d-97ee-85683ac7d557 X-Archives-Hash: 8e8a1d26ffd9ac9ef92e552802223d0f commit: c63ee55bd8516b9e7df2b74f3a434f4a2c96e65d Author: Steffen Christgau s14u de> AuthorDate: Fri Apr 5 08:13:31 2024 +0000 Commit: Steffen Christgau s14u de> 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 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 +}