packages: wide-dhcpv6: rename build script

This commit is contained in:
Christian Poessinger 2021-04-09 12:53:31 +02:00
parent d127e81f0c
commit 747c86ad8c
2 changed files with 6 additions and 8 deletions

View File

@ -23,7 +23,7 @@ def pkgList = [
['name': 'wide-dhcpv6',
'scmCommit': 'debian/20080615-23',
'scmUrl': 'https://salsa.debian.org/debian/wide-dhcpv6',
'buildCmd': '''cd ..; ./build-wide.sh'''],
'buildCmd': '''cd ..; ./build.sh'''],
]
// Start package build using library function from https://github.com/vyos/vyos-build

View File

@ -2,24 +2,22 @@
CWD=$(pwd)
set -e
WIDE_SRC=wide-dhcpv6
if [ ! -d ${WIDE_SRC} ]; then
SRC=wide-dhcpv6
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} ${WIDE_SRC}/debian/patches/
echo ${patch} >> ${WIDE_SRC}/debian/patches/series
cp ${PATCH_DIR}/${patch} ${SRC}/debian/patches/
echo ${patch} >> ${SRC}/debian/patches/series
done
fi
cd ${WIDE_SRC}
cd ${SRC}
echo "I: Build Debian Package"
dpkg-buildpackage -uc -us -tc -b