diff options
Diffstat (limited to 'extra')
61 files changed, 1441 insertions, 48 deletions
diff --git a/extra/arptables/PKGBUILD b/extra/arptables/PKGBUILD new file mode 100644 index 000000000..9a2e491cf --- /dev/null +++ b/extra/arptables/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 217759 2014-07-23 22:34:43Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Daniel Micay <danielmicay@gmail.com> +# Contributor: Michal Soltys <soltys@ziu.info> + +pkgname=arptables +pkgver=0.0.4 +pkgrel=2 +pkgdesc='ARP filtering utility' +arch=('i686' 'x86_64') +url='http://ebtables.sourceforge.net/' +depends=('glibc' 'perl' 'bash') +license=('GPL') +backup=("etc/$pkgname.conf") +source=("http://downloads.sourceforge.net/ebtables/$pkgname-v${pkgver//_/-}.tar.gz" + "$pkgname.systemd" + "$pkgname.service") +md5sums=('c2e99c3aa9d78c9dfa30710ca3168182' + 'e54342a833c52b2bc67e7985e8f8fdfd' + 'b26771191e52905d8aea6333c26cb1c3') + +build() { + cd $pkgname-v${pkgver//_/-} + make +} + +package() { + pushd $pkgname-v${pkgver//_/-} + make install \ + DESTDIR="$pkgdir" \ + PREFIX=/usr \ + LIBDIR=/usr/lib/arptables \ + BINDIR=/usr/bin \ + MANDIR=/usr/share/man \ + INITDIR=/etc/rc.d \ + SYSCONFIGDIR=/etc + popd + # systemd + install -Dm 755 $pkgname.systemd \ + "$pkgdir/usr/lib/systemd/scripts/$pkgname" + install -Dm 644 $pkgname.service \ + "$pkgdir/usr/lib/systemd/system/$pkgname.service" + # default config file + install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf" + # remove upstream rc + rm -rf "$pkgdir/etc/rc.d" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/arptables/arptables.service b/extra/arptables/arptables.service new file mode 100644 index 000000000..4fc11f17d --- /dev/null +++ b/extra/arptables/arptables.service @@ -0,0 +1,11 @@ +[Unit] +Description=ARP Tables + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/lib/systemd/scripts/arptables start +ExecStop=/usr/lib/systemd/scripts/arptables stop + +[Install] +WantedBy=multi-user.target diff --git a/extra/arptables/arptables.systemd b/extra/arptables/arptables.systemd new file mode 100644 index 000000000..6a4019257 --- /dev/null +++ b/extra/arptables/arptables.systemd @@ -0,0 +1,21 @@ +#!/bin/bash + +CONFIG_FILE='/etc/arptables.conf' + +case $1 in + start) + arptables-restore < "$CONFIG_FILE" + ;; + stop) + arptables-restore < /dev/null + ;; + save) + arptables-save > "$CONFIG_FILE" + ;; + *) + echo "usage: ${0##*/} {start|stop|save}" >&2 + exit 1 + ;; +esac + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/extra/bind/01-fix-forgotten-log.patch b/extra/bind/01-fix-forgotten-log.patch new file mode 100644 index 000000000..a9af283d5 --- /dev/null +++ b/extra/bind/01-fix-forgotten-log.patch @@ -0,0 +1,41 @@ +# https://lists.isc.org/pipermail/bind-users/2014-May/093124.html +From 73a2c0ec42c0915bde0275c81861f57645daf683 Mon Sep 17 00:00:00 2001 +From: Tony Finch <dot@dotat.at> +Date: Thu, 28 Nov 2013 17:23:57 +0000 +Subject: [PATCH] Disable XXXMPA verbose packet logging in EDNS fallback code. + +--- + lib/dns/resolver.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c +index 11c805f..e50071e 100644 +--- a/lib/dns/resolver.c ++++ b/lib/dns/resolver.c +@@ -7339,9 +7339,11 @@ resquery_response(isc_task_t *task, isc_event_t *event) { + sizeof(addrbuf)); + snprintf(buf, sizeof(buf), "received packet from %s " + "(bad edns):\n", addrbuf); ++/* + dns_message_logpacket(message, buf, + DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_RESOLVER, + ISC_LOG_NOTICE, fctx->res->mctx); ++*/ + dns_adb_changeflags(fctx->adb, query->addrinfo, + DNS_FETCHOPT_NOEDNS0, + DNS_FETCHOPT_NOEDNS0); +@@ -7369,9 +7371,11 @@ resquery_response(isc_task_t *task, isc_event_t *event) { + sizeof(addrbuf)); + snprintf(buf, sizeof(buf), "received packet from %s (no opt):\n", + addrbuf); ++/* + dns_message_logpacket(message, buf, + DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_RESOLVER, + ISC_LOG_NOTICE, fctx->res->mctx); ++*/ + dns_adb_changeflags(fctx->adb, query->addrinfo, + DNS_FETCHOPT_NOEDNS0, + DNS_FETCHOPT_NOEDNS0); +-- +1.9.1 + diff --git a/extra/bind/127.0.0.zone b/extra/bind/127.0.0.zone new file mode 100644 index 000000000..509c311f6 --- /dev/null +++ b/extra/bind/127.0.0.zone @@ -0,0 +1,11 @@ +$ORIGIN 0.0.127.in-addr.arpa. + +@ 1D IN SOA localhost. root.localhost. ( + 42 ; serial (yyyymmdd##) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum ttl + + 1D IN NS localhost. +1 1D IN PTR localhost. diff --git a/extra/bind/PKGBUILD b/extra/bind/PKGBUILD new file mode 100644 index 000000000..e2216d941 --- /dev/null +++ b/extra/bind/PKGBUILD @@ -0,0 +1,87 @@ +# $Id: PKGBUILD 113060 2014-06-12 10:51:06Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Gaetan Bisson <bisson@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> +# Contributor: Mario Vazquez <mario_vazq@hotmail.com> + +pkgname=bind +_pkgver=9.10.0-P2 +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc='The ISC BIND nameserver' +url='http://www.isc.org/software/bind/' +license=('custom:ISC') +arch=('i686' 'x86_64') +options=('!makeflags') +depends=('openssl' 'krb5' 'libxml2' 'libcap') +provides=('dns-server') +backup=('etc/logrotate.d/named' + 'etc/named.conf') +install=$pkgname.install +source=("http://ftp.isc.org/isc/bind9/${_pkgver}/bind-${_pkgver}.tar.gz"{,.asc} + '01-fix-forgotten-log.patch' + 'root.hint::http://www.internic.net/zones/named.root' + 'tmpfiles.d' + 'named.conf' + 'named.service' + 'named.logrotate' + 'localhost.zone' + '127.0.0.zone') +sha1sums=('c57b5825e36933119e9fd6f43e3f52262e7ff4ed' + 'SKIP' + '4d96c9b9ef0aebdad7e79c749536858a344779b5' + '029f89c49550c40ec7a95116b6a33f0e5a041094' + 'c5a2bcd9b0f009ae71f3a03fbdbe012196962a11' + 'c71a7fc02d4bf0d55e8e29d1e014607ac1d58726' + 'cb2e81b4cbf9efafb3e81e3752f0154e779cc7ec' + '3fe1f0b5c1a51dc1db9ebe5e173d18c52c97169b' + '76a0d4cd1b913db177a5a375bebc47e5956866ec' + '53be0f1437ebe595240d8dbdd819939582b97fb9') + +prepare() { + # remove dig to avoid conflict with dnsutils + sed -i 's/dig//' $pkgname-$_pkgver/bin/Makefile.in + # https://lists.isc.org/pipermail/bind-users/2014-May/093124.html + patch -p1 -d bind-$_pkgver < 01-fix-forgotten-log.patch +} + +build() { + cd bind-$_pkgver + # for gcc 4.8 rebuild + export CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --localstatedir=/var \ + --disable-static \ + --with-openssl \ + --with-libxml2 \ + --with-libtool + make +} + +package() { + cd "bind-$_pkgver" + + install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + make DESTDIR="$pkgdir" install + + rmdir "$pkgdir/var/run" + install -d "$pkgdir/usr/share/doc/$pkgname" + install doc/arm/*.html "$pkgdir/usr/share/doc/$pkgname" + + cd "$srcdir" + install -D -m644 tmpfiles.d "$pkgdir/usr/lib/tmpfiles.d/named.conf" + install -D -m644 named.service "$pkgdir/usr/lib/systemd/system/named.service" + install -D -m600 named.logrotate "$pkgdir/etc/logrotate.d/named" + install -D -m640 -o 0 -g 40 named.conf "$pkgdir/etc/named.conf" + + install -d -m770 -o 0 -g 40 "$pkgdir/var/named" + install -m640 -o 0 -g 40 root.hint "$pkgdir/var/named" + install -m640 -o 0 -g 40 127.0.0.zone "$pkgdir/var/named" + install -m640 -o 0 -g 40 localhost.zone "$pkgdir/var/named" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/bind/bind.install b/extra/bind/bind.install new file mode 100644 index 000000000..170042111 --- /dev/null +++ b/extra/bind/bind.install @@ -0,0 +1,23 @@ +post_install() { + getent group named &>/dev/null || groupadd -g 40 named + getent passwd named &>/dev/null || useradd -u 40 -c 'BIND DNS Server' -g named -d /var/named -s /bin/false named + passwd -l named &>/dev/null + + touch var/log/named.log + chown named:named var/log/named.log + + # create an rndc.key if it doesn't already exist + if [[ ! -s etc/rndc.key ]]; then + rndc-confgen -r /dev/urandom -b 256 | head -n 5 >>etc/rndc.key + chown root:named etc/rndc.key + chmod 640 etc/rndc.key + fi +} + +pre_remove() { + getent passwd named &>/dev/null && userdel named >/dev/null + getent group named &>/dev/null && groupdel named >/dev/null + return 0 +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/bind/localhost.zone b/extra/bind/localhost.zone new file mode 100644 index 000000000..e3ff9641c --- /dev/null +++ b/extra/bind/localhost.zone @@ -0,0 +1,10 @@ +$ORIGIN localhost. +@ 1D IN SOA @ root ( + 42 ; serial (yyyymmdd##) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum ttl + + 1D IN NS @ + 1D IN A 127.0.0.1 diff --git a/extra/bind/named.conf b/extra/bind/named.conf new file mode 100644 index 000000000..4aaf19a49 --- /dev/null +++ b/extra/bind/named.conf @@ -0,0 +1,64 @@ +// +// /etc/named.conf +// + +options { + directory "/var/named"; + pid-file "/run/named/named.pid"; + auth-nxdomain yes; + datasize default; +// Uncomment these to enable IPv6 connections support +// IPv4 will still work: +// listen-on-v6 { any; }; +// Add this for no IPv4: +// listen-on { none; }; + + // Default security settings. + allow-recursion { 127.0.0.1; }; + allow-transfer { none; }; + allow-update { none; }; + version none; + hostname none; + server-id none; +}; + +zone "localhost" IN { + type master; + file "localhost.zone"; + allow-transfer { any; }; +}; + +zone "0.0.127.in-addr.arpa" IN { + type master; + file "127.0.0.zone"; + allow-transfer { any; }; +}; + +zone "." IN { + type hint; + file "root.hint"; +}; + +//zone "example.org" IN { +// type slave; +// file "example.zone"; +// masters { +// 192.168.1.100; +// }; +// allow-query { any; }; +// allow-transfer { any; }; +//}; + +logging { + channel xfer-log { + file "/var/log/named.log"; + print-category yes; + print-severity yes; + print-time yes; + severity info; + }; + category xfer-in { xfer-log; }; + category xfer-out { xfer-log; }; + category notify { xfer-log; }; +}; + diff --git a/extra/bind/named.logrotate b/extra/bind/named.logrotate new file mode 100644 index 000000000..5f9a47693 --- /dev/null +++ b/extra/bind/named.logrotate @@ -0,0 +1,6 @@ +/var/log/named.log { + missingok + postrotate + /bin/kill -HUP `cat /run/named/named.pid 2>/dev/null` 2>/dev/null || true + endscript +} diff --git a/extra/bind/named.service b/extra/bind/named.service new file mode 100644 index 000000000..1a7832edc --- /dev/null +++ b/extra/bind/named.service @@ -0,0 +1,11 @@ +[Unit] +Description=Internet domain name server +After=network.target + +[Service] +ExecStart=/usr/bin/named -f -u named +ExecReload=/usr/bin/rndc reload +ExecStop=/usr/bin/rndc stop + +[Install] +WantedBy=multi-user.target diff --git a/extra/bind/tmpfiles.d b/extra/bind/tmpfiles.d new file mode 100644 index 000000000..1cfc82d08 --- /dev/null +++ b/extra/bind/tmpfiles.d @@ -0,0 +1 @@ +d /run/named 0750 named named - diff --git a/extra/bird/PKGBUILD b/extra/bird/PKGBUILD new file mode 100644 index 000000000..71a637ab7 --- /dev/null +++ b/extra/bird/PKGBUILD @@ -0,0 +1,89 @@ +# $Id: PKGBUILD 217785 2014-07-23 22:53:04Z seblu $ +# Maintainer: Sébastien Luttringer + +pkgbase=bird +pkgname=('bird' 'bird6') +pkgver=1.4.4 +pkgrel=1 +arch=('i686' 'x86_64') +url='http://bird.network.cz/' +license=('GPL2') +depends=('readline' 'ncurses') +source=("ftp://bird.network.cz/pub/bird/${pkgname}-${pkgver}.tar.gz" + 'bird.service' + 'bird6.service') +md5sums=('4ec3a9165928a541326ec9de316da974' + '69221e063a3f07dcad519d5eeacaae75' + '5b172bd052b523efd95ee018e891e181') + +build() { + cd $pkgbase-$pkgver + [[ -e _build4 ]] && rm -rf _build4 + [[ -e _build6 ]] && rm -rf _build6 + mkdir _build4 _build6 + + # build ipv4 bird + cd _build4 + ../configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/share/doc/$pkgname + make + + # build ipv6 bird + cd ../_build6 + ../configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/share/doc/$pkgname \ + --enable-ipv6 + make +} + +package_bird () { + pkgdesc='RIP, OSPFv2 and BGP daemon (ipv4 version)' + backup=('etc/bird.conf') + + cd $pkgbase-$pkgver/_build4 + make \ + prefix="$pkgdir/usr" \ + sysconfdir="$pkgdir/etc" \ + sbindir="$pkgdir/usr/bin" \ + localstatedir="$pkgdir/var" \ + docdir="$pkgdir/usr/share/doc/$pkgname" \ + install + #make docdir="$pkgdir/usr/share/doc/$pkgname" install-docs + + # no /var inside pkg + rm -r "$pkgdir/var" + + # systemd + install -D -m 644 "$srcdir/bird.service" "$pkgdir/usr/lib/systemd/system/bird.service" +} + +package_bird6 () { + pkgdesc='RIP, OSPFv3, RADV and BGP daemon (ipv6 version)' + backup=('etc/bird6.conf') + + cd $pkgbase-$pkgver/_build6 + make \ + prefix="$pkgdir/usr" \ + sysconfdir="$pkgdir/etc" \ + sbindir="$pkgdir/usr/bin" \ + localstatedir="$pkgdir/var" \ + docdir="$pkgdir/usr/share/doc/$pkgname" \ + install + #make docdir="$pkgdir/usr/share/doc/$pkgname" install-docs + + # no /var inside pkg + rm -r "$pkgdir/var" + + # systemd + install -D -m 644 "$srcdir/bird6.service" "$pkgdir/usr/lib/systemd/system/bird6.service" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/bird/bird.service b/extra/bird/bird.service new file mode 100644 index 000000000..c2e2572bf --- /dev/null +++ b/extra/bird/bird.service @@ -0,0 +1,12 @@ +[Unit] +Description=BIRD routing daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/bird +ExecReload=/usr/bin/birdc configure +ExecStop=/usr/bin/birdc down + +[Install] +WantedBy=multi-user.target diff --git a/extra/bird/bird6.service b/extra/bird/bird6.service new file mode 100644 index 000000000..b7fed8637 --- /dev/null +++ b/extra/bird/bird6.service @@ -0,0 +1,12 @@ +[Unit] +Description=BIRD IPv6 routing daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/bird6 +ExecReload=/usr/bin/birdc6 configure +ExecStop=/usr/bin/birdc6 down + +[Install] +WantedBy=multi-user.target diff --git a/extra/colord/PKGBUILD b/extra/colord/PKGBUILD index 41a8bed91..89b737669 100644 --- a/extra/colord/PKGBUILD +++ b/extra/colord/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 211866 2014-04-28 15:11:57Z jgc $ +# $Id: PKGBUILD 217804 2014-07-24 03:38:09Z fyan $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Ionut Biru <ibiru@archlinux.org> pkgname=colord -pkgver=1.2.0 +pkgver=1.2.1 pkgrel=1 pkgdesc="System daemon for managing color devices" arch=(i686 x86_64) @@ -15,7 +15,7 @@ optdepends=('sane: scanner support') replaces=('shared-color-profiles') install=colord.install source=($url/releases/$pkgname-$pkgver.tar.xz{,.asc}) -sha1sums=('a96619dcca24aea1527054f0117211cf7ac30dec' +sha1sums=('4547f3a4d65fea36053f303f7313f60eae14b7d9' 'SKIP') build() { diff --git a/extra/conntrack-tools/PKGBUILD b/extra/conntrack-tools/PKGBUILD new file mode 100644 index 000000000..fd276db5a --- /dev/null +++ b/extra/conntrack-tools/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 217779 2014-07-23 22:49:31Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Valere Monseur <valere_monseur@hotmail.com> +# Contributor: Alessandro Sagratini <ale_sagra@hotmail.com> +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> + +pkgname=conntrack-tools +pkgver=1.4.2 +pkgrel=1 +pkgdesc='Userspace tools to interact with the Netfilter connection tracking system' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/conntrack-tools' +license=('GPL2') +depends=('libnetfilter_conntrack' + 'libnetfilter_cttimeout' + 'libnetfilter_cthelper' + 'libnetfilter_queue') +backup=('etc/conntrackd.conf') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"{,.sig} + 'conntrackd.service') +install=$pkgname.install +sha1sums=('50b89305bb689973d42a163c480dc77a5c0f6fe0' + 'SKIP' + 'ab888d59b98b673709d2d89554c668e2bea0cb86') + +prepare() { + sed -i -e 's,/etc/conntrackd/,/etc/,' -e 's,/var/lock/,/run/lock/,' \ + $pkgname-$pkgver/include/conntrackd.h +} + + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin + make +} + +package() { + # install binaries + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + # systemd + cd "$pkgdir" + install -D -m 644 "$srcdir/conntrackd.service" usr/lib/systemd/system/conntrackd.service + # install empty configuration files + install -D -m 644 /dev/null etc/conntrackd.conf +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/conntrack-tools/conntrack-tools.install b/extra/conntrack-tools/conntrack-tools.install new file mode 100644 index 000000000..d21a5f92c --- /dev/null +++ b/extra/conntrack-tools/conntrack-tools.install @@ -0,0 +1,9 @@ +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + [ $(vercmp "$2" '1.0.1-2') -gt 0 ] || cat <<EOF +Config file have been moved from /etc/conntrackd/conntrackd.conf to /etc/conntrackd.conf. +EOF +} + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/extra/conntrack-tools/conntrackd.service b/extra/conntrack-tools/conntrackd.service new file mode 100644 index 000000000..250c558cc --- /dev/null +++ b/extra/conntrack-tools/conntrackd.service @@ -0,0 +1,8 @@ +[Unit] +Description=Conntrack Daemon + +[Service] +ExecStart=/usr/bin/conntrackd + +[Install] +WantedBy=multi-user.target diff --git a/extra/ebtables/PKGBUILD b/extra/ebtables/PKGBUILD new file mode 100644 index 000000000..ce47a9081 --- /dev/null +++ b/extra/ebtables/PKGBUILD @@ -0,0 +1,51 @@ +# $Id: PKGBUILD 217757 2014-07-23 22:33:19Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Michal Soltys <soltys@ziu.info> + +pkgname=ebtables +pkgver=2.0.10_4 +pkgrel=4 +pkgdesc='Ethernet bridge filtering utilities' +arch=('i686' 'x86_64') +url='http://ebtables.sourceforge.net/' +depends=('perl' 'bash') +license=('GPL2') +backup=("etc/$pkgname.conf") +# ebtables segfault with --as-needed +options=('!buildflags') +install=$pkgname.install +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-v${pkgver/_/-}.tar.gz" + "$pkgname.systemd" + "$pkgname.service") +md5sums=('506742a3d44b9925955425a659c1a8d0' + 'b4c329060809e5b290ae49fbd0ad61f2' + 'baf923443c3b16277e50d60d2e68f534') + +build() { + cd $pkgname-v${pkgver/_/-} + make CFLAGS='-Wunused -Wall -Werror -Wno-error=unused-but-set-variable' +} + +package() { + pushd $pkgname-v${pkgver/_/-} + make install \ + DESTDIR="$pkgdir" \ + LIBDIR=/usr/lib \ + MANDIR=/usr/share/man \ + BINDIR=/usr/bin \ + INITDIR=/etc/rc.d \ + SYSCONFIGDIR=/etc + popd + # rm package ebtables rc.d scripts + rm "$pkgdir/etc/ebtables-config" + rm -r "$pkgdir/etc/rc.d" + # systemd + install -Dm 755 $pkgname.systemd \ + "$pkgdir/usr/lib/systemd/scripts/$pkgname" + install -Dm 644 $pkgname.service \ + "$pkgdir/usr/lib/systemd/system/$pkgname.service" + # default config file + install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/ebtables/ebtables.install b/extra/ebtables/ebtables.install new file mode 100644 index 000000000..7dd6921ed --- /dev/null +++ b/extra/ebtables/ebtables.install @@ -0,0 +1,9 @@ +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + [ $(vercmp "$2" '2.0.10_4-1') -gt 0 ] || cat <<EOF +Config file have been moved to /etc/ebtables.conf and only support text format. +EOF +} + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/extra/ebtables/ebtables.service b/extra/ebtables/ebtables.service new file mode 100644 index 000000000..25e6b76cc --- /dev/null +++ b/extra/ebtables/ebtables.service @@ -0,0 +1,11 @@ +[Unit] +Description=Ethernet bridge table + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/lib/systemd/scripts/ebtables start +ExecStop=/usr/lib/systemd/scripts/ebtables stop + +[Install] +WantedBy=multi-user.target diff --git a/extra/ebtables/ebtables.systemd b/extra/ebtables/ebtables.systemd new file mode 100644 index 000000000..7c21ff967 --- /dev/null +++ b/extra/ebtables/ebtables.systemd @@ -0,0 +1,21 @@ +#!/bin/bash + +CONFIG_FILE='/etc/ebtables.conf' + +case $1 in + start) + ebtables-restore < "$CONFIG_FILE" + ;; + stop) + ebtables -F + ;; + save) + ebtables-save > "$CONFIG_FILE" + ;; + *) + echo "usage: ${0##*/} {start|stop|save}" >&2 + exit 1 + ;; +esac + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/extra/glib-perl/PKGBUILD b/extra/glib-perl/PKGBUILD index 01cf9e067..1a3877f00 100644 --- a/extra/glib-perl/PKGBUILD +++ b/extra/glib-perl/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 214193 2014-06-04 13:50:52Z bluewind $ +# $Id: PKGBUILD 217806 2014-07-24 03:50:52Z fyan $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Sarah Hay <sarah@archlinux.org> pkgname=glib-perl -pkgver=1.304 -pkgrel=2 +pkgver=1.305 +pkgrel=1 pkgdesc="Perl wrappers for glib 2.x, including GObject" arch=(i686 x86_64) license=('LGPL') @@ -13,7 +13,7 @@ options=('!emptydirs') depends=('glib2' 'perl') makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig') source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Glib-${pkgver}.tar.gz) -md5sums=('62e454da4eb8eccdb59452c8bfd8565c') +md5sums=('75a5d3a93fa8ec8e804a344a2a65507f') build() { cd Glib-$pkgver diff --git a/extra/gtk2-perl/PKGBUILD b/extra/gtk2-perl/PKGBUILD index 19568ee84..de0297a6c 100644 --- a/extra/gtk2-perl/PKGBUILD +++ b/extra/gtk2-perl/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 214200 2014-06-04 13:51:03Z bluewind $ +# $Id: PKGBUILD 217794 2014-07-24 02:50:59Z fyan $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Sarah Hay <sarah@archlinux.org> pkgname=gtk2-perl -pkgver=1.249 -pkgrel=2 +pkgver=1.2492 +pkgrel=1 pkgdesc="Perl bindings for GTK+ 2.x" arch=(i686 x86_64) license=('LGPL') @@ -14,7 +14,7 @@ depends=('gtk2' 'pango-perl') checkdepends=('ttf-dejavu' 'xorg-server-xvfb') options=('!emptydirs') source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Gtk2-${pkgver}.tar.gz) -md5sums=('605b419fca92c5166f0d0077663c7c98') +md5sums=('36ac652001392f67bf6b1539b67d5edc') prepare() { cd Gtk2-$pkgver @@ -30,9 +30,7 @@ build() { check() { cd Gtk2-$pkgver - LD_PRELOAD="" Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 :99 2>/dev/null & - LD_PRELOAD="" DISPLAY=:99 make test - kill $! + xvfb-run -a -s "-extension GLX -screen 0 1280x1024x24" make test } package() { diff --git a/extra/ibus/PKGBUILD b/extra/ibus/PKGBUILD index beea403f5..363fa68b2 100644 --- a/extra/ibus/PKGBUILD +++ b/extra/ibus/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 211952 2014-05-02 05:52:10Z fyan $ +# $Id: PKGBUILD 217815 2014-07-24 07:24:43Z fyan $ # Maintainer: Felix Yan <felixonmars@gmail.com> pkgbase=ibus pkgname=(ibus libibus) -pkgver=1.5.7 -pkgrel=2 +pkgver=1.5.8 +pkgrel=1 pkgdesc="Next Generation Input Bus for Linux" arch=('i686' 'x86_64') url="http://ibus.googlecode.com" diff --git a/extra/ipset/PKGBUILD b/extra/ipset/PKGBUILD new file mode 100644 index 000000000..8efe0fb53 --- /dev/null +++ b/extra/ipset/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 217765 2014-07-23 22:38:00Z seblu $ +# Maintainer: Sébastien Luttringer + +pkgname=ipset +pkgver=6.21.1 +pkgrel=2 +pkgdesc='Administration tool for IP sets' +arch=('i686' 'x86_64') +url='http://ipset.netfilter.org' +license=('GPL2') +depends=('libmnl') +backup=("etc/$pkgname.conf") +source=("http://ipset.netfilter.org/$pkgname-$pkgver.tar.bz2" + "$pkgname.service") +md5sums=('9c136fd51694eb0ef259cda085145da0' + '60ebe10f071314fc9e8647440a02467c') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sbindir=/usr/bin --with-kmod=no + make +} + +package() { + pushd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + # install doc + install -dm755 "$pkgdir/usr/share/doc/$pkgname" + install -m644 README UPGRADE ChangeLog "$pkgdir/usr/share/doc/$pkgname" + # install pkgconfig file + install -Dm644 lib/libipset.pc "$pkgdir/usr/lib/pkgconfig/libipset.pc" + popd + # systemd + install -Dm 644 $pkgname.service \ + "$pkgdir/usr/lib/systemd/system/$pkgname.service" + # default config file + install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/ipset/ipset.service b/extra/ipset/ipset.service new file mode 100644 index 000000000..4318b056c --- /dev/null +++ b/extra/ipset/ipset.service @@ -0,0 +1,13 @@ +[Unit] +Description=Loading IP Sets +Before=iptables.service ip6tables.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/ipset -f /etc/ipset.conf restore +ExecReload=/usr/bin/ipset -f /etc/ipset.conf restore +ExecStop=/usr/bin/ipset destroy + +[Install] +WantedBy=multi-user.target diff --git a/extra/libmnl/PKGBUILD b/extra/libmnl/PKGBUILD new file mode 100644 index 000000000..06dcb0147 --- /dev/null +++ b/extra/libmnl/PKGBUILD @@ -0,0 +1,26 @@ +# $Id: PKGBUILD 217761 2014-07-23 22:35:47Z seblu $ +# Maintainer: Sébastien Luttringer <seblu@archlinux.org> +# Contributor: Christian Hesse <mail@earthworm.de> + +pkgname=libmnl +pkgver=1.0.3 +pkgrel=2 +pkgdesc='Minimalistic user-space library oriented to Netlink developers.' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/libmnl/' +license=('LGPL2.1') +depends=('glibc') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +sha1sums=('c27e25f67c6422ebf893fc3a844af8085a1c5b63') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnetfilter_acct/PKGBUILD b/extra/libnetfilter_acct/PKGBUILD new file mode 100644 index 000000000..ee5ad38bf --- /dev/null +++ b/extra/libnetfilter_acct/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 217769 2014-07-23 22:41:04Z seblu $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Sébastien Luttringer +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> +# Maintainer: Filip Wojciechowski, filip at loka dot pl + +pkgname=libnetfilter_acct +pkgver=1.0.2 +pkgrel=2 +pkgdesc='Library providing interface to extended accounting infrastructure' +arch=('i686' 'x86_64') +url="http://www.netfilter.org/projects/libnetfilter_acct/index.html" +license=('GPL') +depends=('libnfnetlink' 'libmnl') +makedepends=('pkgconfig') +source=(http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2) +md5sums=('2118d9514c079839ebd9cb3144ad2ad7') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/extra/libnetfilter_conntrack/PKGBUILD b/extra/libnetfilter_conntrack/PKGBUILD new file mode 100644 index 000000000..8906df042 --- /dev/null +++ b/extra/libnetfilter_conntrack/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 217775 2014-07-23 22:45:56Z seblu $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Sébastien Luttringer +# Contributor: Alessandro Sagratini <ale_sagra@hotmail.com> +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> + +pkgname=libnetfilter_conntrack +pkgver=1.0.4 +pkgrel=1 +pkgdesc='Library providing an API to the in-kernel connection tracking state table' +arch=('i686' 'x86_64') +depends=('libnfnetlink' 'libmnl') +url='http://www.netfilter.org/projects/libnetfilter_conntrack/' +license=('GPL') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2"{,.sig}) +md5sums=('18cf80c4b339a3285e78822dbd4f08d7' + 'SKIP') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnetfilter_cthelper/PKGBUILD b/extra/libnetfilter_cthelper/PKGBUILD new file mode 100644 index 000000000..b7d54d8c2 --- /dev/null +++ b/extra/libnetfilter_cthelper/PKGBUILD @@ -0,0 +1,25 @@ +# $Id: PKGBUILD 217777 2014-07-23 22:48:27Z seblu $ +# Maintainer: Sébastien Luttringer <seblu@archlinux.org> + +pkgname=libnetfilter_cthelper +pkgver=1.0.0 +pkgrel=2 +pkgdesc='Library for the connection tracking helper infrastructure' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/libnetfilter_cthelper/' +license=('GPL2') +depends=('libmnl') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +md5sums=('b2efab1a3a198a5add448960ba011acd') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnetfilter_cttimeout/PKGBUILD b/extra/libnetfilter_cttimeout/PKGBUILD new file mode 100644 index 000000000..b153661c8 --- /dev/null +++ b/extra/libnetfilter_cttimeout/PKGBUILD @@ -0,0 +1,25 @@ +# $Id: PKGBUILD 217781 2014-07-23 22:50:33Z seblu $ +# Maintainer: Sébastien Luttringer <seblu@archlinux.org> + +pkgname=libnetfilter_cttimeout +pkgver=1.0.0 +pkgrel=4 +pkgdesc='Library for the connection tracking timeout infrastructure' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/libnetfilter_cttimeout/' +license=('GPL2') +depends=('libmnl') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +md5sums=('7697437fc9ebb6f6b83df56a633db7f9') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnetfilter_log/PKGBUILD b/extra/libnetfilter_log/PKGBUILD new file mode 100644 index 000000000..374229e55 --- /dev/null +++ b/extra/libnetfilter_log/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 217783 2014-07-23 22:51:34Z seblu $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Sébastien Luttringer +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> +# Maintainer: Filip Wojciechowski, filip at loka dot pl + +pkgname=libnetfilter_log +pkgver=1.0.1 +pkgrel=3 +pkgdesc='Library providing API to packets that have been logged by netfilter' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/libnetfilter_log/' +license=('GPL') +depends=('libnfnetlink') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +md5sums=('2a4bb0654ae675a52d2e8d1c06090b94') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnetfilter_queue/PKGBUILD b/extra/libnetfilter_queue/PKGBUILD new file mode 100644 index 000000000..92cda464a --- /dev/null +++ b/extra/libnetfilter_queue/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 217773 2014-07-23 22:44:08Z seblu $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Sébastien Luttringer +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> +# Maintainer: Filip Wojciechowski, filip at loka dot pl + +pkgname=libnetfilter_queue +pkgver=1.0.2 +pkgrel=2 +pkgdesc='Userspace API to packets that have been queued by the kernel packet filter' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/libnetfilter_queue/' +license=('GPL') +depends=('libnfnetlink' 'libmnl') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +md5sums=('df09befac35cb215865b39a36c96a3fa') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnfnetlink/PKGBUILD b/extra/libnfnetlink/PKGBUILD new file mode 100644 index 000000000..fe318d939 --- /dev/null +++ b/extra/libnfnetlink/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 217767 2014-07-23 22:39:24Z seblu $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Sébastien Luttringer +# Contributor: Kevin Edmonds <edmondskevin@hotmail.com> +# Contributor: Filip Wojciechowski, filip at loka dot pl + +pkgname=libnfnetlink +pkgver=1.0.1 +pkgrel=2 +pkgdesc='Low-level library for netfilter related kernel/userspace communication' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/libnfnetlink/' +license=('GPL') +depends=('glibc') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +md5sums=('98927583d2016a9fb1936fed992e2c5e') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libnftnl/PKGBUILD b/extra/libnftnl/PKGBUILD new file mode 100644 index 000000000..6f4aedc5d --- /dev/null +++ b/extra/libnftnl/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 217763 2014-07-23 22:36:56Z seblu $ +# Maintainer: Sébastien Luttringer + +pkgname=libnftnl +pkgver=1.0.2 +pkgrel=1 +pkgdesc='Netfilter library providing interface to the nf_tables subsystem' +arch=('i686' 'x86_64') +url='http://netfilter.org/projects/libnftnl/' +license=('GPL2') +depends=('libmnl') +source=("http://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.bz2"{,.sig}) +sha1sums=('19b6903b3dc2a86cc13bb560ae55f779b92cae69' + 'SKIP') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/libtorrent-rasterbar/PKGBUILD b/extra/libtorrent-rasterbar/PKGBUILD index fe0840997..b64335ebc 100644 --- a/extra/libtorrent-rasterbar/PKGBUILD +++ b/extra/libtorrent-rasterbar/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 209784 2014-04-04 06:21:48Z fyan $ +# $Id: PKGBUILD 217798 2014-07-24 03:20:18Z fyan $ # Maintainer : Ionut Biru <ibiru@archlinux.org> # Contributor: Hugo Doria <hugo@archlinux.org> pkgname=libtorrent-rasterbar -pkgver=0.16.16 +pkgver=0.16.17 pkgrel=1 epoch=1 pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around" @@ -14,7 +14,7 @@ depends=('boost-libs' 'geoip' 'python2') makedepends=('boost') options=('!emptydirs') source=(http://downloads.sourceforge.net/sourceforge/libtorrent/$pkgname-$pkgver.tar.gz) -sha1sums=('de8faed5cbc09baddb2748cb7b75edd07ab0addc') +sha1sums=('e713b5dfc45194bfc50fa21096ab67c374ae3740') build() { cd $pkgname-$pkgver diff --git a/extra/libxext/PKGBUILD b/extra/libxext/PKGBUILD index 34c0f853c..d9059aa0a 100644 --- a/extra/libxext/PKGBUILD +++ b/extra/libxext/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 198277 2013-10-30 13:53:20Z allan $ +# $Id: PKGBUILD 217818 2014-07-24 13:43:51Z andyrtr $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=libxext -pkgver=1.3.2 +pkgver=1.3.3 pkgrel=1 pkgdesc="X11 miscellaneous extensions library" arch=('i686' 'x86_64') @@ -12,16 +12,16 @@ license=('custom') depends=('libx11' 'xextproto') makedepends=('xorg-util-macros') source=("${url}/releases/individual/lib/libXext-${pkgver}.tar.bz2") -sha256sums=('f829075bc646cdc085fa25d98d5885d83b1759ceb355933127c257e8e50432e0') +sha256sums=('b518d4d332231f313371fdefac59e3776f4f0823bcb23cf7c7305bfb57b16e35') build() { - cd "${srcdir}/libXext-${pkgver}" + cd libXext-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --disable-static make } package() { - cd "${srcdir}/libXext-${pkgver}" + cd libXext-${pkgver} make DESTDIR="${pkgdir}" install install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" diff --git a/extra/netcdf/PKGBUILD b/extra/netcdf/PKGBUILD index c8bb48cb5..82a52e90e 100644 --- a/extra/netcdf/PKGBUILD +++ b/extra/netcdf/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 207581 2014-03-12 13:10:24Z bpiotrowski $ +# $Id: PKGBUILD 217812 2014-07-24 07:23:09Z fyan $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: damir <damir@archlinux.org> pkgname=netcdf -pkgver=4.3.1.1 +pkgver=4.3.2 pkgrel=1 pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library" arch=("i686" "x86_64") @@ -13,13 +13,17 @@ optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings') options=('!makeflags') license=('custom') source=(http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-${pkgver}.tar.gz) -sha1sums=('6aed20fa906e4963017ce9d1591aab39d8a556e4') +sha1sums=('6e1bacab02e5220954fe0328d710ebb71c071d19') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --enable-shared --enable-netcdf-4 --enable-dap-netcdf make -# make check +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check } package() { diff --git a/extra/nfacct/PKGBUILD b/extra/nfacct/PKGBUILD new file mode 100644 index 000000000..c3ffa2aff --- /dev/null +++ b/extra/nfacct/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 217771 2014-07-23 22:42:09Z seblu $ +# Maintainer: Sébastien Luttringer +# Contributor: Alessandro Sagratini <ale_sagra@hotmail.com> + +pkgname=nfacct +pkgver=1.0.1 +pkgrel=2 +pkgdesc='Command line tool to create/retrieve/delete accounting objects' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/nfacct/' +license=('GPL2') +depends=('libnetfilter_acct') +source=("http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2") +md5sums=('992e863409d144350dbc8f0554a0f478') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sbindir=/usr/bin + make +} + +check() { + cd $pkgname-$pkgver + make -k check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/nftables/PKGBUILD b/extra/nftables/PKGBUILD new file mode 100644 index 000000000..6523b1e93 --- /dev/null +++ b/extra/nftables/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 217787 2014-07-23 22:59:21Z seblu $ +# Maintainer: Sébastien Luttringer + +pkgname=nftables +epoch=1 +pkgver=0.2 +pkgrel=1 +pkgdesc='Netfilter nftables userspace tools' +arch=('i686' 'x86_64') +url='http://netfilter.org/projects/nftables/' +license=('GPL2') +depends=('libmnl' 'libnftnl' 'gmp' 'readline' 'ncurses') +makedepends=('docbook2x') +source=("http://netfilter.org/projects/nftables/files/nftables-$pkgver.tar.bz2"{,.sig}) +sha1sums=('1d1959e02e970b1de0e9435142a64d09240c0591' + 'SKIP') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc \ + CONFIG_MAN=y DB2MAN=docbook2man + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/pango-perl/PKGBUILD b/extra/pango-perl/PKGBUILD index fbd8edf9c..f52c17573 100644 --- a/extra/pango-perl/PKGBUILD +++ b/extra/pango-perl/PKGBUILD @@ -1,18 +1,19 @@ -# $Id: PKGBUILD 214208 2014-06-04 13:51:15Z bluewind $ +# $Id: PKGBUILD 217808 2014-07-24 04:06:57Z fyan $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=pango-perl -pkgver=1.225 -pkgrel=2 +pkgver=1.226 +pkgrel=1 pkgdesc="Perl bindings for Pango" arch=(i686 x86_64) license=('LGPL') url="http://gtk2-perl.sourceforge.net/" makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends') +checkdepends=('gtk2-perl' 'xorg-server-xvfb') depends=('pango' 'glib-perl' 'cairo-perl') options=('!emptydirs') source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Pango-${pkgver}.tar.gz) -md5sums=('944ed0b4a89823c66362d5e2ecbe1054') +md5sums=('9ff2dee3cc1d37563ea98b91a45e6ba1') build() { cd Pango-$pkgver @@ -22,7 +23,7 @@ build() { check() { cd Pango-$pkgver - make test + xvfb-run -a -s "-extension GLX -screen 0 1280x1024x24" make test } package() { diff --git a/extra/python-geoip/PKGBUILD b/extra/python-geoip/PKGBUILD index 0b269bbb2..5b43f1181 100644 --- a/extra/python-geoip/PKGBUILD +++ b/extra/python-geoip/PKGBUILD @@ -1,28 +1,43 @@ -# $Id: PKGBUILD 205071 2014-02-04 11:01:58Z jgc $ +# $Id: PKGBUILD 217810 2014-07-24 07:09:06Z fyan $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Angel Velasquez <angvp@archlinux.org> -pkgname=('python2-geoip') pkgbase=python-geoip -pkgver=1.2.9 +pkgname=('python-geoip' 'python2-geoip') +pkgver=1.3.1 pkgrel=1 pkgdesc="Python bindings for the GeoIP IP-to-country resolver library" arch=('i686' 'x86_64') url="https://pypi.python.org/pypi/GeoIP/" license=('LGPL') -depends=('python2' 'geoip') +makedepends=('python' 'python2' 'geoip') source=(https://pypi.python.org/packages/source/G/GeoIP/GeoIP-${pkgver}.tar.gz) -md5sums=('367a083a13c442309eeb47fa061bd262') +md5sums=('21fbd501fce9822e0ccc147ab8321f7f') + +prepare() { + cp -a "GeoIP-$pkgver"{,-py2} +} build() { cd "GeoIP-$pkgver" + python setup.py build + + cd "../GeoIP-$pkgver-py2" python2 setup.py build } +package_python-geoip() { + depends=('python' 'geoip') + + cd "GeoIP-$pkgver" + python setup.py install --root="$pkgdir" -O1 +} + package_python2-geoip() { + depends=('python2' 'geoip') conflicts=('python-geoip<1.2.8') - cd "GeoIP-$pkgver" + cd "GeoIP-$pkgver-py2" python2 setup.py install --root="$pkgdir" -O1 } diff --git a/extra/quagga/PKGBUILD b/extra/quagga/PKGBUILD new file mode 100644 index 000000000..296f48be2 --- /dev/null +++ b/extra/quagga/PKGBUILD @@ -0,0 +1,86 @@ +# $Id: PKGBUILD 217792 2014-07-23 23:18:55Z seblu $ +# Maintainer: Sébastien Luttringer + +pkgname=quagga +pkgver=0.99.23 +pkgrel=1 +pkgdesc='BGP/OSPF/ISIS/RIP/RIPNG routing daemon suite' +arch=('i686' 'x86_64') +url='http://www.quagga.net' +license=('GPL2') +depends=('libcap' 'libnl' 'net-snmp' 'readline' 'ncurses' 'perl') +options=('!buildflags') +install=quagga.install +source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz" + 'babeld.service' + 'bgpd.service' + 'isisd.service' + 'ospf6d.service' + 'ospfd.service' + 'ripd.service' + 'ripngd.service' + 'zebra.service') +md5sums=('d17145e62b6ea14f0f13bb63f59e5166' + '20a8e36ad851d4e06467aeb56a84b245' + 'cc90c234aac9098c5132d653037d5269' + '67d0ada0f3000b9a86351798786c5256' + '6e2569ef339838aa41375e913a8e19ce' + '260f5fcf9b53ef201a8fb34e7ea90457' + 'b6e3549d780355914ae8edd43e15630a' + '72dd63c49fdaea41729a4318d0fbac79' + '577f1e7caeea31d910f2dc29c28ada7d') + +prepare() { + cd $pkgname-$pkgver + shopt -s nullglob + for _p in "$srcdir"/*.patch; do + msg2 "Applying ${_p##*/}" + patch -p 1 -i "$_p" + done +} + +build() { + cd $pkgname-$pkgver + # fix broken 0.99.22.4 tarball + autoreconf -fvi + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc/quagga \ + --localstatedir=/run/quagga \ + --enable-exampledir=/usr/share/doc/quagga/examples \ + --enable-vtysh \ + --enable-isisd \ + --enable-isis-topology \ + --enable-netlink \ + --enable-snmp \ + --enable-tcp-zebra \ + --enable-irdp \ + --enable-pcreposix \ + --enable-multipath=64 \ + --enable-user=quagga \ + --enable-group=quagga \ + --enable-configfile-mask=0640 \ + --enable-logfile-mask=0640 + make +} + +package() { + # upstream install + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + + # logrotate stuff + install -D -m 644 redhat/$pkgname.logrotate "$pkgdir/etc/logrotate.d/$pkgname" + sed -ri 's,/var/run/quagga,/run/quagga,g' "$pkgdir/etc/logrotate.d/$pkgname" + + # systemd + cd "$srcdir" + for _d in zebra ripd ripngd bgpd ospfd ospf6d isisd babeld; do + install -D -m 644 $_d.service "$pkgdir/usr/lib/systemd/system/$_d.service" + done + install -D -m 644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" + echo "d /run/$pkgname 0750 $pkgname $pkgname" > "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/quagga/babeld.service b/extra/quagga/babeld.service new file mode 100644 index 000000000..7279f0336 --- /dev/null +++ b/extra/quagga/babeld.service @@ -0,0 +1,16 @@ +[Unit] +Description=Babel routing daemon +Documentation=man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/babeld.conf + +[Service] +Type=forking +PIDFile=/run/quagga/babeld.pid +ExecStart=/usr/bin/babeld -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/bgpd.service b/extra/quagga/bgpd.service new file mode 100644 index 000000000..b0bf1db0f --- /dev/null +++ b/extra/quagga/bgpd.service @@ -0,0 +1,16 @@ +[Unit] +Description=BGP routing daemon +Documentation=man:bgpd(8) man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/bgpd.conf + +[Service] +Type=forking +PIDFile=/run/quagga/bgpd.pid +ExecStart=/usr/bin/bgpd -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/isisd.service b/extra/quagga/isisd.service new file mode 100644 index 000000000..5ad16c1a4 --- /dev/null +++ b/extra/quagga/isisd.service @@ -0,0 +1,16 @@ +[Unit] +Description=IS-IS routing daemon +Documentation=man:isis(8) man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/isisd.conf + +[Service] +Type=forking +PIDFile=/run/quagga/isisd.pid +ExecStart=/usr/bin/isisd -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/ospf6d.service b/extra/quagga/ospf6d.service new file mode 100644 index 000000000..dae3dc322 --- /dev/null +++ b/extra/quagga/ospf6d.service @@ -0,0 +1,16 @@ +[Unit] +Description=OSPF routing daemon for IPv6 +Documentation=man:ospfd(8) man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/ospf6d.conf + +[Service] +Type=forking +PIDFile=/run/quagga/ospf6d.pid +ExecStart=/usr/bin/ospf6d -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/ospfd.service b/extra/quagga/ospfd.service new file mode 100644 index 000000000..e43c474cc --- /dev/null +++ b/extra/quagga/ospfd.service @@ -0,0 +1,16 @@ +[Unit] +Description=OSPF routing daemon +Documentation=man:ospfd(8) man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/ospfd.conf + +[Service] +Type=forking +PIDFile=/run/quagga/ospfd.pid +ExecStart=/usr/bin/ospfd -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/quagga.install b/extra/quagga/quagga.install new file mode 100644 index 000000000..c5d88b976 --- /dev/null +++ b/extra/quagga/quagga.install @@ -0,0 +1,36 @@ +infodir=/usr/share/info +filelist=(quagga.info quagga.info-1 quagga.info-2) + +post_install() { + groupadd -r quagga + useradd -MNr -s /bin/false -d /run/quagga -g quagga quagga && passwd -l quagga &>/dev/null + install -d -m 750 -o quagga -g quagga /{run,etc,var/log}/quagga + post_upgrade +} + +post_upgrade() { + if [[ -x /usr/bin/install-info ]]; then + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done + fi +} + +pre_remove() { + for d in zebra ripd ripngd bgpd ospfd ospf6d isisd; do + /etc/rc.d/$d stop &>/dev/null + done + if [[ -x /usr/bin/install-info ]]; then + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done + fi +} + +post_remove() { + userdel quagga &>/dev/null + groupdel quagga &>/dev/null + rmdir /{etc,var/log}/quagga +} + +# vim: ft=sh ts=2 sw=2 et: diff --git a/extra/quagga/ripd.service b/extra/quagga/ripd.service new file mode 100644 index 000000000..a55498100 --- /dev/null +++ b/extra/quagga/ripd.service @@ -0,0 +1,16 @@ +[Unit] +Description=RIP routing daemon +Documentation=man:ripd(8) man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/ripd.conf + +[Service] +Type=forking +PIDFile=/run/quagga/ripd.pid +ExecStart=/usr/bin/ripd -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/ripngd.service b/extra/quagga/ripngd.service new file mode 100644 index 000000000..4990669d2 --- /dev/null +++ b/extra/quagga/ripngd.service @@ -0,0 +1,16 @@ +[Unit] +Description=RIP routing daemon for IPv6 +Documentation=man:ripngd(8) man:zebra(8) +BindTo=zebra.service +After=network.target zebra.service +ConditionPathExists=/etc/quagga/ripngd.conf + +[Service] +Type=forking +PIDFile=/run/quagga/ripngd.pid +ExecStart=/usr/bin/ripngd -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/quagga/zebra.service b/extra/quagga/zebra.service new file mode 100644 index 000000000..02813c37c --- /dev/null +++ b/extra/quagga/zebra.service @@ -0,0 +1,16 @@ +[Unit] +Description=GNU Zebra routing manager +Documentation=man:zebra(8) +After=network.target +ConditionPathExists=/etc/quagga/zebra.conf + +[Service] +Type=forking +PIDFile=/run/quagga/zebra.pid +ExecStartPre=/sbin/ip route flush proto zebra +ExecStart=/usr/bin/zebra -d +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/extra/telepathy-gabble/PKGBUILD b/extra/telepathy-gabble/PKGBUILD index 96eb4705b..d8c904b1e 100644 --- a/extra/telepathy-gabble/PKGBUILD +++ b/extra/telepathy-gabble/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 198714 2013-11-02 08:58:18Z ioni $ +# $Id: PKGBUILD 217800 2014-07-24 03:21:22Z fyan $ # Maintainer : Ionut Biru <ibiru@archlinux.org> # Contributor: Daniel Balieiro <daniel@balieiro.com> # Contributor: Rodrigo L. M. Flores <mail@rodrigoflores.org> pkgname=telepathy-gabble -pkgver=0.18.1 -pkgrel=2 +pkgver=0.18.3 +pkgrel=1 pkgdesc="A Jabber/XMPP connection manager for Telepathy" arch=('i686' 'x86_64') url="http://telepathy.freedesktop.org" @@ -15,7 +15,7 @@ makedepends=('libxslt' 'python2') options=('!emptydirs') source=(http://telepathy.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz) install=telepathy-gabble.install -md5sums=('a5384758df829b80d47fbc8a672609ad') +md5sums=('40f2fbabc4e6e147258c83ed697f2fcf') build() { cd $pkgname-$pkgver diff --git a/extra/telepathy-mission-control/PKGBUILD b/extra/telepathy-mission-control/PKGBUILD index 150f48d26..0fb317f22 100644 --- a/extra/telepathy-mission-control/PKGBUILD +++ b/extra/telepathy-mission-control/PKGBUILD @@ -1,12 +1,12 @@ -# $Id: PKGBUILD 210535 2014-04-14 20:07:32Z jgc $ +# $Id: PKGBUILD 217802 2014-07-24 03:23:16Z fyan $ # Maintainer: Ionut Biru <ibiru@archlinux.org> # Contributor: Ju Liu <liuju86 at gmail dot com> # Contributor: Bjorn Lindeijer <bjorn lindeijer nl> # Contributor: Andreas Zwinkau <beza1e1@web.de> pkgname=telepathy-mission-control -pkgver=5.16.1 -pkgrel=2 +pkgver=5.16.2 +pkgrel=1 pkgdesc="A Telepathy component providing abstraction of some of the details of connection managers." arch=('i686' 'x86_64') url="http://telepathy.freedesktop.org/wiki/Mission Control" @@ -15,7 +15,7 @@ depends=('telepathy-glib' 'libgnome-keyring' 'dconf' 'networkmanager') makedepends=('libxslt' 'python2' 'gtk-doc') install=telepathy-mission-control.install source=(http://telepathy.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('421115a35b9e427807326877f86e7f43') +md5sums=('8dc751da77a84abef3f9153bc422a17b') build() { cd "$pkgname-$pkgver" diff --git a/extra/ulogd/PKGBUILD b/extra/ulogd/PKGBUILD new file mode 100644 index 000000000..b7c44ae9c --- /dev/null +++ b/extra/ulogd/PKGBUILD @@ -0,0 +1,60 @@ +# $Id: PKGBUILD 217790 2014-07-23 23:16:37Z seblu $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Sébastien Luttringer +# Contributor: Dale Blount <dale@archlinux.org> +# Contributor: Sergej Pupykin <ps@lx-ltd.ru> + +pkgname=ulogd +pkgver=2.0.4 +pkgrel=1 +pkgdesc='Userspace Packet Logging for netfilter' +arch=('i686' 'x86_64') +url='http://www.netfilter.org/projects/ulogd/index.html' +license=('GPL2') +depends=('libmnl' + 'libnetfilter_acct' + 'libnetfilter_conntrack' + 'libnetfilter_log' + 'libnfnetlink') +backup=('etc/ulogd.conf') +makedepends=('libmariadbclient' + 'libpcap' + 'libdbi' + 'postgresql-libs' + 'sqlite') +optdepends=("${makedepends[@]}") +source=("http://www.netfilter.org/projects/ulogd/files/$pkgname-$pkgver.tar.bz2"{,.sig} + "$pkgname.logrotate" + "$pkgname.conf" + "$pkgname.service") +md5sums=('7c71ec460dfea5287eba27472c521ebc' + 'SKIP' + '95f05af0a0c8f5fdea5bd92ccb2fd465' + '2c8cbedb2fb455cba220ca35186ad846' + '092d72209e30c132e0a08112e4062772') + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --with-mysql \ + --with-pgsql \ + --with-dbi + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -dm755 "$pkgdir/usr/share/doc/ulogd" + install -Dm644 ulogd.conf "$pkgdir/usr/share/doc/ulogd/ulogd.conf" + install -m644 doc/*.{table,sql} "$pkgdir/usr/share/doc/ulogd" + cd "$srcdir" + install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service" + install -Dm644 $pkgname.logrotate "$pkgdir/etc/logrotate.d/$pkgname" + install -Dm644 $pkgname.conf "$pkgdir/etc/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/ulogd/ulogd b/extra/ulogd/ulogd new file mode 100644 index 000000000..071546f8c --- /dev/null +++ b/extra/ulogd/ulogd @@ -0,0 +1,54 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +get_pid() { + pidof /usr/sbin/ulogd +} + +case "$1" in + start) + stat_busy "Starting ulogd daemon" + + [ -f /var/run/ulog.pid ] && rm -f /var/run/ulog.pid + PID=`get_pid` + if [ -z "$PID" ]; then + /usr/sbin/ulogd -d + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + echo `get_pid` > /var/run/ulogd.pid + add_daemon ulogd + stat_done + fi + else + stat_fail + exit 1 + fi + ;; + + stop) + stat_busy "Stopping ulog daemon" + PID=`get_pid` + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + exit 1 + else + rm -f /var/run/ulogd.pid &> /dev/null + rm_daemon ulogd + stat_done + fi + ;; + + restart) + $0 stop + sleep 3 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/extra/ulogd/ulogd.conf b/extra/ulogd/ulogd.conf new file mode 100644 index 000000000..643892e88 --- /dev/null +++ b/extra/ulogd/ulogd.conf @@ -0,0 +1,20 @@ +[global] +logfile="/var/log/ulogd.log" +loglevel=5 +rmem=131071 +bufsize=150000 + +plugin="/usr/lib/ulogd/ulogd_inppkt_NFLOG.so" +plugin="/usr/lib/ulogd/ulogd_raw2packet_BASE.so" +plugin="/usr/lib/ulogd/ulogd_filter_IP2STR.so" +plugin="/usr/lib/ulogd/ulogd_filter_PRINTPKT.so" +plugin="/usr/lib/ulogd/ulogd_output_LOGEMU.so" +plugin="/usr/lib/ulogd/ulogd_filter_IFINDEX.so" + +stack=log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU + +[log1] +group=1 + +[emu1] +file=/var/log/ulogd.syslogemu diff --git a/extra/ulogd/ulogd.logrotate b/extra/ulogd/ulogd.logrotate new file mode 100644 index 000000000..299e93d02 --- /dev/null +++ b/extra/ulogd/ulogd.logrotate @@ -0,0 +1,10 @@ +/var/log/ulogd.log /var/log/ulogd.syslogemu { + missingok + notifempty + sharedscripts + create 0640 root root + + postrotate + systemctl kill --signal=SIGHUP ulogd.service || true + endscript +} diff --git a/extra/ulogd/ulogd.service b/extra/ulogd/ulogd.service new file mode 100644 index 000000000..12450c9cc --- /dev/null +++ b/extra/ulogd/ulogd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Netfilter Ulogd daemon +After=network.target + +[Service] +ExecStart=/usr/bin/ulogd + +[Install] +WantedBy=multi-user.target |