Skip to content

Instantly share code, notes, and snippets.

@higebu
Last active August 19, 2017 15:04
Show Gist options
  • Save higebu/139c786fab3c88113d54eef16b462655 to your computer and use it in GitHub Desktop.
Save higebu/139c786fab3c88113d54eef16b462655 to your computer and use it in GitHub Desktop.
build vyatta-strongswan
#!/bin/bash
# rm -f ../*.deb
# sudo mk-build-deps -i -r -t 'apt-get --no-install-recommends -yq' debian/control
# dpkg-buildpackage -b -us -uc -tc
DIST=squeeze
BASE_IMAGE=/var/cache/pbuilder/$DIST.tgz
DEBIAN_MIRROR=http://archive.debian.org/debian/
# Import Squeeze Stable Release Key
sudo gpg --no-default-keyring \
--keyring /usr/share/keyrings/debian-archive-keyring.gpg \
--keyserver pgpkeys.mit.edu \
--recv-key 64481591B98321F9
# Create base chroot image
sudo EXTRAPACKAGES="apt-utils automake" pbuilder create --distribution $DIST \
--mirror $DEBIAN_MIRROR \
--debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg" \
--basetgz $BASE_IMAGE
# Build package
pdebuild --use-pdebuild-internal --debbuildopts "-b -us -uc -tc" -- --basetgz $BASE_IMAGE
# Packages are created in /var/cache/pbuilder/result/
@higebu
Copy link
Author

higebu commented Aug 19, 2017

vyos@vyos:~$ sudo dpkg -l | grep strongswan
ii  libstrongswan                      4.5.2-1.1-bpo60+vyos1+helium5   strongSwan utility and crypto library
ii  strongswan                         4.5.2-1.1-bpo60+vyos1+helium5   IPsec VPN solution metapackage
ii  strongswan-ikev1                   4.5.2-1.1-bpo60+vyos1+helium5   strongSwan Internet Key Exchange (v1) daemon
ii  strongswan-ikev2                   4.5.2-1.1-bpo60+vyos1+helium5   strongSwan Internet Key Exchange (v2) daemon
ii  strongswan-starter                 4.5.2-1.1-bpo60+vyos1+helium5   strongSwan daemon starter and configuration file parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment