#!/bin/bash #NEED:linux_src KVER=`uname -r` || exit 1 NAME=ipsec_tools VERSION=0.7.2 CWD=`pwd` TMP="/tmp" PKGTMP="$TMP/pkgtmp" mkdir $PKGTMP &>/dev/null tar -xjf ipsec-tools-$VERSION.tar.bz2 || exit 1 cd ipsec-tools-$VERSION || exit 1 ./configure --prefix=/usr --disable-ipv6 --enable-natt --enable-dpd --disable-security-context|| exit 1 #racoon build niet,maar hebben we ook (nog ) niet nodig #we willen alleen setkey eigenlijk #cd src/libipsec || exit 1 #make -j1 || exit 1 #cd ../setkey || exit 1 make -j1 || exit 1 make -j1 DESTDIR=$PKGTMP install|| exit 1 cd $PKGTMP makepkg -l y -c n $CWD/$NAME.pkg echo $VERSION > $CWD/$NAME.version && arch > $CWD/$NAME.arch