Commit 4b4c73f6 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix templates to automatically create the dlurl

parent eb690c25
#!/usr/bin/make -f
VERSION := $(shell cat version)
%:
dh $@
......@@ -10,12 +13,15 @@ override_dh_auto_clean:
cd snf-image-helper ; rm -rf autotools; \
rm -f Makefile.in aclocal.m4 configure config.status config.log tasks/Makefile.in
rm -f debian/version_pinning.pref
rm -f debian/snf-image.templates
override_dh_auto_build:
dh_auto_build -Dsnf-image-host
dh_auto_build -Dsnf-image-helper
sed -e 's|@DEBIAN_VERSION[@]|$(DEB_DEVFLOW_DEBIAN_VERSION)|g' \
debian/version_pinning.pref.in > debian/version_pinning.pref
sed -e 's|@VERSION[@]|$(VERSION)|g' \
debian/snf-image.templates.in > debian/snf-image.templates
override_dh_auto_configure:
cd snf-image-host; ./autogen.sh
......
......@@ -5,5 +5,5 @@ set -e
# Source debconf library
. /usr/share/debconf/confmodule
db_input medium snf-image/dlurl || true
db_input high snf-image/dlurl || true
db_go || true
......@@ -18,8 +18,3 @@ fi
exit 0
Template: snf-image/dlurl
Type: string
Default:
Default: http://cdn.synnefo.org/snf_image_helper_image-@VERSION@.tar.xz
Description: URL to download snf-image-helper from:
This package already contains a build-in URL to download the helper image from.
However, if you'd like to use a custom one, please enter the full URL. If not,
just leave the field blank.
However, if you'd like to use a custom one, please enter the full URL.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment