Commit d29d878b authored by manu tortosa's avatar manu tortosa

Move to core

parent 5e3455d4
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=chrpath
pkgver=0.13
pkgrel=1
pkgdesc="Allows you to modify the dynamic library load path"
arch=('x86_64')
url="http://directory.fsf.org/project/chrpath/"
license=('GPL2')
depends=('glibc')
source=("http://ftp.tux.org/pub/X-Windows/ftp.hungry.com/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('b73072a8fbba277558c50364b65bb407')
build() {
cd "${srcdir}"/$pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" docdir=/usr/share/doc/chrpath install
}
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=iproute2
pkgver=2.6.35
pkgrel=2
pkgver=3.9.0
pkgrel=1
pkgdesc="IP Routing Utilities"
arch=('i686' 'x86_64')
arch=('x86_64')
license=('GPL2')
url="http://www.linux-foundation.org/en/Net:Iproute2"
depends=('linux-atm' 'perl')
url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
depends=('glibc' 'db' 'iptables')
makedepends=('linux-atm')
optdepends=('linux-atm: ATM support')
groups=('base')
provides=('iproute')
conflicts=('iproute')
replaces=('iproute')
options=('!makeflags')
backup=('etc/iproute2/ematch_map' 'etc/iproute2/rt_dsfield' 'etc/iproute2/rt_protos' \
'etc/iproute2/rt_realms' 'etc/iproute2/rt_scopes' 'etc/iproute2/rt_tables')
source=(http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-${pkgver}.tar.bz2
'iproute2-fhs.patch' 'iproutegetfix.patch')
sha1sums=('862b86ac73ea696867675765d119654553a22aeb'
'2416b11252364d7a6c742eabb4a6924a75637a46'
'cd8c969800a9bd1d4ebba0e1eae69d0892786d60')
source=(http://www.kernel.org/pub/linux/utils/net/$pkgname/$pkgname-$pkgver.tar.xz
iproute2-fhs.patch)
sha1sums=('3f48a6d3019f1766f26cda6c4de5d3858837d92b'
'35b8cf2dc94b73eccad427235c07596146cd6f6c')
build() {
cd $srcdir/iproute2-${pkgver}
prepare() {
cd $srcdir/$pkgname-$pkgver
# set correct fhs structure
patch -Np1 -i ${srcdir}/iproute2-fhs.patch
patch -Np1 -i "$srcdir/iproute2-fhs.patch"
# fix ip route get breakage
patch -Np0 -i ${srcdir}/iproutegetfix.patch
# do not treat warnings as errors
sed -i 's/-Werror//' Makefile
}
./configure
build() {
cd $srcdir/$pkgname-$pkgver
./configure
make
}
package() {
cd $srcdir/iproute2-${pkgver}
cd $srcdir/$pkgname-$pkgver
make DESTDIR="$pkgdir" install
make DESTDIR=$pkgdir install
# allow loopback to be started before /usr is mounted, this may not be supported in the future
mkdir -p "$pkgdir/sbin"
mv "$pkgdir/usr/sbin/ip" "$pkgdir/sbin/ip"
ln -s /sbin/ip "$pkgdir/usr/sbin/ip"
# libnetlink isn't installed, install it FS#19385
install -Dm644 include/libnetlink.h ${pkgdir}/usr/include/libnetlink.h
install -Dm644 lib/libnetlink.a ${pkgdir}/usr/lib/libnetlink.a
install -Dm644 include/libnetlink.h "$pkgdir/usr/include/libnetlink.h"
install -Dm644 lib/libnetlink.a "$pkgdir/usr/lib/libnetlink.a"
}
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=iptables
pkgver=1.4.10
pkgrel=2
pkgdesc="A Linux kernel packet control tool"
arch=('i686' 'x86_64')
pkgver=1.4.18
pkgrel=1
pkgdesc='Linux kernel packet control tool'
arch=('x86_64')
license=('GPL2')
url="http://www.netfilter.org/"
url='http://www.netfilter.org/projects/iptables/index.html'
depends=('glibc' 'bash')
makedepends=('linux-api-headers' 'chrpath')
options=('!libtool')
source=(http://www.iptables.org/projects/iptables/files/${pkgname}-${pkgver}.tar.bz2
iptables
ip6tables
source=("http://www.netfilter.org/projects/iptables/files/${pkgname}-${pkgver}.tar.bz2"
empty.rules
simple_firewall.rules
iptables.conf.d)
backup=(etc/conf.d/iptables)
sha1sums=('8190b8c9714a3eec825317e8ac1deeb3d11c6d29'
'd7540316581bb66c5594885882a14ba394e95098'
'70d70113e3a23f0fe99404c5536507a887a4ca5c'
empty-filter.rules
empty-mangle.rules
empty-nat.rules
empty-raw.rules
empty-security.rules
0503-extension_cppflags.patch
iptables.service
ip6tables.service
iptables-flush)
sha1sums=('34bf627c8755a61caf3635a998d2a5279f664f9e'
'83b3363878e3660ce23b2ad325b53cbd6c796ecf'
'9907f9e815592837abc7fa3264a401567b7606ab'
'1c52444ffbecc09f56bb325db49e924dd32f9213')
'f085a71f467e4d7cb2cf094d9369b0bcc4bab6ec'
'd9f9f06b46b4187648e860afa0552335aafe3ce4'
'c45b738b5ec4cfb11611b984c21a83b91a2d58f3'
'1694d79b3e6e9d9d543f6a6e75fed06066c9a6c6'
'7db53bb882f62f6c677cc8559cff83d8bae2ef73'
'ebbd1424a1564fd45f455a81c61ce348f0a14c2e'
'44626980a52e49f345a0b1e1ca03060f3a35763c'
'9306cba67dbeaa004af084a816f66920a6a10faf'
'38fa2ffe7965e63b494d333f69193029c1258c28'
'e7abda09c61142121b6695928d3b71ccd8fdf73a')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cd "${srcdir}/${pkgname}-${pkgver}"
# http://bugs.archlinux.org/task/17046
sed -i '87 i libxt_RATEEST.so: libxt_RATEEST.oo' extensions/GNUmakefile.in
sed -i '88 i \\t${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} -lm -shared ${LDFLAGS} -o $@ $<;\n' extensions/GNUmakefile.in
# use system one
rm include/linux/types.h
./configure --prefix=/usr --with-kernel=usr/src/linux-$(uname -r) \
patch -Np1 -i ${srcdir}/0503-extension_cppflags.patch
./configure --prefix=/usr \
--libexecdir=/usr/lib/iptables --sysconfdir=/etc \
--with-xtlibdir=/usr/lib/iptables \
--enable-devel --enable-libipq
--enable-devel --enable-shared \
--sbindir=/usr/bin
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# Remove RPATH from iptables libraries
# http://www.spinics.net/lists/netfilter-devel/msg24969.html
chrpath --delete "${pkgdir}"/usr/lib/iptables/*.so
cd "${srcdir}"
install -D -m644 empty.rules "${pkgdir}"/etc/iptables/empty.rules
install -D -m644 simple_firewall.rules "${pkgdir}"/etc/iptables/simple_firewall.rules
make DESTDIR=${pkgdir} install
mkdir -p "${pkgdir}"/var/lib/{iptables,ip6tables}
install -m644 empty-{filter,mangle,nat,raw,security}.rules "${pkgdir}"/var/lib/iptables
install -m644 empty-{filter,mangle,nat,raw,security}.rules "${pkgdir}"/var/lib/ip6tables
install -D -m755 ../iptables ${pkgdir}/etc/rc.d/iptables
install -D -m755 ../ip6tables ${pkgdir}/etc/rc.d/ip6tables
install -D -m644 ../empty.rules ${pkgdir}/etc/iptables/empty.rules
install -D -m644 ../simple_firewall.rules ${pkgdir}/etc/iptables/simple_firewall.rules
install -D -m644 ../iptables.conf.d ${pkgdir}/etc/conf.d/iptables
# install systemd files
install -Dm644 ${srcdir}/iptables.service ${pkgdir}/usr/lib/systemd/system/iptables.service
install -Dm644 ${srcdir}/ip6tables.service ${pkgdir}/usr/lib/systemd/system/ip6tables.service
install -Dm755 ${srcdir}/iptables-flush ${pkgdir}/usr/lib/systemd/scripts/iptables-flush
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment