Friday, 9 January 2015

Debian Package Building (Multi Ways)

Method 1

apt-get install build-essential fakeroot dpkg-dev devscripts gdebi

/etc/apt/sources.list

deb http://http.debian.net/debian wheezy-backports main
deb-src http://http.debian.net/debian wheezy-backports main

/home

apt-get -t wheezy-backports source strongswan
wget http://download.strongswan.org/strongswan-5.2.2.tar.gz

cd /strongswan-5.2.1

apt-get build-dep strongswan

uupdate ~/strongswan-5.2.2.tar.gz

cd /strong-5.2.2

dpkg-buildpackage -rfakeroot -us -uc -b

ls ../

all files available install by :

dpkg -i *.deb

apt-get -f install

and again dpkg -i *.deb

or gdebi *.deb

Method 2

apt-get install checkinstall

/home

wget http://download.strongswan.org/strongswan-5.2.2.tar.gz

tar xvfz strongswan-5.2.2.tar.gz

cd /strongswan-5.2.2

apt-get build-dep strongswan

./configure --enable-eap-identity --enable-eap-md5 \
--enable-eap-mschapv2 --enable-eap-tls --enable-eap-ttls --enable-eap-peap \
--enable-eap-tnc --enable-eap-dynamic --enable-eap-radius --enable-xauth-eap \
--enable-xauth-pam --enable-dhcp --enable-openssl --enable-addrblock --enable-unity \
--enable-certexpire --enable-radattr --enable-openssl --enable-kernel-libipsec

make

checkinstall

the packge will be installed confirm by :

ipsec version

this command will leave behind a deb file according to your architecture.

No comments:

Post a Comment