[arch-commits] Commit in avahi/repos (6 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 6 12:37:21 UTC 2015


    Date: Sunday, December 6, 2015 @ 13:37:20
  Author: foutrelis
Revision: 252797

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  avahi/repos/staging-i686/
  avahi/repos/staging-i686/PKGBUILD
    (from rev 252796, avahi/trunk/PKGBUILD)
  avahi/repos/staging-i686/avahi.install
    (from rev 252796, avahi/trunk/avahi.install)
  avahi/repos/staging-x86_64/
  avahi/repos/staging-x86_64/PKGBUILD
    (from rev 252796, avahi/trunk/PKGBUILD)
  avahi/repos/staging-x86_64/avahi.install
    (from rev 252796, avahi/trunk/avahi.install)

------------------------------+
 staging-i686/PKGBUILD        |   78 +++++++++++++++++++++++++++++++++++++++++
 staging-i686/avahi.install   |   16 ++++++++
 staging-x86_64/PKGBUILD      |   78 +++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/avahi.install |   16 ++++++++
 4 files changed, 188 insertions(+)

Copied: avahi/repos/staging-i686/PKGBUILD (from rev 252796, avahi/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-12-06 12:37:20 UTC (rev 252797)
@@ -0,0 +1,78 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=avahi
+pkgver=0.6.32rc
+pkgrel=3
+_commit=bc4e85846991d0efca89add631c7cd16033f0bef
+pkgdesc='Multicast DNS-SD / Zeroconf Suite'
+#url='http://www.avahi.org/'
+url='http://git.0pointer.net/avahi.git'
+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+https://github.com/heftig/avahi#commit=$_commit")
+sha256sums=('SKIP')
+
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  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 $pkgname
+  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"
+}

Copied: avahi/repos/staging-i686/avahi.install (from rev 252796, avahi/trunk/avahi.install)
===================================================================
--- staging-i686/avahi.install	                        (rev 0)
+++ staging-i686/avahi.install	2015-12-06 12:37:20 UTC (rev 252797)
@@ -0,0 +1,16 @@
+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
+}
+
+post_upgrade() {
+  if (( $(vercmp $2 0.6.32rc-1) < 0 )); then
+    cat <<MSG
+>>> Avahi now needs to be enabled in order to launch.
+    Run \`systemctl enable avahi-daemon\` if you wish
+    to make use of Avahi.
+MSG
+  fi
+}

Copied: avahi/repos/staging-x86_64/PKGBUILD (from rev 252796, avahi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-12-06 12:37:20 UTC (rev 252797)
@@ -0,0 +1,78 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=avahi
+pkgver=0.6.32rc
+pkgrel=3
+_commit=bc4e85846991d0efca89add631c7cd16033f0bef
+pkgdesc='Multicast DNS-SD / Zeroconf Suite'
+#url='http://www.avahi.org/'
+url='http://git.0pointer.net/avahi.git'
+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+https://github.com/heftig/avahi#commit=$_commit")
+sha256sums=('SKIP')
+
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  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 $pkgname
+  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"
+}

Copied: avahi/repos/staging-x86_64/avahi.install (from rev 252796, avahi/trunk/avahi.install)
===================================================================
--- staging-x86_64/avahi.install	                        (rev 0)
+++ staging-x86_64/avahi.install	2015-12-06 12:37:20 UTC (rev 252797)
@@ -0,0 +1,16 @@
+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
+}
+
+post_upgrade() {
+  if (( $(vercmp $2 0.6.32rc-1) < 0 )); then
+    cat <<MSG
+>>> Avahi now needs to be enabled in order to launch.
+    Run \`systemctl enable avahi-daemon\` if you wish
+    to make use of Avahi.
+MSG
+  fi
+}



More information about the arch-commits mailing list