diff options
author | Grey Christoforo | 2015-10-12 13:41:53 +0100 |
---|---|---|
committer | Grey Christoforo | 2015-10-12 13:41:53 +0100 |
commit | 42804c4057c85cfe4afe022ff9eb246eee6b70bc (patch) | |
tree | 94d5d3d93c009636d8a983b43383635085993b01 | |
download | aur-42804c4057c85cfe4afe022ff9eb246eee6b70bc.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 50 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 81 | ||||
-rw-r--r-- | avahi.install | 6 |
4 files changed, 141 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4e2d65834464 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,50 @@ +pkgbase = avahi-git + pkgdesc = Multicast DNS-SD / Zeroconf Suite git master + pkgver = 0.6.32.rc.r0.g4a087c4 + pkgrel = 1 + url = http://www.avahi.org/ + install = avahi.install + arch = i686 + arch = x86_64 + license = LGPL + makedepends = git + makedepends = qt4 + makedepends = pygtk + makedepends = mono + makedepends = intltool + makedepends = python2-dbus + makedepends = gtk-sharp-2 + makedepends = gobject-introspection + makedepends = gtk3 + makedepends = xmltoman + makedepends = python-dbus + depends = expat + depends = libdaemon + depends = glib2 + depends = libcap + depends = gdbm + depends = dbus + optdepends = gtk3: avahi-discover-standalone, bshell, bssh, bvnc + optdepends = gtk2: gtk2 bindings + optdepends = qt4: qt4 bindings + optdepends = pygtk: avahi-bookmarks, avahi-discover + optdepends = python2-twisted: avahi-bookmarks + optdepends = mono: mono bindings + optdepends = python2-dbus: avahi-discover + optdepends = nss-mdns: NSS support for mDNS + provides = howl + provides = mdnsresponder + conflicts = howl + conflicts = mdnsresponder + options = !emptydirs + backup = etc/avahi/hosts + backup = etc/avahi/avahi-daemon.conf + backup = etc/avahi/services/ssh.service + backup = etc/avahi/services/sftp-ssh.service + backup = usr/lib/avahi/service-types.db + backup = usr/share/avahi/service-types + source = git://github.com/lathiat/avahi + sha256sums = SKIP + +pkgname = avahi-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4552cbc6889a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar* +pkg +src +*.log diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..362fa7628597 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,81 @@ +# $Id$ +# Maintainer: Grey Christoforo <first name [at] last name [dot] net> + +pkgname=avahi-git +pkgver=0.6.32.rc.r0.g4a087c4 +pkgrel=1 +pkgdesc='Multicast DNS-SD / Zeroconf Suite git master' +url='http://www.avahi.org/' +license=(LGPL) +arch=(i686 x86_64) +depends=(expat libdaemon glib2 libcap gdbm dbus) +makedepends=(git qt4 pygtk mono intltool python2-dbus gtk-sharp-2 gobject-introspection gtk3 + xmltoman python-dbus) +optdepends=('gtk3: avahi-discover-standalone, bshell, bssh, bvnc' + 'gtk2: gtk2 bindings' + 'qt4: qt4 bindings' + 'pygtk: avahi-bookmarks, avahi-discover' + 'python2-twisted: avahi-bookmarks' + 'mono: mono bindings' + 'python2-dbus: avahi-discover' + 'nss-mdns: NSS support for mDNS') +conflicts=(howl mdnsresponder) +provides=(howl mdnsresponder) +install=avahi.install +options=(!emptydirs) +backup=(etc/avahi/{hosts,avahi-daemon.conf,services/{ssh,sftp-ssh}.service} + usr/lib/avahi/service-types.db usr/share/avahi/service-types) +source=("git://github.com/lathiat/avahi") +sha256sums=('SKIP') + +pkgver() { + cd avahi + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd avahi + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd avahi + export MOC_QT4=/usr/bin/moc-qt4 PYTHON=/usr/bin/python2 + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --disable-monodoc \ + --disable-qt3 \ + --enable-compat-libdns_sd \ + --enable-compat-howl \ + --with-distro=archlinux \ + --with-avahi-priv-access-group=network \ + --with-autoipd-user=avahi \ + --with-autoipd-group=avahi \ + --with-systemdsystemunitdir=/usr/lib/systemd/system + + cp -a avahi-python/avahi avahi-python/avahi3 + + make + make -C avahi-python/avahi3 PYTHON=/usr/bin/python3 +} + +package() { + cd avahi + make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" -C avahi-python/avahi3 install \ + PYTHON=/usr/bin/python3 pythondir=/usr/lib/python3.5/site-packages + + # howl compat + ln -s avahi-compat-howl "$pkgdir/usr/include/howl" + ln -s avahi-compat-howl.pc "$pkgdir/usr/lib/pkgconfig/howl.pc" + + # mdnsresponder compat + ln -s avahi-compat-libdns_sd/dns_sd.h "$pkgdir/usr/include/dns_sd.h" + + # see FS#42638 + ln -s avahi-daemon.service "$pkgdir/usr/lib/systemd/system/dbus-org.freedesktop.Avahi.service" +} diff --git a/avahi.install b/avahi.install new file mode 100644 index 000000000000..7eccf2a770cd --- /dev/null +++ b/avahi.install @@ -0,0 +1,6 @@ +post_install() { + if ! getent passwd avahi &>/dev/null; then + groupadd -r -g 84 avahi + useradd -r -u 84 -g avahi -d / -s /bin/nologin -c avahi avahi + fi +} |