transmission: added runit service.
This commit is contained in:
parent
dfdc1e9951
commit
a947176cc3
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec chpst -u transmission:transmission transmission-daemon -f --log-error
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'transmission'
|
||||
pkgname=transmission
|
||||
version=2.84
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp"
|
||||
hostmakedepends="pkg-config intltool"
|
||||
|
@ -17,6 +17,8 @@ checksum=a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb
|
|||
system_accounts="transmission"
|
||||
transmission_homedir="/var/lib/transmission"
|
||||
make_dirs="/var/lib/transmission 0755 transmission transmission"
|
||||
subpackages="transmission-gtk"
|
||||
replaces="runit-void<20141013_2"
|
||||
|
||||
# Package build options
|
||||
build_options="systemd"
|
||||
|
@ -28,6 +30,7 @@ fi
|
|||
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
makedepends+=" qt-devel"
|
||||
subpackages+=" transmission-qt"
|
||||
fi
|
||||
|
||||
do_build() {
|
||||
|
@ -40,7 +43,6 @@ do_build() {
|
|||
make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs}
|
||||
fi
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Install CLI tools, daemon and web client
|
||||
for dir in cli daemon utils web; do
|
||||
|
@ -64,9 +66,9 @@ post_install() {
|
|||
if [ "$build_option_systemd" ]; then
|
||||
vinstall daemon/transmission-daemon.service 644 usr/lib/systemd/system
|
||||
fi
|
||||
vsv transmission-daemon
|
||||
}
|
||||
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
transmission-qt_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
|
||||
short_desc+=" - Qt frontend"
|
||||
|
@ -78,8 +80,6 @@ transmission-qt_package() {
|
|||
vinstall ${wrksrc}/qt/transmission-qt.desktop 644 usr/share/applications
|
||||
}
|
||||
}
|
||||
fi
|
||||
|
||||
transmission-gtk_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
|
||||
short_desc+=" - GTK+ frontend"
|
||||
|
|
Loading…
Reference in New Issue