From 54658e4cc53f1586a36b6d6578a4b9b56e9946bb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 8 Dec 2009 10:51:53 +0100 Subject: [PATCH] Added avahi-0.6.25 build template. --HG-- extra : convert_revision : ddfec312cf9657158ba3af47f902c9d2441c7e15 --- srcpkgs/avahi-autoipd | 1 + srcpkgs/avahi-compat-libs | 1 + srcpkgs/avahi-compat-libs-devel | 1 + srcpkgs/avahi-discover | 1 + srcpkgs/avahi-glib-libs | 1 + srcpkgs/avahi-glib-libs-devel | 1 + srcpkgs/avahi-libs | 1 + srcpkgs/avahi-libs-devel | 1 + srcpkgs/avahi-python | 1 + srcpkgs/avahi-python-utils | 1 + srcpkgs/avahi-ui-libs | 1 + srcpkgs/avahi-ui-libs-devel | 1 + srcpkgs/avahi-ui-utils | 1 + srcpkgs/avahi-utils | 1 + srcpkgs/avahi/INSTALL | 35 +++++++++++++ srcpkgs/avahi/REMOVE | 13 +++++ srcpkgs/avahi/avahi-autoipd.template | 27 ++++++++++ .../avahi/avahi-compat-libs-devel.template | 23 +++++++++ srcpkgs/avahi/avahi-compat-libs.template | 19 +++++++ srcpkgs/avahi/avahi-discover.template | 33 +++++++++++++ srcpkgs/avahi/avahi-glib-libs-devel.template | 22 +++++++++ srcpkgs/avahi/avahi-glib-libs.template | 18 +++++++ srcpkgs/avahi/avahi-libs-devel.template | 29 +++++++++++ srcpkgs/avahi/avahi-libs.template | 19 +++++++ srcpkgs/avahi/avahi-python-utils.template | 18 +++++++ srcpkgs/avahi/avahi-python.template | 17 +++++++ srcpkgs/avahi/avahi-ui-libs-devel.template | 22 +++++++++ srcpkgs/avahi/avahi-ui-libs.template | 17 +++++++ srcpkgs/avahi/avahi-ui-utils.template | 22 +++++++++ srcpkgs/avahi/avahi-utils.template | 25 ++++++++++ srcpkgs/avahi/depends | 2 + srcpkgs/avahi/template | 49 +++++++++++++++++++ 32 files changed, 424 insertions(+) create mode 120000 srcpkgs/avahi-autoipd create mode 120000 srcpkgs/avahi-compat-libs create mode 120000 srcpkgs/avahi-compat-libs-devel create mode 120000 srcpkgs/avahi-discover create mode 120000 srcpkgs/avahi-glib-libs create mode 120000 srcpkgs/avahi-glib-libs-devel create mode 120000 srcpkgs/avahi-libs create mode 120000 srcpkgs/avahi-libs-devel create mode 120000 srcpkgs/avahi-python create mode 120000 srcpkgs/avahi-python-utils create mode 120000 srcpkgs/avahi-ui-libs create mode 120000 srcpkgs/avahi-ui-libs-devel create mode 120000 srcpkgs/avahi-ui-utils create mode 120000 srcpkgs/avahi-utils create mode 100644 srcpkgs/avahi/INSTALL create mode 100644 srcpkgs/avahi/REMOVE create mode 100644 srcpkgs/avahi/avahi-autoipd.template create mode 100644 srcpkgs/avahi/avahi-compat-libs-devel.template create mode 100644 srcpkgs/avahi/avahi-compat-libs.template create mode 100644 srcpkgs/avahi/avahi-discover.template create mode 100644 srcpkgs/avahi/avahi-glib-libs-devel.template create mode 100644 srcpkgs/avahi/avahi-glib-libs.template create mode 100644 srcpkgs/avahi/avahi-libs-devel.template create mode 100644 srcpkgs/avahi/avahi-libs.template create mode 100644 srcpkgs/avahi/avahi-python-utils.template create mode 100644 srcpkgs/avahi/avahi-python.template create mode 100644 srcpkgs/avahi/avahi-ui-libs-devel.template create mode 100644 srcpkgs/avahi/avahi-ui-libs.template create mode 100644 srcpkgs/avahi/avahi-ui-utils.template create mode 100644 srcpkgs/avahi/avahi-utils.template create mode 100644 srcpkgs/avahi/depends create mode 100644 srcpkgs/avahi/template diff --git a/srcpkgs/avahi-autoipd b/srcpkgs/avahi-autoipd new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-autoipd @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-compat-libs b/srcpkgs/avahi-compat-libs new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-compat-libs @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-compat-libs-devel b/srcpkgs/avahi-compat-libs-devel new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-compat-libs-devel @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-discover b/srcpkgs/avahi-discover new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-discover @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-glib-libs b/srcpkgs/avahi-glib-libs new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-glib-libs @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-glib-libs-devel b/srcpkgs/avahi-glib-libs-devel new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-glib-libs-devel @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-libs b/srcpkgs/avahi-libs new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-libs @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-libs-devel b/srcpkgs/avahi-libs-devel new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-libs-devel @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-python b/srcpkgs/avahi-python new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-python @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-python-utils b/srcpkgs/avahi-python-utils new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-python-utils @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-ui-libs b/srcpkgs/avahi-ui-libs new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-ui-libs @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-ui-libs-devel b/srcpkgs/avahi-ui-libs-devel new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-ui-libs-devel @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-ui-utils b/srcpkgs/avahi-ui-utils new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-ui-utils @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi-utils b/srcpkgs/avahi-utils new file mode 120000 index 0000000000..3d497a7274 --- /dev/null +++ b/srcpkgs/avahi-utils @@ -0,0 +1 @@ +avahi \ No newline at end of file diff --git a/srcpkgs/avahi/INSTALL b/srcpkgs/avahi/INSTALL new file mode 100644 index 0000000000..dfeb228b57 --- /dev/null +++ b/srcpkgs/avahi/INSTALL @@ -0,0 +1,35 @@ +# +# This script creates the avahi and netdev system user/group. +# + +case "${ACTION}" in +pre) + ;; +post) + if ! getent group netdev >/dev/null; then + groupadd -r netdev 2>&1 >/dev/null + [ $? -ne 0 ] && exit $? + echo "Created netdev system group." + fi + if ! getent passwd netdev >/dev/null; then + useradd -c "Network device user" \ + -d / -s /sbin/nologin -g netdev -r netdev && \ + passwd -l netdev 2>&1 >/dev/null + [ $? -ne 0 ] && exit $? + echo "Created netdev system user." + fi + if ! getent group avahi >/dev/null; then + groupadd -r avahi 2>&1 >/dev/null + [ $? -ne 0 ] && exit $? + echo "Created avahi system group." + fi + if ! getent passwd avahi >/dev/null; then + useradd -c "Avahi daemon" \ + -d / -s /sbin/nologin -g avahi -r avahi && \ + passwd -l avahi 2>&1 >/dev/null + [ $? -ne 0 ] && exit $? + echo "Created avahi system user." + fi + + ;; +esac diff --git a/srcpkgs/avahi/REMOVE b/srcpkgs/avahi/REMOVE new file mode 100644 index 0000000000..62abe84e29 --- /dev/null +++ b/srcpkgs/avahi/REMOVE @@ -0,0 +1,13 @@ +# +# This script removes the avahi and netdev user/group. +# +case "${ACTION}" in +pre) + userdel avahi &>/dev/null + [ $? -eq 0 ] && echo "Removed avahi system user/group." + userdel netdev &>/dev/null + [ $? -eq 0 ] && echo "Removed netdev system user/group." + ;; +post) + ;; +esac diff --git a/srcpkgs/avahi/avahi-autoipd.template b/srcpkgs/avahi/avahi-autoipd.template new file mode 100644 index 0000000000..79a58084f2 --- /dev/null +++ b/srcpkgs/avahi/avahi-autoipd.template @@ -0,0 +1,27 @@ +# Template file for 'avahi-autoipd'. +# +short_desc="Avahi IPv4LL network address configuration daemon" +long_desc="${long_desc} + + This tool implements IPv4LL, Dynamic Configuration of IPv4 Link-Local + Addresses (IETF RFC3927), a protocol for automatic IP address configuration + from the link-local 169.254.0.0/16 range without the need for a central + server. It is primarily intended to be used in ad-hoc networks which lack a + DHCP server." + +Add_dependency run glibc +Add_dependency run libssp +Add_dependency run libdaemon +Add_dependency run net-tools + +do_install() +{ + mkdir -p ${DESTDIR}/usr/sbin + mkdir -p ${DESTDIR}/usr/share/man/man8 + mkdir -p ${DESTDIR}/etc/avahi + + mv ${SRCPKGDESTDIR}/usr/sbin/avahi-autoipd ${DESTDIR}/usr/sbin + mv ${SRCPKGDESTDIR}/usr/share/man/man8/avahi-autoipd* \ + ${DESTDIR}/usr/share/man/man8 + mv ${SRCPKGDESTDIR}/etc/avahi/avahi-autoipd.action ${DESTDIR}/etc/avahi +} diff --git a/srcpkgs/avahi/avahi-compat-libs-devel.template b/srcpkgs/avahi/avahi-compat-libs-devel.template new file mode 100644 index 0000000000..87343f76ff --- /dev/null +++ b/srcpkgs/avahi/avahi-compat-libs-devel.template @@ -0,0 +1,23 @@ +# Template file for 'avahi-compat-libs-devel'. +# +short_desc="Avahi compat libraries (development files)" +long_desc="${long_desc} + + This package contains development files for the HOWL compatibility + libraries provided by Avahi." + +Add_dependency run avahi-libs-devel +Add_dependency run avahi-compat-libs + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/include + + mv ${SRCPKGDESTDIR}/usr/include/avahi-compat* ${DESTDIR}/usr/include + mv ${SRCPKGDESTDIR}/usr/lib/libhowl.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libhowl.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libdns_sd.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libdns_sd.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/avahi-compat* \ + ${DESTDIR}/usr/lib/pkgconfig +} diff --git a/srcpkgs/avahi/avahi-compat-libs.template b/srcpkgs/avahi/avahi-compat-libs.template new file mode 100644 index 0000000000..f70eb73a53 --- /dev/null +++ b/srcpkgs/avahi/avahi-compat-libs.template @@ -0,0 +1,19 @@ +# Template file for 'avahi-compat-libs'. +# +short_desc="Avahi compatiblity shared libraries" +long_desc="${long_desc} + + This package contains howl/mDNSResponder compatibility shared + libraries provided by Avahi." + +Add_dependency run glibc +Add_dependency run libssp +Add_dependency run dbus-libs +Add_dependency run avahi-libs + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libhowl.so.* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libdns_sd.so.* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/avahi/avahi-discover.template b/srcpkgs/avahi/avahi-discover.template new file mode 100644 index 0000000000..d0ffa89e37 --- /dev/null +++ b/srcpkgs/avahi/avahi-discover.template @@ -0,0 +1,33 @@ +# Template file for 'avahi-discover'. +# +short_desc="Service discover user interface for avahi" +long_desc="${long_desc} + + This package contains a user interface for discovering services." + +Add_dependency run avahi +Add_dependency run python +Add_dependency run avahi-python +Add_dependency run dbus-python +Add_dependency run pygtk + +noarch=yes + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin + mkdir -p ${DESTDIR}/usr/share/man/man1 + mkdir -p ${DESTDIR}/usr/share/applications + mkdir -p ${DESTDIR}/usr/share/avahi/interfaces + mkdir -p ${DESTDIR}/usr/lib/python2.6/site-packages + + mv ${SRCPKGDESTDIR}/usr/bin/avahi-discover ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/share/man/man1/avahi-discover* \ + ${DESTDIR}/usr/share/man/man1 + mv ${SRCPKGDESTDIR}/usr/share/applications/avahi-discover.desktop \ + ${DESTDIR}/usr/share/applications + mv ${SRCPKGDESTDIR}/usr/share/avahi/interfaces/avahi-discover.glade \ + ${DESTDIR}/usr/share/avahi/interfaces + mv ${SRCPKGDESTDIR}/usr/lib/python2.6/site-packages/avahi_discover \ + ${DESTDIR}/usr/lib/python2.6/site-packages +} diff --git a/srcpkgs/avahi/avahi-glib-libs-devel.template b/srcpkgs/avahi/avahi-glib-libs-devel.template new file mode 100644 index 0000000000..734f6fa971 --- /dev/null +++ b/srcpkgs/avahi/avahi-glib-libs-devel.template @@ -0,0 +1,22 @@ +# Template file for 'avahi-glib-libs-devel'. +# +short_desc="Avahi glib libraries (development files)" +long_desc="${long_desc} + + This package contains development files for the glib libraries + provided by Avahi." + +Add_dependency run glibc-devel +Add_dependency run avahi-libs-devel +Add_dependency run glib-devel + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/include + + mv ${SRCPKGDESTDIR}/usr/include/avahi-g* ${DESTDIR}/usr/include + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-g*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-g*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/avahi-g* \ + ${DESTDIR}/usr/lib/pkgconfig +} diff --git a/srcpkgs/avahi/avahi-glib-libs.template b/srcpkgs/avahi/avahi-glib-libs.template new file mode 100644 index 0000000000..642fb38770 --- /dev/null +++ b/srcpkgs/avahi/avahi-glib-libs.template @@ -0,0 +1,18 @@ +# Template file for 'avahi-glib-libs'. +# +short_desc="Avahi glib shared libraries" +long_desc="${long_desc} + + This package contains the glib shared libraries provided by Avahi." + +Add_dependency run glibc +Add_dependency run avahi-libs +Add_dependency run glib + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-glib.so.* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-gobject.so.* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/avahi/avahi-libs-devel.template b/srcpkgs/avahi/avahi-libs-devel.template new file mode 100644 index 0000000000..9c525e9860 --- /dev/null +++ b/srcpkgs/avahi/avahi-libs-devel.template @@ -0,0 +1,29 @@ +# Template file for 'avahi-libs-devel'. +# +short_desc="Avahi core libraries (development files)" +long_desc="${long_desc} + + This package contains development files for the core libraries + provided by Avahi." + +Add_dependency run glibc-devel +Add_dependency run libssp-devel +Add_dependency run dbus-devel + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/include + + for f in common client core; do + mv ${SRCPKGDESTDIR}/usr/include/avahi-${f} \ + ${DESTDIR}/usr/include + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-${f}.so \ + ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-${f}.a \ + ${DESTDIR}/usr/lib + done + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/avahi-core.pc \ + ${DESTDIR}/usr/lib/pkgconfig + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/avahi-client.pc \ + ${DESTDIR}/usr/lib/pkgconfig +} diff --git a/srcpkgs/avahi/avahi-libs.template b/srcpkgs/avahi/avahi-libs.template new file mode 100644 index 0000000000..9df9f624bb --- /dev/null +++ b/srcpkgs/avahi/avahi-libs.template @@ -0,0 +1,19 @@ +# Template file for 'avahi-libs'. +# +short_desc="Avahi shared libraries" +long_desc="${long_desc} + + This package contains core shared libraries provided by Avahi." + +Add_dependency run glibc +Add_dependency run libssp +Add_dependency run dbus-libs + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-client.so.* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-core.so.* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-common.so.* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/avahi/avahi-python-utils.template b/srcpkgs/avahi/avahi-python-utils.template new file mode 100644 index 0000000000..ff1037429e --- /dev/null +++ b/srcpkgs/avahi/avahi-python-utils.template @@ -0,0 +1,18 @@ +# Template file for 'avahi-python-utils'. +# +short_desc="Avahi python utils" +long_desc="${long_desc} + + This package contains the python utilities provided by Avahi." + +Add_dependency run avahi-python + +noarch=yes + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/man/man1 + mv ${SRCPKGDESTDIR}/usr/bin/avahi-bookmarks ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/share/man/man1/avahi-bookmarks* \ + ${DESTDIR}/usr/share/man/man1 +} diff --git a/srcpkgs/avahi/avahi-python.template b/srcpkgs/avahi/avahi-python.template new file mode 100644 index 0000000000..e100951b17 --- /dev/null +++ b/srcpkgs/avahi/avahi-python.template @@ -0,0 +1,17 @@ +# Template file for 'avahi-python'. +# +short_desc="Python utility package for Avahi" +long_desc="${long_desc} + + This package contains utility modules to talk to Avahi with Python easier." + +Add_dependency run python +Add_dependency run dbus-python + +noarch=yes + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/python* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/avahi/avahi-ui-libs-devel.template b/srcpkgs/avahi/avahi-ui-libs-devel.template new file mode 100644 index 0000000000..64d6e4fbee --- /dev/null +++ b/srcpkgs/avahi/avahi-ui-libs-devel.template @@ -0,0 +1,22 @@ +# Template file for 'avahi-ui-libs-devel'. +# +short_desc="Avahi UI libraries (development files)" +long_desc="${long_desc} + + This package contains development files for the UI libraries + provided by Avahi." + +Add_dependency run glibc-devel +Add_dependency run avahi-libs-devel +Add_dependency run gtk+-devel +Add_dependency run gdbm-devel + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/include + + mv ${SRCPKGDESTDIR}/usr/include/avahi-ui ${DESTDIR}/usr/include + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-ui.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-ui.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/avahi/avahi-ui-libs.template b/srcpkgs/avahi/avahi-ui-libs.template new file mode 100644 index 0000000000..9a60fda50e --- /dev/null +++ b/srcpkgs/avahi/avahi-ui-libs.template @@ -0,0 +1,17 @@ +# Template file for 'avahi-ui-libs'. +# +short_desc="Avahi UI shared libraries" +long_desc="${long_desc} + + This package contains the UI shared libraries provided by Avahi." + +Add_dependency run glibc +Add_dependency run avahi-libs +Add_dependency run gtk+ +Add_dependency run gdbm + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libavahi-ui.so.* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/avahi/avahi-ui-utils.template b/srcpkgs/avahi/avahi-ui-utils.template new file mode 100644 index 0000000000..6f98178dd8 --- /dev/null +++ b/srcpkgs/avahi/avahi-ui-utils.template @@ -0,0 +1,22 @@ +# Template file for 'avahi-ui-utils'. +# +short_desc="Avahi GTK+ utilities" +long_desc="${long_desc} + + This package contains some small GTK+ utilities to discover services." + +Add_dependency run glibc +Add_dependency run avahi-glib-libs +Add_dependency run avahi-ui-libs +Add_dependency run avahi + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/man/man1 + + mv ${SRCPKGDESTDIR}/usr/bin/b* ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/share/man/man1/b* ${DESTDIR}/usr/share/man/man1 + mv ${SRCPKGDESTDIR}/usr/share/applications ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/bin/avahi-discover-standalone \ + ${DESTDIR}/usr/bin +} diff --git a/srcpkgs/avahi/avahi-utils.template b/srcpkgs/avahi/avahi-utils.template new file mode 100644 index 0000000000..8e8ab9d63f --- /dev/null +++ b/srcpkgs/avahi/avahi-utils.template @@ -0,0 +1,25 @@ +# Template file for 'avahi-utils'. +# +short_desc="Avahi browsing, publishing and discovery utilities" +long_desc="${long_desc} + + This package contains several utilities that allow you to interact with the + Avahi daemon, including publish, browsing and discovering services." + +Add_dependency run glibc +Add_dependency run libssp +Add_dependency run dbus-libs +Add_dependency run gdbm +Add_dependency run avahi-libs +Add_dependency run avahi + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/man/man1 + + for f in browse publish resolve set-host-name; do + mv ${SRCPKGDESTDIR}/usr/bin/avahi-${f}* ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/share/man/man1/avahi-${f}* \ + ${DESTDIR}/usr/share/man/man1 + done +} diff --git a/srcpkgs/avahi/depends b/srcpkgs/avahi/depends new file mode 100644 index 0000000000..d628a4ac57 --- /dev/null +++ b/srcpkgs/avahi/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.6.25" +api_depends="${abi_depends}" diff --git a/srcpkgs/avahi/template b/srcpkgs/avahi/template new file mode 100644 index 0000000000..4ed0de962b --- /dev/null +++ b/srcpkgs/avahi/template @@ -0,0 +1,49 @@ +# Template file for 'avahi' +pkgname=avahi +version=0.6.25 +distfiles="http://www.avahi.org/download/avahi-$version.tar.gz" +build_style=gnu_configure +configure_args="--disable-qt3 --disable-qt4 --disable-mono --disable-monodoc + --disable-doxygen-doc --enable-compat-libdns_sd --enable-compat-howl + --with-xml=expat --with-avahi-user=avahi --with-avahi-group=avahi + --with-avahi-priv-access-group=netdev --with-autoipd-user=avahi + --with-autoipd-group=avahi --with-distro=gentoo --disable-xmltoman + --disable-dbm --localstatedir=/var" +short_desc="Multicast DNS Service Discovery" +maintainer="Juan RP " +checksum=9220d974f5515b8ccfa3900cd72cedcac0fa4cc87ca3c64405f7c55346cbba59 +long_desc=" + Avahi is a fully LGPL framework for Multicast DNS Service Discovery. + It allows programs to publish and discover services and hosts running on a + local network with no specific configuration. For example you can plug into + a network and instantly find printers to print to, files to look at and + people to talk to." + +openrc_services="avahi-daemon default avahi-dnsconfd default" +conf_files="/etc/avahi/avahi-daemon.conf /etc/avahi/hosts.conf" + +subpackages="$pkgname-autoipd $pkgname-discover $pkgname-compat-libs" +subpackages="$subpackages $pkgname-compat-libs-devel $pkgname-libs" +subpackages="$subpackages $pkgname-libs-devel $pkgname-glib-libs" +subpackages="$subpackages $pkgname-glib-libs-devel $pkgname-ui-libs" +subpackages="$subpackages $pkgname-ui-libs-devel $pkgname-utils" +subpackages="$subpackages $pkgname-ui-utils $pkgname-python-utils" +subpackages="$subpackages $pkgname-python" + +Add_dependency run glibc +Add_dependency run dbus +Add_dependency run expat +Add_dependency run libcap +Add_dependency run libdaemon +Add_dependency run avahi-libs + +Add_dependency build dbus-devel +Add_dependency build libcap-devel +Add_dependency build libdaemon-devel +Add_dependency build gdbm-devel +Add_dependency build glib-devel +Add_dependency build expat-devel +Add_dependency build pygtk +Add_dependency build dbus-python +Add_dependency build libglade +Add_dependency build intltool