diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-16 21:07:07 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-01-16 21:10:43 +0100 |
commit | 52f75193f3afe799017e17504d5785aa7817d455 (patch) | |
tree | 44884053dfa2ad109303152469e79b0bca42e71d /packages/dropbear/build.sh | |
parent | 4ce1c21078a0f6890c0a7004285d8f393a4156b3 (diff) | |
download | vyos-build-52f75193f3afe799017e17504d5785aa7817d455.tar.gz vyos-build-52f75193f3afe799017e17504d5785aa7817d455.zip |
packages: T3164: build Dropbear from source with PAM support
Dropbear version shipped in Debian does not have PAM support enabled. For the
VyOS console server it would be nice to have the possibility to use RADIUS
authentication.
Diffstat (limited to 'packages/dropbear/build.sh')
-rwxr-xr-x | packages/dropbear/build.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/dropbear/build.sh b/packages/dropbear/build.sh new file mode 100755 index 00000000..0934f4f7 --- /dev/null +++ b/packages/dropbear/build.sh @@ -0,0 +1,23 @@ +#!/bin/sh +CWD=$(pwd) +set -e + +SRC=dropbear +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 |