mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
This is VyOS specific build based on current Debian 3.10.0-3 with the following patches: - z1_perhost-variable-new-style.patch (see ddclient/ddclient#505) - z2_dyndns2-ipv4-ipv6.patch (see ddclient/ddclient#502) - z3_duckdns-reply-fix.patch (see ddclient/ddclient#506) - z4_dyndns2-multiline-multihost-fix.patch (see ddclient/ddclient#542)
27 lines
580 B
Bash
Executable File
27 lines
580 B
Bash
Executable File
#!/bin/sh
|
|
CWD=$(pwd)
|
|
set -e
|
|
|
|
SRC=ddclient
|
|
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: bump version"
|
|
dch -v "3.10.0-3+vyos0" "Patchset for miscellaneous fixes"
|
|
|
|
echo "I: Build Debian Package"
|
|
dpkg-buildpackage -uc -us -tc -b
|