xtables-dkms
This commit is contained in:
63
xtables-addons-dkms/PKGBUILD
Normal file
63
xtables-addons-dkms/PKGBUILD
Normal file
@@ -0,0 +1,63 @@
|
||||
# Maintainer: Giovanni Harting <539@idlegandalf.com>
|
||||
# Contributor: Iacopo Isimbaldi <isiachi@rhye.it>
|
||||
# Contributor: Lubomir Krajcovic <lubomir.krajcovic(AT)gmail(DOT)com>
|
||||
# Contributor: Vladimir Kutyavin <vlkut(AT)bk(DOT)ru>
|
||||
|
||||
pkgname=xtables-addons-dkms
|
||||
pkgver=2.14
|
||||
pkgrel=1
|
||||
pkgdesc="Successor to patch-o-matic(-ng). Contains extensions that were not accepted in the main Xtables. DKMS flavor for kernels >= 3.7."
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL2')
|
||||
url="http://xtables-addons.sourceforge.net/"
|
||||
depends=('dkms' 'iptables')
|
||||
optdepends=('perl-text-csv-xs: required for building GeoIP database'
|
||||
'unzip: required for building GeoIP database')
|
||||
makedepends=()
|
||||
conflicts=(xtables-addons xtables-addons-git xtables-addons-multikernel)
|
||||
replaces=(xtables-addons xtables-addons-git xtables-addons-multikernel)
|
||||
source=(dkms.conf https://sourceforge.net/projects/${pkgname%-dkms}/files/Xtables-addons/${pkgname%-dkms}-${pkgver}.tar.xz)
|
||||
sha256sums=('c8989ec1ab0c3aaebf557fd19bc0391173a77fb5e7f8b3afc63d3f6593b3b5af'
|
||||
'd215a9a8b8e66aae04b982fa2e1228e8a71e7dfe42320df99e34e5000cbdf152')
|
||||
|
||||
prepare() {
|
||||
# go to builddir
|
||||
cd "${srcdir}/xtables-addons-${pkgver}"
|
||||
|
||||
# disable install-exec-hook (avoids useless calling of depmod -a at 'make install' stage)
|
||||
sed -i 's/^install-exec-hook:$/dont-run:/' Makefile.am
|
||||
# disable building of xt_ECHO (it's an example module, and it breaks the build)
|
||||
sed -i 's/^build_ECHO=.*$/build_ECHO=n/' mconfig
|
||||
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/xtables-addons-${pkgver}"
|
||||
|
||||
./autogen.sh
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/bin \
|
||||
--libdir=/usr/lib \
|
||||
--mandir=/usr/share/man \
|
||||
--docdir=/usr/share/doc \
|
||||
--libexecdir=/usr/lib/iptables \
|
||||
--with-xtlibdir=/usr/lib/iptables \
|
||||
--without-kbuild
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cp "${srcdir}/dkms.conf" "${srcdir}/xtables-addons-${pkgver}"
|
||||
sed -i -e "s/@VERSION@/${pkgver}/" "${srcdir}/xtables-addons-${pkgver}/dkms.conf"
|
||||
|
||||
install -dm 755 "${pkgdir}"/usr/src
|
||||
cp -dr --no-preserve='ownership' "${srcdir}/xtables-addons-${pkgver}" "${pkgdir}/usr/src/xtables-addons-${pkgver}"
|
||||
|
||||
cd "${srcdir}/xtables-addons-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
102
xtables-addons-dkms/dkms.conf
Normal file
102
xtables-addons-dkms/dkms.conf
Normal file
@@ -0,0 +1,102 @@
|
||||
PACKAGE_VERSION="@VERSION@"
|
||||
|
||||
# Items below here should not have to change with each driver version
|
||||
|
||||
PACKAGE_NAME="xtables-addons"
|
||||
BDIR="$dkms_tree/${PACKAGE_NAME}/${PACKAGE_VERSION}/build"
|
||||
MAKEARGS=" -C $kernel_source_dir M=${BDIR}/extensions XA_ABSTOPSRCDIR=${BDIR} XA_TOPSRCDIR=${BDIR} V=1"
|
||||
CLEAN="make ${MAKEARGS} clean"
|
||||
MAKE="make ${MAKEARGS} modules ; find ${BDIR} -name '*.ko' -exec mv -v {} ${BDIR} \;"
|
||||
|
||||
AUTOINSTALL="yes"
|
||||
|
||||
# Automatically generated rules below
|
||||
####
|
||||
|
||||
BUILT_MODULE_LOCATION[0]=""
|
||||
BUILT_MODULE_NAME[0]="xt_ACCOUNT"
|
||||
DEST_MODULE_LOCATION[0]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[1]=""
|
||||
BUILT_MODULE_NAME[1]="compat_xtables"
|
||||
DEST_MODULE_LOCATION[1]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[2]=""
|
||||
BUILT_MODULE_NAME[2]="xt_pknock"
|
||||
DEST_MODULE_LOCATION[2]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[3]=""
|
||||
BUILT_MODULE_NAME[3]="xt_CHAOS"
|
||||
DEST_MODULE_LOCATION[3]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[4]=""
|
||||
BUILT_MODULE_NAME[4]="xt_DELUDE"
|
||||
DEST_MODULE_LOCATION[4]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[5]=""
|
||||
BUILT_MODULE_NAME[5]="xt_DHCPMAC"
|
||||
DEST_MODULE_LOCATION[5]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[6]=""
|
||||
BUILT_MODULE_NAME[6]="xt_DNETMAP"
|
||||
DEST_MODULE_LOCATION[6]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[7]=""
|
||||
BUILT_MODULE_NAME[7]="xt_IPMARK"
|
||||
DEST_MODULE_LOCATION[7]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[8]=""
|
||||
BUILT_MODULE_NAME[8]="xt_LOGMARK"
|
||||
DEST_MODULE_LOCATION[8]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[9]=""
|
||||
BUILT_MODULE_NAME[9]="xt_SYSRQ"
|
||||
DEST_MODULE_LOCATION[9]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[10]=""
|
||||
BUILT_MODULE_NAME[10]="xt_TARPIT"
|
||||
DEST_MODULE_LOCATION[10]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[11]=""
|
||||
BUILT_MODULE_NAME[11]="xt_condition"
|
||||
DEST_MODULE_LOCATION[11]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[12]=""
|
||||
BUILT_MODULE_NAME[12]="xt_fuzzy"
|
||||
DEST_MODULE_LOCATION[12]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[13]=""
|
||||
BUILT_MODULE_NAME[13]="xt_geoip"
|
||||
DEST_MODULE_LOCATION[13]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[14]=""
|
||||
BUILT_MODULE_NAME[14]="xt_iface"
|
||||
DEST_MODULE_LOCATION[14]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[15]=""
|
||||
BUILT_MODULE_NAME[15]="xt_ipp2p"
|
||||
DEST_MODULE_LOCATION[15]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[16]=""
|
||||
BUILT_MODULE_NAME[16]="xt_ipv4options"
|
||||
DEST_MODULE_LOCATION[16]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[17]=""
|
||||
BUILT_MODULE_NAME[17]="xt_length2"
|
||||
DEST_MODULE_LOCATION[17]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[18]=""
|
||||
BUILT_MODULE_NAME[18]="xt_lscan"
|
||||
DEST_MODULE_LOCATION[18]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[19]=""
|
||||
BUILT_MODULE_NAME[19]="xt_psd"
|
||||
DEST_MODULE_LOCATION[19]="/updates"
|
||||
|
||||
BUILT_MODULE_LOCATION[20]=""
|
||||
BUILT_MODULE_NAME[20]="xt_quota2"
|
||||
DEST_MODULE_LOCATION[20]="/updates"
|
||||
|
||||
#BUILT_MODULE_LOCATION[21]=""
|
||||
#BUILT_MODULE_NAME[21]="xt_ECHO"
|
||||
#DEST_MODULE_LOCATION[21]="/updates"
|
Reference in New Issue
Block a user