diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-17 18:59:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-17 19:18:55 +0000 |
commit | 2710ef4b124a558802611e95cbb9513d0a4075dc (patch) | |
tree | f542f8e9c4d2b1a37285517772b7a5a99e3333f2 /testing | |
parent | 42c872530e914f7e7623de8b14e72a320687f8be (diff) | |
download | aports-2710ef4b124a558802611e95cbb9513d0a4075dc.tar.bz2 aports-2710ef4b124a558802611e95cbb9513d0a4075dc.tar.xz |
testing/avahi: new aport
A multicast/unicast DNS-SD framework
http://www.avahi.org/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/avahi/APKBUILD | 112 | ||||
-rw-r--r-- | testing/avahi/avahi.pre-install | 13 | ||||
-rw-r--r-- | testing/avahi/gnome-nettool.png | bin | 0 -> 4509 bytes |
3 files changed, 125 insertions, 0 deletions
diff --git a/testing/avahi/APKBUILD b/testing/avahi/APKBUILD new file mode 100644 index 000000000..f1e8e02f9 --- /dev/null +++ b/testing/avahi/APKBUILD @@ -0,0 +1,112 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=avahi +pkgver=0.6.28 +pkgrel=0 +pkgdesc="A multicast/unicast DNS-SD framework" +url="http://www.avahi.org/" +arch="x86 x86_64" +license="LGPL" +depends="" +makedepends="py-gtk-dev py-dbus-dev intltool gobject-introspection expat-dev + libdaemon-dev glib-dev dbus-dev libcap-dev gdbm-dev gtk+-dev py-gdbm" +install="$pkgname.pre-install" +pkgusers="avahi" +pkggroups="avahi" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-ui-tools:uitools + $pkgname-glib $pkgname-ui $pkgname-libs $pkgname-compat-howl:howl + $pkgname-comat-libdns_sd:lidns_sd" +source="http://www.avahi.org/download/avahi-$pkgver.tar.gz + gnome-nettool.png" + +_builddir="$srcdir"/$pkgname-$pkgver +build () +{ + cd "$srcdir/$pkgname-$pkgver" + # we dont build autoipd since dhcpcd does same job + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-autoipd \ + --disable-qt3 \ + --disable-qt4 \ + --disable-gtk3 \ + --disable-mono \ + --disable-monodoc \ + --disable-doxygen-doc \ + --disable-xmltoman \ + --enable-compat-libdns_sd \ + --enable-compat-howl \ + --with-distro="gentoo" \ + --with-systemdsystemunitdir=/lib/systemd/system + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -d -o avahi -g avahi "$pkgdir"/var/run/avahi-daemon + ln -s avahi-compat-howl.pc "$pkgdir"/usr/lib/pkgconfig/howl.pc + ln -s avahi-compat-libdns_sd.pc \ + "$pkgdir"/usr/lib/pkgconfig/libdns_sd.pc + ln -s avahi-compat-libdns_sd/dns_sd.h "$pkgdir"/usr/include/ +} + +tools() { + pkgdesc="Command line tools for mDNS browsing and publishing" + mkdir -p "$subpkgdir"/usr/bin + cd "$pkgdir"/usr/bin + mv avahi-browse* avahi-publish* avahi-resolve* avahi-set* \ + "$subpkgdir"/usr/bin/ +} + +uitools() { + pkgdesc="UI tools for mDNS browsing" + depends="py-gtk py-dbus" + mkdir -p "$subpkgdir"/usr/bin + cd "$pkgdir"/usr/bin + mv avahi-bookmarks avahi-discover avahi-discover-standalone b* \ + "$subpkgdir"/usr/bin/ + install -D -m 644 "$srcdir"/gnome-nettool.png \ + "$subpkgdir"/usr/share/pixmaps/gnome-nettool.png +} + +glib() { + pkgdesc="Glib libraries and GObject wrapper for avahi" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libavahi-glib.so.* \ + "$pkgdir"/usr/lib/libavahi-gobject.so.* \ + "$subpkgdir"/usr/lib/ +} + +ui() { + pkgdesc="Gtk user interface library for Avahi" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libavahi-ui.so.* \ + "$subpkgdir"/usr/lib/ +} + +libs() { + pkgdesc="Libraries for avahi run-time use" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libavahi-common.so.* \ + "$pkgdir"/usr/lib/libavahi-client.so.* \ + "$subpkgdir"/usr/lib/ +} + + +howl() { + pkgdesc="Libraries for howl compatibility" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libhowl.so.* \ + "$subpkgdir"/usr/lib/ +} + +lidns_sd() { + pkgdesc="Libraries for Apple Bonjour mDNSResponder compatibility" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libdns_sd.so.* \ + "$subpkgdir"/usr/lib/ +} + +md5sums="d0143a5aa3265019072e53ab497818d0 avahi-0.6.28.tar.gz +42c2905307c7a5dc6ac4b75f4c3d65a3 gnome-nettool.png" diff --git a/testing/avahi/avahi.pre-install b/testing/avahi/avahi.pre-install new file mode 100644 index 000000000..e982c7d41 --- /dev/null +++ b/testing/avahi/avahi.pre-install @@ -0,0 +1,13 @@ +#!/bin/sh + +addgroup -S -g 28 netdev 2>/dev/null +addgroup -S -g 86 avahi 2>/dev/null +adduser -u 86 \ + -h /var/run/avahi-daemon \ + -s /bin/false \ + -S -D -H \ + -g "Avahi System User" \ + -G avahi \ + avahi 2>/dev/null + +exit 0 diff --git a/testing/avahi/gnome-nettool.png b/testing/avahi/gnome-nettool.png Binary files differnew file mode 100644 index 000000000..227d0678a --- /dev/null +++ b/testing/avahi/gnome-nettool.png |