summaryrefslogtreecommitdiff
path: root/packages/wide-dhcpv6/build.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-09 12:53:31 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-09 12:53:31 +0200
commit747c86ad8cd2ba761612f89f395bb2454ed6975f (patch)
treeec02b5bb5745e172a38cdd5541a4757a3a47ff37 /packages/wide-dhcpv6/build.sh
parentd127e81f0ca1ad7d358f376c0112a5c9c4d16a88 (diff)
downloadvyos-build-747c86ad8cd2ba761612f89f395bb2454ed6975f.tar.gz
vyos-build-747c86ad8cd2ba761612f89f395bb2454ed6975f.zip
packages: wide-dhcpv6: rename build script
Diffstat (limited to 'packages/wide-dhcpv6/build.sh')
-rwxr-xr-xpackages/wide-dhcpv6/build.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/wide-dhcpv6/build.sh b/packages/wide-dhcpv6/build.sh
new file mode 100755
index 00000000..87cab92b
--- /dev/null
+++ b/packages/wide-dhcpv6/build.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+CWD=$(pwd)
+set -e
+
+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} ${SRC}/debian/patches/
+ echo ${patch} >> ${SRC}/debian/patches/series
+ done
+fi
+
+cd ${SRC}
+echo "I: Build Debian Package"
+dpkg-buildpackage -uc -us -tc -b