1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
CRy386i
75ee9aedf7 fix name overlay 2025-02-05 13:40:12 +02:00
CRy386i
233366de1e bump wsdd 2025-02-05 13:32:50 +02:00
8 changed files with 103 additions and 1 deletions

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>mail@s14u.de</email>
<name>Steffen Christgau</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,10 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-group
DESCRIPTION="Group for net-misc/wsdd"
# might become 513 (month-day of initial user/group ebuild creation) in the future
ACCT_GROUP_ID=-1

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>mail@s14u.de</email>
<name>Steffen Christgau</name>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,13 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-user
DESCRIPTION="User for net-misc/wsdd"
# might become 513 (month-day of initial user/group ebuild creation) in the future
ACCT_USER_ID=-1
ACCT_USER_GROUPS=( ${PN} )
acct-user_add_deps

1
net-misc/wsdd/Manifest Normal file
View file

@ -0,0 +1 @@
DIST wsdd-0.8.tar.gz 40455 BLAKE2B e4b8e29073b6ea23b73d2f740f6dbabd8c90b615de32d9972c59e5a822daf6232fcdeafb180492a37c4a29ec266c733b160376abedce3b6a90feded2aed25aa2 SHA512 e3e5164f9ebe39c979456169bf1b0c6c4cd974792f08fa4dfab9c313fba88ae1208a8112db09c3655719b4e26bfc2616f844f17d2a245132c2f5b22e978e3c20

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">christgau/wsdd</remote-id>
</upstream>
<maintainer type="person">
<email>mail@s14u.de</email>
<name>Steffen Christgau</name>
</maintainer>
<longdescription lang="en">
A Web Service Discovery host daemon. It enables (Samba) hosts,
e.g. NAS devices, to be found by Web Service Discovery Clients
like Windows.
</longdescription>
</pkgmetadata>

View file

@ -0,0 +1,46 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{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}"
DEPEND=""
# 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 )"
BDEPEND=""
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
}

View file

@ -1 +1 @@
localrepo oh_my_little_overlay