avahi: added runit service.
This commit is contained in:
parent
be37811570
commit
f92924db9c
3
srcpkgs/avahi/files/avahi-daemon/run
Executable file
3
srcpkgs/avahi/files/avahi-daemon/run
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
sv check dbus >/dev/null || exit 1
|
||||||
|
exec avahi-daemon -s
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'avahi'
|
# Template file for 'avahi'
|
||||||
pkgname=avahi
|
pkgname=avahi
|
||||||
version=0.6.31
|
version=0.6.31
|
||||||
revision=17
|
revision=18
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc
|
configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc
|
||||||
--disable-doxygen-doc --enable-compat-libdns_sd --enable-compat-howl
|
--disable-doxygen-doc --enable-compat-libdns_sd --enable-compat-howl
|
||||||
@ -28,6 +28,7 @@ conf_files="
|
|||||||
/etc/avahi/hosts
|
/etc/avahi/hosts
|
||||||
/etc/avahi/avahi-dnsconfd.action"
|
/etc/avahi/avahi-dnsconfd.action"
|
||||||
system_accounts="avahi:23"
|
system_accounts="avahi:23"
|
||||||
|
replaces="runit-void<20141013_2"
|
||||||
|
|
||||||
build_options="systemd"
|
build_options="systemd"
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
@ -46,10 +47,10 @@ post_extract() {
|
|||||||
# Switch to /run to not depend on /var/run being a symlink.
|
# Switch to /run to not depend on /var/run being a symlink.
|
||||||
sed -e 's,\(avahi_runtime_dir=\).*,\1\"/run\",' -i ${wrksrc}/configure
|
sed -e 's,\(avahi_runtime_dir=\).*,\1\"/run\",' -i ${wrksrc}/configure
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Enable 'disallow_other_stacks' option by default.
|
# Enable 'disallow_other_stacks' option by default.
|
||||||
sed -e 's,\#\(disallow-other-stacks\).*,\1=yes,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
|
sed -e 's,\#\(disallow-other-stacks\).*,\1=yes,' -i ${DESTDIR}/etc/avahi/avahi-daemon.conf
|
||||||
|
vsv avahi-daemon
|
||||||
}
|
}
|
||||||
|
|
||||||
avahi-autoipd_package() {
|
avahi-autoipd_package() {
|
||||||
@ -61,7 +62,6 @@ avahi-autoipd_package() {
|
|||||||
vmove etc/avahi/avahi-autoipd.action
|
vmove etc/avahi/avahi-autoipd.action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
avahi-compat-libs-devel_package() {
|
avahi-compat-libs-devel_package() {
|
||||||
depends="avahi-libs-devel-${version}_${revision} avahi-compat-libs-${version}_${revision}"
|
depends="avahi-libs-devel-${version}_${revision} avahi-compat-libs-${version}_${revision}"
|
||||||
short_desc="Avahi compat libraries - development files"
|
short_desc="Avahi compat libraries - development files"
|
||||||
@ -72,7 +72,6 @@ avahi-compat-libs-devel_package() {
|
|||||||
vmove usr/lib/libdns_sd.so
|
vmove usr/lib/libdns_sd.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
avahi-compat-libs_package() {
|
avahi-compat-libs_package() {
|
||||||
short_desc="Avahi compatiblity shared libraries"
|
short_desc="Avahi compatiblity shared libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
@ -80,7 +79,6 @@ avahi-compat-libs_package() {
|
|||||||
vmove "usr/lib/libdns_sd.so.*"
|
vmove "usr/lib/libdns_sd.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
avahi-libs-devel_package() {
|
avahi-libs-devel_package() {
|
||||||
depends="dbus-devel avahi-libs-${version}_${revision}"
|
depends="dbus-devel avahi-libs-${version}_${revision}"
|
||||||
short_desc="Avahi core libraries - development files"
|
short_desc="Avahi core libraries - development files"
|
||||||
@ -95,7 +93,6 @@ avahi-libs-devel_package() {
|
|||||||
vmove usr/lib/libavahi-common.so
|
vmove usr/lib/libavahi-common.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
avahi-libs_package() {
|
avahi-libs_package() {
|
||||||
short_desc="Avahi shared libraries"
|
short_desc="Avahi shared libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
@ -104,7 +101,6 @@ avahi-libs_package() {
|
|||||||
vmove "usr/lib/libavahi-common.so.*"
|
vmove "usr/lib/libavahi-common.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
avahi-utils_package() {
|
avahi-utils_package() {
|
||||||
short_desc="Avahi browsing, publishing and discovery utilities"
|
short_desc="Avahi browsing, publishing and discovery utilities"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user