diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-05-09 12:53:31 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-05-12 08:43:19 -0700 |
commit | 88cc44c35983e3bde8f2c3461dfdd7f5ded1ec50 (patch) | |
tree | 432d195fd93061911d22e5d181d00309cb5e8a05 | |
parent | 5fe3c7a2d358b49b52609e93a8f9d6c5c00377da (diff) | |
download | meta-openembedded-88cc44c35983e3bde8f2c3461dfdd7f5ded1ec50.tar.gz |
transmission: Upgrade to 4.0.5
License-Update: Copyright Years updated
Add missing MIT license,see COPYING file
Switch to cmake build system as thats the new and only
build system supported.
Use gtk4 when selecting gtk knob, it can support gtk3 as well
however, its not added as knob, if needed someone should send
a patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/transmission/transmission_4.0.5.bb (renamed from meta-oe/recipes-connectivity/transmission/transmission_git.bb) | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/meta-oe/recipes-connectivity/transmission/transmission_git.bb b/meta-oe/recipes-connectivity/transmission/transmission_4.0.5.bb index 735db1441..cbba31edb 100644 --- a/meta-oe/recipes-connectivity/transmission/transmission_git.bb +++ b/meta-oe/recipes-connectivity/transmission/transmission_4.0.5.bb | |||
@@ -1,50 +1,35 @@ | |||
1 | DESCRIPTION = "Transmission is a fast, easy, and free BitTorrent client" | 1 | DESCRIPTION = "Transmission is a fast, easy, and free BitTorrent client" |
2 | SECTION = "network" | 2 | SECTION = "network" |
3 | HOMEPAGE = "https://transmissionbt.com/" | 3 | HOMEPAGE = "https://transmissionbt.com/" |
4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "MIT & GPL-2.0-only" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f535ddffcf2a0d3af4f381f84f9b33" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=ba8199e739948e198310093de27175fa" |
6 | 6 | ||
7 | DEPENDS = "curl libevent gnutls openssl libtool intltool-native glib-2.0-native" | 7 | DEPENDS = "curl libevent gnutls openssl libtool intltool-native glib-2.0-native" |
8 | RDEPENDS:${PN}-web = "${PN}" | 8 | RDEPENDS:${PN}-web = "${PN}" |
9 | 9 | ||
10 | SRC_URI = " \ | 10 | SRC_URI = " \ |
11 | gitsm://github.com/transmission/transmission;branch=master;protocol=https \ | 11 | gitsm://github.com/transmission/transmission;branch=4.0.x;protocol=https \ |
12 | file://transmission-daemon \ | 12 | file://transmission-daemon \ |
13 | " | 13 | " |
14 | 14 | ||
15 | # Transmission release 3.00 | 15 | # Transmission release 4.0.5 |
16 | SRCREV = "bb6b5a062ee594dfd4b7a12a6b6e860c43849bfd" | 16 | SRCREV = "a6fe2a64aa7eca089f96006cf082a12f0cde937f" |
17 | PV = "3.00" | ||
18 | 17 | ||
19 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
20 | 19 | ||
21 | inherit autotools-brokensep gettext update-rc.d pkgconfig systemd mime-xdg | 20 | inherit cmake gettext update-rc.d pkgconfig systemd mime-xdg |
22 | 21 | ||
23 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \ | 22 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \ |
24 | ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" | 23 | ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" |
25 | 24 | ||
26 | PACKAGECONFIG[gtk] = " --with-gtk,--without-gtk,gtk+3," | 25 | PACKAGECONFIG[gtk] = "-DENABLE_GTK=ON,-DENABLE_GTK=OFF,gtk4 gtkmm4," |
27 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd," | 26 | PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd," |
28 | 27 | ||
29 | # Weak default values for transmission user and group | 28 | # Weak default values for transmission user and group |
30 | # Change them in bbappend if needed | 29 | # Change them in bbappend if needed |
31 | TRANSMISSION_USER ??= "root" | 30 | TRANSMISSION_USER ??= "root" |
32 | TRANSMISSION_GROUP ??= "root" | 31 | TRANSMISSION_GROUP ??= "root" |
33 | 32 | ||
34 | # Configure aborts with: | ||
35 | # config.status: error: po/Makefile.in.in was not created by intltoolize. | ||
36 | do_configure() { | ||
37 | sed -i /AM_GLIB_GNU_GETTEXT/d ${S}/configure.ac | ||
38 | cd ${S} | ||
39 | ./update-version-h.sh | ||
40 | intltoolize --copy --force --automake | ||
41 | aclocal | ||
42 | libtoolize --automake --copy --force | ||
43 | autoconf | ||
44 | automake -a | ||
45 | oe_runconf | ||
46 | } | ||
47 | |||
48 | do_install:append() { | 33 | do_install:append() { |
49 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 34 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
50 | sed -i '/USERNAME=/c\USERNAME=${TRANSMISSION_USER}' ${WORKDIR}/transmission-daemon | 35 | sed -i '/USERNAME=/c\USERNAME=${TRANSMISSION_USER}' ${WORKDIR}/transmission-daemon |
@@ -63,8 +48,8 @@ do_install:append() { | |||
63 | PACKAGES += "${PN}-gtk ${PN}-client ${PN}-web" | 48 | PACKAGES += "${PN}-gtk ${PN}-client ${PN}-web" |
64 | 49 | ||
65 | FILES:${PN}-client = "${bindir}/transmission-remote ${bindir}/transmission-cli ${bindir}/transmission-create ${bindir}/transmission-show ${bindir}/transmission-edit" | 50 | FILES:${PN}-client = "${bindir}/transmission-remote ${bindir}/transmission-cli ${bindir}/transmission-create ${bindir}/transmission-show ${bindir}/transmission-edit" |
66 | FILES:${PN}-gtk += "${bindir}/transmission-gtk ${datadir}/icons ${datadir}/applications ${datadir}/pixmaps" | 51 | FILES:${PN}-gtk += "${bindir}/transmission-gtk ${datadir}/icons ${datadir}/applications ${datadir}/pixmaps ${datadir}/metainfo" |
67 | FILES:${PN}-web = "${datadir}/transmission/web" | 52 | FILES:${PN}-web = "${datadir}/transmission/web ${datadir}/transmission/public_html" |
68 | FILES:${PN} = "${bindir}/transmission-daemon ${sysconfdir}/init.d/transmission-daemon ${datadir}/appdata" | 53 | FILES:${PN} = "${bindir}/transmission-daemon ${sysconfdir}/init.d/transmission-daemon ${datadir}/appdata" |
69 | 54 | ||
70 | SYSTEMD_SERVICE:${PN} = "transmission-daemon.service" | 55 | SYSTEMD_SERVICE:${PN} = "transmission-daemon.service" |