aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/avahi/APKBUILD113
-rw-r--r--main/avahi/avahi.pre-install13
-rw-r--r--main/avahi/gnome-nettool.pngbin0 -> 4509 bytes
-rw-r--r--main/libdaemon/APKBUILD29
-rw-r--r--main/py-dbus/APKBUILD26
5 files changed, 181 insertions, 0 deletions
diff --git a/main/avahi/APKBUILD b/main/avahi/APKBUILD
new file mode 100644
index 0000000000..efd9f559a3
--- /dev/null
+++ b/main/avahi/APKBUILD
@@ -0,0 +1,113 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=avahi
+pkgver=0.6.29
+pkgrel=0
+pkgdesc="A multicast/unicast DNS-SD framework"
+url="http://www.avahi.org/"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="gtk+-dev gdbm-dev"
+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 py-gdbm"
+ 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="bb9d326770689610d1dbaceab5a787fc avahi-0.6.29.tar.gz
+42c2905307c7a5dc6ac4b75f4c3d65a3 gnome-nettool.png"
diff --git a/main/avahi/avahi.pre-install b/main/avahi/avahi.pre-install
new file mode 100644
index 0000000000..e982c7d41f
--- /dev/null
+++ b/main/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/main/avahi/gnome-nettool.png b/main/avahi/gnome-nettool.png
new file mode 100644
index 0000000000..227d0678a3
--- /dev/null
+++ b/main/avahi/gnome-nettool.png
Binary files differ
diff --git a/main/libdaemon/APKBUILD b/main/libdaemon/APKBUILD
new file mode 100644
index 0000000000..7a39c98df1
--- /dev/null
+++ b/main/libdaemon/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libdaemon
+pkgver=0.14
+pkgrel=0
+pkgdesc="A lightweight C library which eases the writing of UNIX daemons"
+url="http://0pointer.de/lennart/projects/libdaemon/"
+arch="all"
+license="LGPL"
+depends=""
+makedepends=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://0pointer.de/lennart/projects/libdaemon/libdaemon-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+build () {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --localstatedir=/var \
+ --disable-lynx \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="509dc27107c21bcd9fbf2f95f5669563 libdaemon-0.14.tar.gz"
diff --git a/main/py-dbus/APKBUILD b/main/py-dbus/APKBUILD
new file mode 100644
index 0000000000..2d5d9ed5a8
--- /dev/null
+++ b/main/py-dbus/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=py-dbus
+pkgver=0.83.1
+pkgrel=1
+pkgdesc="Python bindings for DBUS"
+url="http://www.freedesktop.org/wiki/Software/DBusBindings"
+arch="all"
+license="GPL LGPL"
+depends="python>=2.6.5"
+makedepends="pkgconfig dbus-glib-dev python-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$pkgver.tar.gz"
+
+_builddir="$srcdir"/dbus-python-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="5fdf3970aa0c00020289de7ba8f3be18 dbus-python-0.83.1.tar.gz"