#Maintainer: Shador pkgname=corkscrew pkgver=2.0 pkgrel=1 zenver=60 arch=i486 source=('http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz') sourcetemplate="http://gaia.homelinux.org/packages/$pkgname/$pkgver-$zenver.$pkgrel/" docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url='http://www.agroman.net/corkscrew/' #extradepends=() #lessdepends=() #options=('norequiredbuilder') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - tool for tunneling SSH through HTTP proxies" "Corkscrew has been tested with the following HTTP proxies :" " * Gauntlet" " * CacheFlow" " * JunkBuster" " * Squid" " * Apache's mod_proxy" "Corkscrew has been tested against several proxies requiring HTTP" "Corkscrew only supports basic autentication, which has been tested." "Digest authentication unlike NTLM authentication may become supported." ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc make -j $threadcount || return 1 make install DESTDIR=$startdir/pkg }