[arch-commits] Commit in powerdns/repos (8 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 6 19:29:57 UTC 2015
Date: Sunday, December 6, 2015 @ 20:29:56
Author: foutrelis
Revision: 149103
archrelease: copy trunk to community-staging-x86_64, community-staging-i686
Added:
powerdns/repos/community-staging-i686/
powerdns/repos/community-staging-i686/PKGBUILD
(from rev 149102, powerdns/trunk/PKGBUILD)
powerdns/repos/community-staging-i686/powerdns.install
(from rev 149102, powerdns/trunk/powerdns.install)
powerdns/repos/community-staging-i686/powerdns.service
(from rev 149102, powerdns/trunk/powerdns.service)
powerdns/repos/community-staging-x86_64/
powerdns/repos/community-staging-x86_64/PKGBUILD
(from rev 149102, powerdns/trunk/PKGBUILD)
powerdns/repos/community-staging-x86_64/powerdns.install
(from rev 149102, powerdns/trunk/powerdns.install)
powerdns/repos/community-staging-x86_64/powerdns.service
(from rev 149102, powerdns/trunk/powerdns.service)
-------------------------------------------+
community-staging-i686/PKGBUILD | 81 ++++++++++++++++++++++++++++
community-staging-i686/powerdns.install | 14 ++++
community-staging-i686/powerdns.service | 12 ++++
community-staging-x86_64/PKGBUILD | 81 ++++++++++++++++++++++++++++
community-staging-x86_64/powerdns.install | 14 ++++
community-staging-x86_64/powerdns.service | 12 ++++
6 files changed, 214 insertions(+)
Copied: powerdns/repos/community-staging-i686/PKGBUILD (from rev 149102, powerdns/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-06 19:29:56 UTC (rev 149103)
@@ -0,0 +1,81 @@
+# $Id: PKGBUILD 101429 2013-11-25 14:11:30Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Kevin Mihelich <kevin at archlinuxarm.org>
+
+pkgname=powerdns
+pkgver=3.4.7
+pkgrel=2
+pkgdesc='Authoritative DNS server'
+arch=('x86_64' 'i686')
+url='http://www.powerdns.com/'
+license=('GPL')
+depends=('boost-libs' 'gcc-libs' 'sqlite' 'lua')
+makedepends=('boost' 'setconf' 'libmariadbclient' 'postgresql-libs' 'lua'
+ 'libldap' 'sqlite')
+optdepends=('libmariadbclient: MariaDB/MySQL backend'
+ 'postgresql-libs: PostgreSQL backend' 'libldap: LDAP backend')
+install="$pkgname.install"
+backup=('etc/powerdns/pdns.conf')
+source=("http://downloads.powerdns.com/releases/pdns-$pkgver.tar.bz2"
+ "$pkgname.service")
+sha256sums=('e17eca86c5e702b54b62b1edebc4741d8e0db748050a7214c778302039f28c4b'
+ 'b2358a5951ac944feee15ac03d42ffe9c2a72fa6f57746f77ef8997d54a82040')
+
+prepare() {
+ touch "pdns-$pkgver/AUTHORS" "pdns-$pkgver/NEWS"
+
+ # Make changes to pdns.conf, while basing it on pdns.conf-dist
+ cp "pdns-$pkgver/pdns/pdns.conf-dist" pdns.conf
+
+ # Default settings
+ for keyvalue in \
+ allow-recursion=127.0.0.1 \
+ cache-ttl=6 \
+ chroot=/var/empty \
+ config-dir=/etc \
+ daemon=yes \
+ distributor-threads=3 \
+ guardian=yes \
+ local-port=53 \
+ loglevel=3 \
+ module-dir=/usr/lib/powerdns \
+ negquery-cache-ttl=60 \
+ setgid=nobody \
+ setuid=nobody \
+ socket-dir=/var/run \
+ webserver=no
+ do
+ # Future versions of setconf may be able to comment out options as well.
+ setconf -a pdns.conf "$keyvalue"
+ done
+}
+
+build() {
+ cd "pdns-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/powerdns \
+ --libexecdir=/usr/lib \
+ --libdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --with-modules='' \
+ --with-dynmodules="ldap pipe gmysql gpgsql gsqlite3 geo bind" \
+ --docdir=/usr/share/doc/powerdns \
+ --sbindir=/usr/bin \
+ --bindir=/usr/bin
+ make
+}
+
+package() {
+ make -C "pdns-$pkgver" DESTDIR="$pkgdir" install
+ install -m644 "pdns.conf" "$pkgdir/etc/powerdns/"
+ install -Dm644 "$pkgname.service" \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ mv "$pkgdir/usr/lib/pdns" "$pkgdir/usr/lib/powerdns"
+ rm -f "$pkgdir/etc/powerdns/pdns.conf-dist"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: powerdns/repos/community-staging-i686/powerdns.install (from rev 149102, powerdns/trunk/powerdns.install)
===================================================================
--- community-staging-i686/powerdns.install (rev 0)
+++ community-staging-i686/powerdns.install 2015-12-06 19:29:56 UTC (rev 149103)
@@ -0,0 +1,14 @@
+post_upgrade() {
+ echo
+ echo 'See http://doc.powerdns.com/md/authoritative/upgrading/ for'
+ echo 'information about changes when upgrading.'
+ echo
+ echo 'If upgrading from an older version, you may also need to:'
+ echo 'setconf /etc/powerdns/pdns.conf module-dir=/usr/lib/powerdns'
+ echo
+ echo 'NOTE: pdns.service has been renamed to powerdns.service.'
+ echo ' See FS#44642 for more information.'
+ echo
+}
+
+# vim:set ts=2 sw=2 et:
Copied: powerdns/repos/community-staging-i686/powerdns.service (from rev 149102, powerdns/trunk/powerdns.service)
===================================================================
--- community-staging-i686/powerdns.service (rev 0)
+++ community-staging-i686/powerdns.service 2015-12-06 19:29:56 UTC (rev 149103)
@@ -0,0 +1,12 @@
+[Unit]
+Description=PowerDNS Authorative Server
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/pdns_server --daemon --guardian=yes
+ExecReload=/usr/bin/pdns_control cycle
+ExecStop=/usr/bin/pdns_control quit
+
+[Install]
+WantedBy=multi-user.target
Copied: powerdns/repos/community-staging-x86_64/PKGBUILD (from rev 149102, powerdns/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-06 19:29:56 UTC (rev 149103)
@@ -0,0 +1,81 @@
+# $Id: PKGBUILD 101429 2013-11-25 14:11:30Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Kevin Mihelich <kevin at archlinuxarm.org>
+
+pkgname=powerdns
+pkgver=3.4.7
+pkgrel=2
+pkgdesc='Authoritative DNS server'
+arch=('x86_64' 'i686')
+url='http://www.powerdns.com/'
+license=('GPL')
+depends=('boost-libs' 'gcc-libs' 'sqlite' 'lua')
+makedepends=('boost' 'setconf' 'libmariadbclient' 'postgresql-libs' 'lua'
+ 'libldap' 'sqlite')
+optdepends=('libmariadbclient: MariaDB/MySQL backend'
+ 'postgresql-libs: PostgreSQL backend' 'libldap: LDAP backend')
+install="$pkgname.install"
+backup=('etc/powerdns/pdns.conf')
+source=("http://downloads.powerdns.com/releases/pdns-$pkgver.tar.bz2"
+ "$pkgname.service")
+sha256sums=('e17eca86c5e702b54b62b1edebc4741d8e0db748050a7214c778302039f28c4b'
+ 'b2358a5951ac944feee15ac03d42ffe9c2a72fa6f57746f77ef8997d54a82040')
+
+prepare() {
+ touch "pdns-$pkgver/AUTHORS" "pdns-$pkgver/NEWS"
+
+ # Make changes to pdns.conf, while basing it on pdns.conf-dist
+ cp "pdns-$pkgver/pdns/pdns.conf-dist" pdns.conf
+
+ # Default settings
+ for keyvalue in \
+ allow-recursion=127.0.0.1 \
+ cache-ttl=6 \
+ chroot=/var/empty \
+ config-dir=/etc \
+ daemon=yes \
+ distributor-threads=3 \
+ guardian=yes \
+ local-port=53 \
+ loglevel=3 \
+ module-dir=/usr/lib/powerdns \
+ negquery-cache-ttl=60 \
+ setgid=nobody \
+ setuid=nobody \
+ socket-dir=/var/run \
+ webserver=no
+ do
+ # Future versions of setconf may be able to comment out options as well.
+ setconf -a pdns.conf "$keyvalue"
+ done
+}
+
+build() {
+ cd "pdns-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/powerdns \
+ --libexecdir=/usr/lib \
+ --libdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --with-modules='' \
+ --with-dynmodules="ldap pipe gmysql gpgsql gsqlite3 geo bind" \
+ --docdir=/usr/share/doc/powerdns \
+ --sbindir=/usr/bin \
+ --bindir=/usr/bin
+ make
+}
+
+package() {
+ make -C "pdns-$pkgver" DESTDIR="$pkgdir" install
+ install -m644 "pdns.conf" "$pkgdir/etc/powerdns/"
+ install -Dm644 "$pkgname.service" \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ mv "$pkgdir/usr/lib/pdns" "$pkgdir/usr/lib/powerdns"
+ rm -f "$pkgdir/etc/powerdns/pdns.conf-dist"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: powerdns/repos/community-staging-x86_64/powerdns.install (from rev 149102, powerdns/trunk/powerdns.install)
===================================================================
--- community-staging-x86_64/powerdns.install (rev 0)
+++ community-staging-x86_64/powerdns.install 2015-12-06 19:29:56 UTC (rev 149103)
@@ -0,0 +1,14 @@
+post_upgrade() {
+ echo
+ echo 'See http://doc.powerdns.com/md/authoritative/upgrading/ for'
+ echo 'information about changes when upgrading.'
+ echo
+ echo 'If upgrading from an older version, you may also need to:'
+ echo 'setconf /etc/powerdns/pdns.conf module-dir=/usr/lib/powerdns'
+ echo
+ echo 'NOTE: pdns.service has been renamed to powerdns.service.'
+ echo ' See FS#44642 for more information.'
+ echo
+}
+
+# vim:set ts=2 sw=2 et:
Copied: powerdns/repos/community-staging-x86_64/powerdns.service (from rev 149102, powerdns/trunk/powerdns.service)
===================================================================
--- community-staging-x86_64/powerdns.service (rev 0)
+++ community-staging-x86_64/powerdns.service 2015-12-06 19:29:56 UTC (rev 149103)
@@ -0,0 +1,12 @@
+[Unit]
+Description=PowerDNS Authorative Server
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/pdns_server --daemon --guardian=yes
+ExecReload=/usr/bin/pdns_control cycle
+ExecStop=/usr/bin/pdns_control quit
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list