commit: ca0fa713f98eadadab2e9755a3625690afdcbe8d Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Mon Sep 8 15:43:55 2025 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Mon Sep 8 15:44:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca0fa713
media-video/ushare: add 2.1_p20250817 New snapshot to fix memleak Bug: https://bugs.gentoo.org/962374 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> media-video/ushare/Manifest | 1 + media-video/ushare/ushare-2.1_p20250817.ebuild | 66 ++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/media-video/ushare/Manifest b/media-video/ushare/Manifest index dfbbc0f43ce3..2303f3ad0182 100644 --- a/media-video/ushare/Manifest +++ b/media-video/ushare/Manifest @@ -1 +1,2 @@ DIST ushare-2.1.tar.gz 72741 BLAKE2B 36891a8525cc131970f2c03a0dbb011c55c6e80c4b8715b961cf3eb72376edbcfbf728870f5bb24ff0ea806a0cbfd63559df9e8372a7374d9ea299ee1f52d81f SHA512 4712b08af9ec0450f4cc35a7827d1ba34dc72e806022abbbbbfae297ff8f97c9220a8f11b1c0f0a15c425e08a7b1629ac19766567dc3dce225e43d678c8f750d +DIST ushare-2.1_p20250817.tar.gz 72898 BLAKE2B 88df11b32e69288e034c74517328149d9bf818eb7ea1cb6e9066ddc08e867a3a567d3a9ccf133b4711f053c05ebb5c78643dbdc2152cdbb393946fe9a401067d SHA512 f90c8fb8d6d4a59b9e93aa9449f1266be959be330b614e07d740dd7c1bdc7e3ad705cb10384fcbf1aa1bf564e1268109a945852e4dc8227aa0f8d493dae76ef3 diff --git a/media-video/ushare/ushare-2.1_p20250817.ebuild b/media-video/ushare/ushare-2.1_p20250817.ebuild new file mode 100644 index 000000000000..82b3e0c92eeb --- /dev/null +++ b/media-video/ushare/ushare-2.1_p20250817.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +COMMIT="371712387d6f800cbb909fb835abd2ae6ef54348" + +inherit readme.gentoo-r1 toolchain-funcs systemd + +DESCRIPTION="uShare is a UPnP (TM) A/V & DLNA Media Server" +HOMEPAGE="https://github.com/ddugovic/uShare/" +SRC_URI="https://github.com/ddugovic/uShare/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +DEPEND=">=net-libs/libupnp-1.14" +RDEPEND="acct-user/ushare + ${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/01_all_ushare_build_system.patch + "${FILESDIR}"/02_all_ushare_build_warnings.patch + "${FILESDIR}"/03_all_ushare_mp4_video_mime.patch + "${FILESDIR}"/07_all_drop_optimizations.patch +) +DOCS="NEWS README.md TODO THANKS AUTHORS" +DOC_CONTENTS="Please edit /etc/ushare.conf to set the shared directories + and other important settings. Check system log if ushare is + not booting." + +S="${WORKDIR}/uShare-${COMMIT}" + +src_configure() { + local myconf + myconf="--prefix=/usr --sysconfdir=/etc --disable-strip --disable-dlna" + # nls can only be disabled, on by default. + use nls || myconf="${myconf} --disable-nls" + + # I can't use econf + # --host is not implemented in ./configure file + tc-export CC CXX + + ./configure ${myconf} || die "./configure failed" +} + +src_install() { + default + doman src/ushare.1 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN} + newinitd "${FILESDIR}"/${PN}.init.d.ng ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + elog + elog "The config file has been moved to /etc/ushare.conf" + elog "Please migrate your settings from /etc/conf.d/ushare" + elog "to /etc/ushare.conf in order to use the ushare init script" + elog "and systemd unit service." + elog +}
