diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-04 20:12:02 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-04 20:21:27 +0200 |
commit | a07d4ebdf05a357e2d5ebd711efadb24746bc068 (patch) | |
tree | f8624b78d4fe16f3396265390fd162a8d8b764ad /packages/strongswan/build.sh | |
parent | f007e183af7c402d334ceb9b553f48af0cbe3cfc (diff) | |
download | vyos-build-a07d4ebdf05a357e2d5ebd711efadb24746bc068.tar.gz vyos-build-a07d4ebdf05a357e2d5ebd711efadb24746bc068.zip |
strongSwan: T1888: import DMVPN patches from Alpine Linux
Patches imported from commit 7921a30493eb1 of the following repo:
https://gitlab.alpinelinux.org/alpine/aports/-/commits/master/main/strongswan
Diffstat (limited to 'packages/strongswan/build.sh')
-rwxr-xr-x | packages/strongswan/build.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/strongswan/build.sh b/packages/strongswan/build.sh new file mode 100755 index 00000000..f4d6ca83 --- /dev/null +++ b/packages/strongswan/build.sh @@ -0,0 +1,23 @@ +#!/bin/sh +CWD=$(pwd) +set -e + +SRC=strongswan +if [ ! -d ${SRC} ]; then + echo "Source directory does not exists, please 'git clone'" + exit 1 +fi + +PATCH_DIR=${CWD}/patches +if [ -d $PATCH_DIR ]; then + for patch in $(ls ${PATCH_DIR}) + do + echo "I: Apply patch: ${patch} to main repository" + cp ${PATCH_DIR}/${patch} ${SRC}/debian/patches/ + echo ${patch} >> ${SRC}/debian/patches/series + done +fi + +cd ${SRC} +echo "I: Build Debian Package" +dpkg-buildpackage -uc -us -tc -b |