Skip to content

Instantly share code, notes, and snippets.

@prologic
Created March 12, 2015 09:36
Show Gist options
  • Save prologic/22a594d6fbb3d112f2ed to your computer and use it in GitHub Desktop.
Save prologic/22a594d6fbb3d112f2ed to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
name=iptables
version=1.4.14
release=1
source=(
http://www.musl-libc.org/releases/musl-1.0.4.tar.gz
https://github.com/sabotage-linux/kernel-headers/archive/master.zip
https://raw.githubusercontent.com/sabotage-linux/sabotage/master/KEEP/iptables-1.4.14-musl-fixes.patch
ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2
)
build () {
cd $SRC/musl-1.0.4
./configure \
--prefix=$PKGMK_WORK_DIR/tmp \
--disable-shared \
--enabled-static
make
make DESTDIR=$PKGMK_WORK_DIR/tmp install
cd $SRC/kernel-headers-master
make DESTDIR=$PKGMK_WORK_DIR/tmp install
cd $SRC/$name-$version
patch -p1 < $SRC/iptables-1.4.14-musl-fixes.patch
export PATH="$PKGMK_WORK_DIR/tmp:$PATH"
export CC="musl-gcc"
./configure \
--prefix=/usr \
--mandir=/usr/man \
--libexecdir=/usr/lib \
--enable-libipq \
--disable-shared \
--enable-static
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/{include,man}
rm -rf $PKG/usr/lib/pkgconfig
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment