1 |
commit: 2fe38cf52c19aff76ce9ef3073184109d639356c |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 14:33:18 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 14:47:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fe38cf5 |
7 |
|
8 |
media-video/ushare: new upstream & snapshot |
9 |
|
10 |
Also move to EAPI=7, GLEP81 user, some patch cleanup |
11 |
|
12 |
Bug: https://bugs.gentoo.org/761882 |
13 |
|
14 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
15 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
16 |
|
17 |
media-video/ushare/Manifest | 1 + |
18 |
media-video/ushare/ushare-1.1a_p20200824.ebuild | 67 +++++++++++++++++++++++++ |
19 |
2 files changed, 68 insertions(+) |
20 |
|
21 |
diff --git a/media-video/ushare/Manifest b/media-video/ushare/Manifest |
22 |
index c28310398e1..183df7c4b52 100644 |
23 |
--- a/media-video/ushare/Manifest |
24 |
+++ b/media-video/ushare/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST ushare-1.1a.tar.bz2 65864 BLAKE2B 2a6d6922ee46c96d89a6f9a3238a1cded04194c4e7b80432e87a1c2344dcbf36484959d4601a7da8dc599531334b15a0547fc571af72630f25562e07a4116ea9 SHA512 2144ef96e58960d4d11bcefcd857c7eb7adab8df4ff815772d3b9d668f9f9daa1312707eb00a770c461b2a316e094e6697a004723ea02e86ee872fbe60b4797c |
27 |
+DIST ushare-1.1a_p20200824.tar.gz 72751 BLAKE2B 3f9116eab500ad9eb959ded9b1e406100cfbbc32c27b1cc599ef301f8d72e9acb1e053722b8724fc3d350fffda6e5b932eb78cd5fc3f2b5dbe67431f5f5de5b4 SHA512 530fe718e2d52acc27af670d7e44703b34fea33d15fcda3bd1fd4c5702794647576df8a329a11439f0eeca52e75390548a5417776add7b5ab3f09bb0eb85ac11 |
28 |
|
29 |
diff --git a/media-video/ushare/ushare-1.1a_p20200824.ebuild b/media-video/ushare/ushare-1.1a_p20200824.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..ab9242b1ce0 |
32 |
--- /dev/null |
33 |
+++ b/media-video/ushare/ushare-1.1a_p20200824.ebuild |
34 |
@@ -0,0 +1,67 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+inherit readme.gentoo-r1 toolchain-funcs systemd |
40 |
+ |
41 |
+COMMIT="5f7f66cd89d5b0652c1226e65bbf9c85aeba00f2" |
42 |
+ |
43 |
+DESCRIPTION="uShare is a UPnP (TM) A/V & DLNA Media Server" |
44 |
+HOMEPAGE="https://github.com/ddugovic/uShare/" |
45 |
+SRC_URI="https://github.com/ddugovic/uShare/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="nls" |
51 |
+ |
52 |
+DEPEND=">=net-libs/libupnp-1.14" |
53 |
+RDEPEND="acct-user/ushare |
54 |
+ ${DEPEND}" |
55 |
+BDEPEND="virtual/pkgconfig" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/01_all_ushare_build_system.patch |
59 |
+ "${FILESDIR}"/02_all_ushare_build_warnings.patch |
60 |
+ "${FILESDIR}"/03_all_ushare_mp4_video_mime.patch |
61 |
+ "${FILESDIR}"/07_all_drop_optimizations.patch |
62 |
+) |
63 |
+DOCS="NEWS README.md TODO THANKS AUTHORS" |
64 |
+DOC_CONTENTS="Please edit /etc/ushare.conf to set the shared directories |
65 |
+ and other important settings. Check system log if ushare is |
66 |
+ not booting." |
67 |
+ |
68 |
+S="${WORKDIR}/uShare-${COMMIT}" |
69 |
+ |
70 |
+src_configure() { |
71 |
+ local myconf |
72 |
+ myconf="--prefix=/usr --sysconfdir=/etc --disable-strip --disable-dlna" |
73 |
+ # nls can only be disabled, on by default. |
74 |
+ use nls || myconf="${myconf} --disable-nls" |
75 |
+ |
76 |
+ # I can't use econf |
77 |
+ # --host is not implemented in ./configure file |
78 |
+ tc-export CC CXX |
79 |
+ |
80 |
+ ./configure ${myconf} || die "./configure failed" |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ default |
85 |
+ doman src/ushare.1 |
86 |
+ newconfd "${FILESDIR}"/${PN}.conf.d ${PN} |
87 |
+ newinitd "${FILESDIR}"/${PN}.init.d.ng ${PN} |
88 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
89 |
+ readme.gentoo_create_doc |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ enewuser ushare |
94 |
+ readme.gentoo_print_elog |
95 |
+ elog |
96 |
+ elog "The config file has been moved to /etc/ushare.conf" |
97 |
+ elog "Please migrate your settings from /etc/conf.d/ushare" |
98 |
+ elog "to /etc/ushare.conf in order to use the ushare init script" |
99 |
+ elog "and systemd unit service." |
100 |
+ elog |
101 |
+} |