diff --git a/.include.build.deb.sh b/.include.build.deb.sh index 4d6d4be..8e09cb3 100644 --- a/.include.build.deb.sh +++ b/.include.build.deb.sh @@ -14,9 +14,11 @@ DEBIAN["Description"]="apt proxy detection" function gen_control_file() { local item="" + mkdir -p "${DPKG_BUILD_ROOT}/DEBIAN" + touch "${DPKG_BUILD_ROOT}/DEBIAN/control" for item in ${!DEBIAN[@]} do - echo "${item}: ${DEBIAN[${item}]}" + echo "${item}: ${DEBIAN[${item}]}" >> "${DPKG_BUILD_ROOT}/DEBIAN/control" done } @@ -42,6 +44,7 @@ function gen_rootfs() { + if [ 1 -eq 0 ] then # defaults diff --git a/deploy-deb.sh b/deploy-deb.sh index 1a7c3e1..3d18f21 100755 --- a/deploy-deb.sh +++ b/deploy-deb.sh @@ -54,6 +54,8 @@ echo "- deploying..." then echo "- sourcing build..." source ".include.build.deb.sh" + gen_control_file + gen_rootfs find "${DPKG_BUILD_ROOT}" fi )