aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2021-02-17 23:46:11 +0200
committerLeo <thinkabit.ukim@gmail.com>2021-02-18 13:51:07 +0000
commitbfc3e6055240852918477b03139f1f86a11b1307 (patch)
treec1186a09d2645119fb65b5cf587e90593230609e
parent7628167f9848da3185ee322cca7c2c8b9a312c4c (diff)
downloadaports-bfc3e6055240852918477b03139f1f86a11b1307.tar.gz
aports-bfc3e6055240852918477b03139f1f86a11b1307.tar.bz2
aports-bfc3e6055240852918477b03139f1f86a11b1307.tar.xz
community/transmission: use default split function for openrc
* This also auto-installs the service files if openrc is present.
-rw-r--r--community/transmission/APKBUILD17
1 files changed, 7 insertions, 10 deletions
diff --git a/community/transmission/APKBUILD b/community/transmission/APKBUILD
index c0c856ff39..7e18809a72 100644
--- a/community/transmission/APKBUILD
+++ b/community/transmission/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=transmission
pkgver=3.00
-pkgrel=2
+pkgrel=3
pkgdesc="Lightweight GTK BitTorrent client"
url="https://transmissionbt.com/"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
@@ -20,7 +20,7 @@ source="https://github.com/transmission/transmission-releases/raw/master/transmi
transmission-daemon.logrotate
disable-missing-lang.patch
"
-subpackages="$pkgname-cli $pkgname-daemon $pkgname-daemon-openrc:daemon_openrc $pkgname-doc $pkgname-lang $pkgname-static"
+subpackages="$pkgname-cli $pkgname-daemon $pkgname-daemon-openrc $pkgname-doc $pkgname-lang $pkgname-static"
# secfixes:
# 3.00-r0:
@@ -44,6 +44,11 @@ build() {
package() {
make -C build DESTDIR="$pkgdir" install
+
+ install -D -m755 "$srcdir"/transmission-daemon.initd \
+ "$pkgdir"/etc/init.d/transmission-daemon
+ install -D -m644 "$srcdir"/transmission-daemon.confd \
+ "$pkgdir"/etc/conf.d/transmission-daemon
}
daemon() {
@@ -62,14 +67,6 @@ daemon() {
"$subpkgdir"/etc/logrotate.d/transmission-daemon
}
-daemon_openrc() {
- pkgdesc="Lightweight BitTorrent client (OpenRC service files)"
- install -D -m755 "$srcdir"/transmission-daemon.initd \
- "$subpkgdir"/etc/init.d/transmission-daemon
- install -D -m644 "$srcdir"/transmission-daemon.confd \
- "$subpkgdir"/etc/conf.d/transmission-daemon
-}
-
cli() {
pkgdesc="Lightweight BitTorrent client (cli and remote)"