[arch-commits] Commit in arptables/repos (8 files)
Sébastien Luttringer
seblu at archlinux.org
Wed Jul 23 22:34:43 UTC 2014
Date: Thursday, July 24, 2014 @ 00:34:43
Author: seblu
Revision: 217759
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
arptables/repos/extra-i686/
arptables/repos/extra-i686/PKGBUILD
(from rev 217758, arptables/trunk/PKGBUILD)
arptables/repos/extra-i686/arptables.service
(from rev 217758, arptables/trunk/arptables.service)
arptables/repos/extra-i686/arptables.systemd
(from rev 217758, arptables/trunk/arptables.systemd)
arptables/repos/extra-x86_64/
arptables/repos/extra-x86_64/PKGBUILD
(from rev 217758, arptables/trunk/PKGBUILD)
arptables/repos/extra-x86_64/arptables.service
(from rev 217758, arptables/trunk/arptables.service)
arptables/repos/extra-x86_64/arptables.systemd
(from rev 217758, arptables/trunk/arptables.systemd)
--------------------------------+
extra-i686/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++
extra-i686/arptables.service | 11 ++++++++
extra-i686/arptables.systemd | 21 ++++++++++++++++
extra-x86_64/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++
extra-x86_64/arptables.service | 11 ++++++++
extra-x86_64/arptables.systemd | 21 ++++++++++++++++
6 files changed, 162 insertions(+)
Copied: arptables/repos/extra-i686/PKGBUILD (from rev 217758, arptables/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2014-07-23 22:34:43 UTC (rev 217759)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Michal Soltys <soltys at 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:
Copied: arptables/repos/extra-i686/arptables.service (from rev 217758, arptables/trunk/arptables.service)
===================================================================
--- extra-i686/arptables.service (rev 0)
+++ extra-i686/arptables.service 2014-07-23 22:34:43 UTC (rev 217759)
@@ -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
Copied: arptables/repos/extra-i686/arptables.systemd (from rev 217758, arptables/trunk/arptables.systemd)
===================================================================
--- extra-i686/arptables.systemd (rev 0)
+++ extra-i686/arptables.systemd 2014-07-23 22:34:43 UTC (rev 217759)
@@ -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:
Copied: arptables/repos/extra-x86_64/PKGBUILD (from rev 217758, arptables/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2014-07-23 22:34:43 UTC (rev 217759)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Michal Soltys <soltys at 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:
Copied: arptables/repos/extra-x86_64/arptables.service (from rev 217758, arptables/trunk/arptables.service)
===================================================================
--- extra-x86_64/arptables.service (rev 0)
+++ extra-x86_64/arptables.service 2014-07-23 22:34:43 UTC (rev 217759)
@@ -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
Copied: arptables/repos/extra-x86_64/arptables.systemd (from rev 217758, arptables/trunk/arptables.systemd)
===================================================================
--- extra-x86_64/arptables.systemd (rev 0)
+++ extra-x86_64/arptables.systemd 2014-07-23 22:34:43 UTC (rev 217759)
@@ -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:
More information about the arch-commits
mailing list