[arch-commits] Commit in dnsmasq/repos (8 files)

Andreas Radke andyrtr at archlinux.org
Mon Apr 13 16:59:42 UTC 2015


    Date: Monday, April 13, 2015 @ 18:59:42
  Author: andyrtr
Revision: 236376

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

Added:
  dnsmasq/repos/staging-i686/
  dnsmasq/repos/staging-i686/PKGBUILD
    (from rev 236375, dnsmasq/trunk/PKGBUILD)
  dnsmasq/repos/staging-i686/dnsmasq.install
    (from rev 236375, dnsmasq/trunk/dnsmasq.install)
  dnsmasq/repos/staging-i686/dnsmasq.service
    (from rev 236375, dnsmasq/trunk/dnsmasq.service)
  dnsmasq/repos/staging-x86_64/
  dnsmasq/repos/staging-x86_64/PKGBUILD
    (from rev 236375, dnsmasq/trunk/PKGBUILD)
  dnsmasq/repos/staging-x86_64/dnsmasq.install
    (from rev 236375, dnsmasq/trunk/dnsmasq.install)
  dnsmasq/repos/staging-x86_64/dnsmasq.service
    (from rev 236375, dnsmasq/trunk/dnsmasq.service)

--------------------------------+
 staging-i686/PKGBUILD          |   44 +++++++++++++++++++++++++++++++++++++++
 staging-i686/dnsmasq.install   |   21 ++++++++++++++++++
 staging-i686/dnsmasq.service   |   14 ++++++++++++
 staging-x86_64/PKGBUILD        |   44 +++++++++++++++++++++++++++++++++++++++
 staging-x86_64/dnsmasq.install |   21 ++++++++++++++++++
 staging-x86_64/dnsmasq.service |   14 ++++++++++++
 6 files changed, 158 insertions(+)

Copied: dnsmasq/repos/staging-i686/PKGBUILD (from rev 236375, dnsmasq/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-04-13 16:59:42 UTC (rev 236376)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=dnsmasq
+pkgver=2.72
+pkgrel=2
+pkgdesc="Lightweight, easy to configure DNS forwarder and DHCP server"
+url="http://www.thekelleys.org.uk/dnsmasq/doc.html"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('glibc' 'libdbus' 'gmp' 'nettle')
+install=$pkgname.install
+backup=('etc/dnsmasq.conf')
+source=("http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.xz"
+        'dnsmasq.service')
+md5sums=('0256e0a71e27c8d8a5c89a0d18f3cfe2'
+         'b87f68013c3e8b4bb37117de968d4603')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  make \
+    CFLAGS="$CPPFLAGS $CFLAGS" \
+    LDFLAGS="$LDFLAGS" \
+    COPTS="-DHAVE_DNSSEC -DHAVE_DBUS"
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  make BINDIR=/usr/bin PREFIX=/usr DESTDIR="$pkgdir" install
+
+  install -Dm644 "dbus/dnsmasq.conf" "$pkgdir"/etc/dbus-1/system.d/dnsmasq.conf
+  install -Dm644 "dnsmasq.conf.example" "$pkgdir"/etc/dnsmasq.conf
+  install -Dm644 "$srcdir/dnsmasq.service" "$pkgdir"/usr/lib/systemd/system/dnsmasq.service
+
+  # DNSSEC setup
+  sed -i 's,%%PREFIX%%,/usr,' "$pkgdir"/etc/dnsmasq.conf
+  install -Dm644 "trust-anchors.conf" "$pkgdir"/usr/share/dnsmasq/trust-anchors.conf
+}
+
+# vim: ts=2 sw=2 et ft=sh

Copied: dnsmasq/repos/staging-i686/dnsmasq.install (from rev 236375, dnsmasq/trunk/dnsmasq.install)
===================================================================
--- staging-i686/dnsmasq.install	                        (rev 0)
+++ staging-i686/dnsmasq.install	2015-04-13 16:59:42 UTC (rev 236376)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+add_dnsmasq_user() {
+  if ! getent passwd dnsmasq >/dev/null; then
+    useradd -r -d / -c 'dnsmasq daemon' -s /usr/bin/nologin dnsmasq
+  fi
+}
+
+post_install() {
+  add_dnsmasq_user
+}
+
+post_upgrade() {
+  add_dnsmasq_user
+}
+
+post_remove() {
+  if getent passwd dnsmasq >/dev/null; then
+    userdel dnsmasq
+  fi
+}

Copied: dnsmasq/repos/staging-i686/dnsmasq.service (from rev 236375, dnsmasq/trunk/dnsmasq.service)
===================================================================
--- staging-i686/dnsmasq.service	                        (rev 0)
+++ staging-i686/dnsmasq.service	2015-04-13 16:59:42 UTC (rev 236376)
@@ -0,0 +1,14 @@
+[Unit]
+Description=A lightweight DHCP and caching DNS server
+After=network.target
+Documentation=man:dnsmasq(8)
+
+[Service]
+Type=dbus
+BusName=uk.org.thekelleys.dnsmasq
+ExecStartPre=/usr/bin/dnsmasq --test
+ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: dnsmasq/repos/staging-x86_64/PKGBUILD (from rev 236375, dnsmasq/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-04-13 16:59:42 UTC (rev 236376)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=dnsmasq
+pkgver=2.72
+pkgrel=2
+pkgdesc="Lightweight, easy to configure DNS forwarder and DHCP server"
+url="http://www.thekelleys.org.uk/dnsmasq/doc.html"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('glibc' 'libdbus' 'gmp' 'nettle')
+install=$pkgname.install
+backup=('etc/dnsmasq.conf')
+source=("http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.xz"
+        'dnsmasq.service')
+md5sums=('0256e0a71e27c8d8a5c89a0d18f3cfe2'
+         'b87f68013c3e8b4bb37117de968d4603')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  make \
+    CFLAGS="$CPPFLAGS $CFLAGS" \
+    LDFLAGS="$LDFLAGS" \
+    COPTS="-DHAVE_DNSSEC -DHAVE_DBUS"
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  make BINDIR=/usr/bin PREFIX=/usr DESTDIR="$pkgdir" install
+
+  install -Dm644 "dbus/dnsmasq.conf" "$pkgdir"/etc/dbus-1/system.d/dnsmasq.conf
+  install -Dm644 "dnsmasq.conf.example" "$pkgdir"/etc/dnsmasq.conf
+  install -Dm644 "$srcdir/dnsmasq.service" "$pkgdir"/usr/lib/systemd/system/dnsmasq.service
+
+  # DNSSEC setup
+  sed -i 's,%%PREFIX%%,/usr,' "$pkgdir"/etc/dnsmasq.conf
+  install -Dm644 "trust-anchors.conf" "$pkgdir"/usr/share/dnsmasq/trust-anchors.conf
+}
+
+# vim: ts=2 sw=2 et ft=sh

Copied: dnsmasq/repos/staging-x86_64/dnsmasq.install (from rev 236375, dnsmasq/trunk/dnsmasq.install)
===================================================================
--- staging-x86_64/dnsmasq.install	                        (rev 0)
+++ staging-x86_64/dnsmasq.install	2015-04-13 16:59:42 UTC (rev 236376)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+add_dnsmasq_user() {
+  if ! getent passwd dnsmasq >/dev/null; then
+    useradd -r -d / -c 'dnsmasq daemon' -s /usr/bin/nologin dnsmasq
+  fi
+}
+
+post_install() {
+  add_dnsmasq_user
+}
+
+post_upgrade() {
+  add_dnsmasq_user
+}
+
+post_remove() {
+  if getent passwd dnsmasq >/dev/null; then
+    userdel dnsmasq
+  fi
+}

Copied: dnsmasq/repos/staging-x86_64/dnsmasq.service (from rev 236375, dnsmasq/trunk/dnsmasq.service)
===================================================================
--- staging-x86_64/dnsmasq.service	                        (rev 0)
+++ staging-x86_64/dnsmasq.service	2015-04-13 16:59:42 UTC (rev 236376)
@@ -0,0 +1,14 @@
+[Unit]
+Description=A lightweight DHCP and caching DNS server
+After=network.target
+Documentation=man:dnsmasq(8)
+
+[Service]
+Type=dbus
+BusName=uk.org.thekelleys.dnsmasq
+ExecStartPre=/usr/bin/dnsmasq --test
+ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list