summaryrefslogtreecommitdiff
path: root/pcr/xtables-addons
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-22 05:54:33 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-22 05:54:33 -0300
commit4774a572775b8c44d86bd8696d17d2205a473ac5 (patch)
tree4b17743b5e17e171eda55359ed5737da589b6ed9 /pcr/xtables-addons
parent3cc4685abd608cb86ac3beca4501a77e00c6d5be (diff)
parent1a4554480341083f8a1240431c12ebe267843ecd (diff)
downloadabslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.tar.gz
abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.tar.bz2
abslibre-4774a572775b8c44d86bd8696d17d2205a473ac5.zip
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/xtables-addons')
-rw-r--r--pcr/xtables-addons/PKGBUILD14
-rw-r--r--pcr/xtables-addons/xtables-addons.install6
2 files changed, 16 insertions, 4 deletions
diff --git a/pcr/xtables-addons/PKGBUILD b/pcr/xtables-addons/PKGBUILD
index 2a26481ba..1db9c2566 100644
--- a/pcr/xtables-addons/PKGBUILD
+++ b/pcr/xtables-addons/PKGBUILD
@@ -1,9 +1,9 @@
+# Contributor (Arch): Thiago Coutinho <root at thiagoc . net>
# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-# Contributor: Vladimir Kutyavin <vlkut@bk.ru>
pkgname=xtables-addons
-pkgver=2.5
-pkgrel=1
-pkgdesc="Successor to patch-o-matic(-ng). Additional extensions for iptables, ip6tables, etc. CHAOS, TARPIT, TEE, DELUDE and other targets; condition, geoip, ipp2p and other matches. Includes ipset package."
+pkgver=2.6
+pkgrel=3
+pkgdesc="Successor to patch-o-matic(-ng). Additional extensions for iptables, ip6tables, etc. CHAOS, TARPIT, TEE, DELUDE and other targets; condition, geoip, ipp2p and other matches. Includes ipset package."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://xtables-addons.sourceforge.net/"
@@ -12,7 +12,9 @@ makedepends=('linux-api-headers' 'linux-headers')
conflicts=(ipset)
replaces=(ipset)
provides=(ipset)
+install='xtables-addons.install'
source=(http://download.sourceforge.net/project/xtables-addons/Xtables-addons/$pkgver/$pkgname-$pkgver.tar.xz)
+md5sums=('087835ba7e564481b6fd398692268340')
build() {
cd $srcdir/$pkgname-$pkgver
@@ -28,5 +30,9 @@ build() {
package () {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install || return 1
+ mv $pkgdir/lib/* $pkgdir/usr/lib/
+ mv $pkgdir/usr/lib/modules/$(uname -r)/extra $pkgdir/usr/lib/modules/$(uname -r)/$(readlink /usr/lib/modules/$(uname -r)/extramodules)
+ rmdir $pkgdir/lib
+ mv $pkgdir/usr/sbin $pkgdir/usr/bin
chmod a-x $pkgdir/usr/lib/iptables/*.so
}
diff --git a/pcr/xtables-addons/xtables-addons.install b/pcr/xtables-addons/xtables-addons.install
new file mode 100644
index 000000000..7194d8e71
--- /dev/null
+++ b/pcr/xtables-addons/xtables-addons.install
@@ -0,0 +1,6 @@
+post_install() {
+ echo "Please run \`depmod -a\` or reboot before load modules"
+}
+post_upgrade() {
+ echo "Please run \`depmod -a\` or reboot before load modules"
+}