mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
28 lines
576 B
Bash
Executable File
28 lines
576 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
|
|
|
|
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: Installing build dependencies"
|
|
sudo apt-get install -y libpam0g-dev
|
|
|
|
echo "I: Build Debian Package"
|
|
dpkg-buildpackage -uc -us -tc -b
|