wicd: added runit service.

This commit is contained in:
Juan RP 2014-10-13 14:09:25 +02:00
parent c155b99f23
commit aee6f3e3ce
2 changed files with 7 additions and 4 deletions

3
srcpkgs/wicd/files/wicd/run Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
exec wicd --no-daemon

View file

@ -1,7 +1,7 @@
# Template file for 'wicd'
pkgname=wicd
version=1.7.2.4
revision=10
revision=11
noarch=yes
hostmakedepends="python python-setuptools python-Babel"
depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
@ -19,6 +19,7 @@ distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.ta
checksum=dcfdfb5dbbb49dbb9b205fddf064d6b1a4e88f66f1cf40d12fb7fe0e0c7cdc97
build_options="systemd"
replaces="runit-void<20141013_2"
do_build() {
if [ "${build_option_systemd}" ]; then
@ -34,7 +35,6 @@ do_build() {
mkdir -p translations/ast/LC_MESSAGES
msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
}
do_install() {
python setup.py install --root=${DESTDIR}
@ -42,6 +42,7 @@ do_install() {
vmkdir usr/lib/wicd
vcopy "build/lib/wicd/*.py" usr/lib/wicd
chmod 755 ${DESTDIR}/usr/lib/wicd/*.py
vsv wicd
rm -rf ${DESTDIR}/lib
rm -rf ${DESTDIR}/usr/share/doc
@ -51,8 +52,7 @@ do_install() {
wicd-gtk_package() {
noarch=yes
depends="${sourcepkg}>=${version} pygtk python-notify shared-mime-info
desktop-file-utils hicolor-icon-theme"
depends="wicd>=${version} pygtk python-notify shared-mime-info desktop-file-utils hicolor-icon-theme"
short_desc+=" - GTK UI"
pycompile_dirs="usr/share/wicd/gtk"
pkg_install() {