Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/rutorrent/
Date: Wed, 01 Mar 2023 18:05:06
Message-Id: 1677693525.e577947202453dc58c5656bc759d8d69333560f6.ceamac@gentoo
1 commit: e577947202453dc58c5656bc759d8d69333560f6
2 Author: Henning Schild <henning <AT> hennsch <DOT> de>
3 AuthorDate: Sun Jan 8 13:06:07 2023 +0000
4 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 17:58:45 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5779472
7
8 www-apps/rutorrent: bump version to 4.0.2 and update 9999
9
10 Note that rutorrent-9999.ebuild is now just a copy of the latest
11 version.
12
13 Closes: https://bugs.gentoo.org/730206
14 Signed-off-by: Henning Schild <henning <AT> hennsch.de>
15 Closes: https://github.com/gentoo/gentoo/pull/29010
16 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
17
18 www-apps/rutorrent/Manifest | 1 +
19 ...utorrent-9999.ebuild => rutorrent-4.0.2.ebuild} | 54 +++++++++++++---------
20 www-apps/rutorrent/rutorrent-9999.ebuild | 54 +++++++++++++---------
21 3 files changed, 67 insertions(+), 42 deletions(-)
22
23 diff --git a/www-apps/rutorrent/Manifest b/www-apps/rutorrent/Manifest
24 index 1b3fff019b61..d9b4d4d904a5 100644
25 --- a/www-apps/rutorrent/Manifest
26 +++ b/www-apps/rutorrent/Manifest
27 @@ -1 +1,2 @@
28 DIST rutorrent-3.8.tar.gz 1241643 BLAKE2B c432e8691d35447cd0698eee8edeee4060238dc39cc8cbb178c1169f166fa1d483493181ce0d2f468106ae01dd0f58d4fbb2f334de393fabb2b0aa73363e2b7f SHA512 ea3dfa74234a1eafcbc9e71d6c6d953a46fdf8e189237b8df0ec58cf46ac30404f7a15bb783ec7567ab6f28daa3987ee219039dd360e3c48d16aea244263c9b6
29 +DIST rutorrent-4.0.2.tar.gz 2221825 BLAKE2B 96867dbd818949388dedbfeee80ae85d22c9f3b04636d66797a96fc7b1de7541128445a989f642d711bd93aaf0840b56fe4e7bb7f29a02d122d939039eeff835 SHA512 f1f3cf7712246c02c73753e5ec8c3b5c0af4797699adeabc59822c165d06d7291d50a2d065b2d729273f907e1ec288391b1f02bc733a2b40d3e818a2de983528
30
31 diff --git a/www-apps/rutorrent/rutorrent-9999.ebuild b/www-apps/rutorrent/rutorrent-4.0.2.ebuild
32 similarity index 51%
33 copy from www-apps/rutorrent/rutorrent-9999.ebuild
34 copy to www-apps/rutorrent/rutorrent-4.0.2.ebuild
35 index ad651140c198..f7dbb6ae40d3 100644
36 --- a/www-apps/rutorrent/rutorrent-9999.ebuild
37 +++ b/www-apps/rutorrent/rutorrent-4.0.2.ebuild
38 @@ -1,9 +1,9 @@
39 -# Copyright 1999-2022 Gentoo Authors
40 +# Copyright 1999-2023 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 -EAPI=7
44 +EAPI=8
45
46 -inherit webapp
47 +inherit webapp optfeature
48
49 DESCRIPTION="ruTorrent is a front-end for the popular Bittorrent client rTorrent"
50 HOMEPAGE="https://github.com/Novik/ruTorrent"
51 @@ -13,41 +13,45 @@ if [[ ${PV} == 9999 ]]; then
52 else
53 SRC_URI="https://github.com/Novik/ruTorrent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
54 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
55 + S="${WORKDIR}/ruTorrent-${PV}"
56 fi
57
58 -LICENSE="GPL-2"
59 -IUSE=""
60 +LICENSE="GPL-2+ MIT"
61
62 -need_httpd_cgi
63 +RDEPEND="
64 + dev-lang/php[xml,gd]
65 + virtual/httpd-php
66 +"
67
68 -DEPEND="dev-lang/php[xml,gd]"
69 -RDEPEND="virtual/httpd-php"
70 +need_httpd_cgi
71
72 pkg_setup() {
73 webapp_pkg_setup
74 }
75
76 -src_prepare() {
77 - default
78 - find -name '\.gitignore' -type f -exec rm -rf {} \;
79 - if [[ ${PV} == 9999 ]]; then
80 - rm -rf .git
81 - fi
82 -}
83 -
84 src_install() {
85 webapp_src_preinst
86
87 + rm -r .github || die
88 + find . \( -name .gitignore -o -name .gitmodules \) -type f -delete || die
89 + if [[ ${PV} == 9999 ]]; then
90 + rm -r .git .gitattributes || die
91 + fi
92 +
93 insinto "${MY_HTDOCSDIR}"
94 doins -r .
95
96 + # can not use fperms beacuse of globbing
97 chmod +x "${ED}${MY_HTDOCSDIR}"/plugins/*/*.sh \
98 - "$ED${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed"
99 + "${ED}${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed"
100 +
101 + keepdir "${MY_HTDOCSDIR}"/conf/users
102 + keepdir "${MY_HTDOCSDIR}"/share/settings
103 + keepdir "${MY_HTDOCSDIR}"/share/torrents
104 + keepdir "${MY_HTDOCSDIR}"/share/users
105
106 - webapp_serverowned "${MY_HTDOCSDIR}"/share
107 - webapp_serverowned "${MY_HTDOCSDIR}"/share/settings
108 - webapp_serverowned "${MY_HTDOCSDIR}"/share/torrents
109 - webapp_serverowned "${MY_HTDOCSDIR}"/share/users
110 + webapp_serverowned -R "${MY_HTDOCSDIR}"/conf
111 + webapp_serverowned -R "${MY_HTDOCSDIR}"/share
112
113 webapp_configfile "${MY_HTDOCSDIR}"/conf/.htaccess
114 webapp_configfile "${MY_HTDOCSDIR}"/conf/config.php
115 @@ -57,3 +61,11 @@ src_install() {
116
117 webapp_src_install
118 }
119 +
120 +pkg_postinst() {
121 + webapp_pkg_postinst
122 +
123 + optfeature "Show audio file spectogram" media-sound/sox
124 + optfeature "Display media file information" media-video/mediainfo
125 + optfeature "Scrape Cloudflare based sites" dev-python/cloudscraper
126 +}
127
128 diff --git a/www-apps/rutorrent/rutorrent-9999.ebuild b/www-apps/rutorrent/rutorrent-9999.ebuild
129 index ad651140c198..f7dbb6ae40d3 100644
130 --- a/www-apps/rutorrent/rutorrent-9999.ebuild
131 +++ b/www-apps/rutorrent/rutorrent-9999.ebuild
132 @@ -1,9 +1,9 @@
133 -# Copyright 1999-2022 Gentoo Authors
134 +# Copyright 1999-2023 Gentoo Authors
135 # Distributed under the terms of the GNU General Public License v2
136
137 -EAPI=7
138 +EAPI=8
139
140 -inherit webapp
141 +inherit webapp optfeature
142
143 DESCRIPTION="ruTorrent is a front-end for the popular Bittorrent client rTorrent"
144 HOMEPAGE="https://github.com/Novik/ruTorrent"
145 @@ -13,41 +13,45 @@ if [[ ${PV} == 9999 ]]; then
146 else
147 SRC_URI="https://github.com/Novik/ruTorrent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
148 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
149 + S="${WORKDIR}/ruTorrent-${PV}"
150 fi
151
152 -LICENSE="GPL-2"
153 -IUSE=""
154 +LICENSE="GPL-2+ MIT"
155
156 -need_httpd_cgi
157 +RDEPEND="
158 + dev-lang/php[xml,gd]
159 + virtual/httpd-php
160 +"
161
162 -DEPEND="dev-lang/php[xml,gd]"
163 -RDEPEND="virtual/httpd-php"
164 +need_httpd_cgi
165
166 pkg_setup() {
167 webapp_pkg_setup
168 }
169
170 -src_prepare() {
171 - default
172 - find -name '\.gitignore' -type f -exec rm -rf {} \;
173 - if [[ ${PV} == 9999 ]]; then
174 - rm -rf .git
175 - fi
176 -}
177 -
178 src_install() {
179 webapp_src_preinst
180
181 + rm -r .github || die
182 + find . \( -name .gitignore -o -name .gitmodules \) -type f -delete || die
183 + if [[ ${PV} == 9999 ]]; then
184 + rm -r .git .gitattributes || die
185 + fi
186 +
187 insinto "${MY_HTDOCSDIR}"
188 doins -r .
189
190 + # can not use fperms beacuse of globbing
191 chmod +x "${ED}${MY_HTDOCSDIR}"/plugins/*/*.sh \
192 - "$ED${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed"
193 + "${ED}${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed"
194 +
195 + keepdir "${MY_HTDOCSDIR}"/conf/users
196 + keepdir "${MY_HTDOCSDIR}"/share/settings
197 + keepdir "${MY_HTDOCSDIR}"/share/torrents
198 + keepdir "${MY_HTDOCSDIR}"/share/users
199
200 - webapp_serverowned "${MY_HTDOCSDIR}"/share
201 - webapp_serverowned "${MY_HTDOCSDIR}"/share/settings
202 - webapp_serverowned "${MY_HTDOCSDIR}"/share/torrents
203 - webapp_serverowned "${MY_HTDOCSDIR}"/share/users
204 + webapp_serverowned -R "${MY_HTDOCSDIR}"/conf
205 + webapp_serverowned -R "${MY_HTDOCSDIR}"/share
206
207 webapp_configfile "${MY_HTDOCSDIR}"/conf/.htaccess
208 webapp_configfile "${MY_HTDOCSDIR}"/conf/config.php
209 @@ -57,3 +61,11 @@ src_install() {
210
211 webapp_src_install
212 }
213 +
214 +pkg_postinst() {
215 + webapp_pkg_postinst
216 +
217 + optfeature "Show audio file spectogram" media-sound/sox
218 + optfeature "Display media file information" media-video/mediainfo
219 + optfeature "Scrape Cloudflare based sites" dev-python/cloudscraper
220 +}