Christian Poessinger 1667f80fa8 packages: T3164: Dropbear - apply VyOS patches without quilt
This prevents error:
dpkg-source: error: expected [ +-] at start of line 16 of diff 'dropbear/debian/patches/0001-Enable-PAM-support.patch'
dpkg-source: info: applying 0001-Enable-PAM-support.patch
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
2022-01-17 19:38:32 +01:00

23 lines
429 B
Bash
Executable File

#!/bin/sh
CWD=$(pwd)
set -e
SRC=dropbear
if [ ! -d ${SRC} ]; then
echo "Source directory does not exists, please 'git clone'"
exit 1
fi
cd ${SRC}
PATCH_DIR=${CWD}/patches
if [ -d $PATCH_DIR ]; then
for patch in $(ls ${PATCH_DIR})
do
echo "I: Apply patch: ${patch} to main repository"
patch -p1 < ${PATCH_DIR}/${patch}
done
fi
echo "I: Build Debian Package"
dpkg-buildpackage -uc -us -tc -b