summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2011-12-28 23:00:15 -0600
committerRichard Nelson <unixabg@gmail.com>2011-12-28 23:00:15 -0600
commit58ba7df9ad347d3ca895e7e66fd287484b20e7e0 (patch)
tree5c2de08faa686fa21f38a8e57123442287ce1f4a
parentadb3aec7067e2c444a2371f1cb8e36b1b46976cc (diff)
downloadvyos-live-build-58ba7df9ad347d3ca895e7e66fd287484b20e7e0.tar.gz
vyos-live-build-58ba7df9ad347d3ca895e7e66fd287484b20e7e0.zip
l-b.cgi remove mirror operations which should be handled in /etc/live/build.conf
-rwxr-xr-xcgi/live-build-cgi21
-rw-r--r--cgi/live-build-cgi.default4
-rw-r--r--templates/cgi/debian-official/build.html3
-rw-r--r--templates/cgi/debian-official/form.html12
-rw-r--r--templates/cgi/debian-unofficial/build.html3
-rw-r--r--templates/cgi/debian-unofficial/form.html12
6 files changed, 3 insertions, 52 deletions
diff --git a/cgi/live-build-cgi b/cgi/live-build-cgi
index bf3c772d3..655418a79 100755
--- a/cgi/live-build-cgi
+++ b/cgi/live-build-cgi
@@ -39,10 +39,7 @@ cat "${_TEMPLATES}"/header.html
if [ -z "${QUERY_STRING}" ]
then
# Sending html form
- sed -e "s#LB_MIRROR_BOOTSTRAP#${LB_MIRROR_BOOTSTRAP}#" \
- -e "s#LB_MIRROR_BINARY_SECURITY#${LB_MIRROR_BINARY_SECURITY}#" \
- -e "s#LB_MIRROR_BINARY#${LB_MIRROR_BINARY}#" \
- -e "s/VERSION/${VERSION}/" \
+ sed -e "s/VERSION/${VERSION}/" \
-e "s/DATE/`date +%Y%m%d-%H:%M`/" \
"${_TEMPLATES}"/form.html
else
@@ -75,9 +72,6 @@ else
# Advanced bootstrap options
LB_ARCHITECTURES=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])architectures=[0-9a-z]+' | cut -f 2 -d '=' | head -n1)
LB_BOOTSTRAP_FLAVOUR=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])bootstrap_flavour=[a-z]+' | cut -f 2 -d '=' | head -n1)
- LB_MIRROR_BOOTSTRAP=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])mirror_bootstrap=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
- LB_MIRROR_BINARY=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])mirror_binary=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
- LB_MIRROR_BINARY_SECURITY=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])mirror_binary_security=[-0-9a-zA-Z.~:/_]+' | cut -f 2 -d '=' | head -n1)
LB_ARCHIVE_AREAS=$(echo "${QUERY_STRING}" | grep -oE '(^|[?&])archive_areas=[a-z]+' | cut -f 2 -d '=' | head -n1)
# Advanced chroot options
@@ -114,10 +108,7 @@ else
then
echo "<h2><div style='color: red;'>Error: No email address specified.</div></h2>"
- sed -e "s#LB_MIRROR_BOOTSTRAP#${LB_MIRROR_BOOTSTRAP}#" \
- -e "s#LB_MIRROR_BINARY_SECURITY#${LB_MIRROR_BINARY_SECURITY}#" \
- -e "s#LB_MIRROR_BINARY#${LB_MIRROR_BINARY}#" \
- -e "s/VERSION/${VERSION}/" \
+ sed -e "s/VERSION/${VERSION}/" \
-e "s/DATE/`date +%Y%m%d-%H:%M`/" \
"${_TEMPLATES}"/form.html
@@ -139,9 +130,6 @@ else
-e "s/_LB_CGIPACKAGES/${_LB_CGIPACKAGES}/" \
-e "s/LB_ARCHITECTURES/${LB_ARCHITECTURES}/" \
-e "s/LB_BOOTSTRAP_FLAVOUR/${LB_BOOTSTRAP_FLAVOUR}/" \
- -e "s#LB_MIRROR_BOOTSTRAP#${LB_MIRROR_BOOTSTRAP}#" \
- -e "s#LB_MIRROR_BINARY_SECURITY#${LB_MIRROR_BINARY_SECURITY}#" \
- -e "s#LB_MIRROR_BINARY#${LB_MIRROR_BINARY}#" \
-e "s/LB_ARCHIVE_AREAS/${LB_ARCHIVE_AREAS}/" \
-e "s/LB_CHROOT_FILESYSTEM/${LB_CHROOT_FILESYSTEM}/" \
-e "s/LB_LINUX_FLAVOURS/${LB_LINUX_FLAVOURS}/" \
@@ -189,9 +177,6 @@ LB_TASKS="${LB_TASKS}"
# Advanced bootstrap options
LB_ARCHITECTURES="${LB_ARCHITECTURES}"
-LB_MIRROR_BOOTSTRAP="${LB_MIRROR_BOOTSTRAP}"
-LB_MIRROR_BINARY_SECURITY="${LB_MIRROR_BINARY_SECURITY}"
-LB_MIRROR_BINARY="${LB_MIRROR_BINARY}"
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS}"
# Advanced chroot options
@@ -226,7 +211,7 @@ LB_ARCHIVES="${LB_ARCHIVES}"
EOF
echo "$(date +%b\ %d\ %H:%M:%S) ${_HOSTNAME} live-build-cgi: add web build (${_BUILD}) from ${REMOTE_ADDR}." >> /var/log/live
- echo "$(date +%b\ %d\ %H:%M:%S) ${_HOSTNAME} live-build-cgi: options ${_BUILD} |email ${_EMAIL}|binary_images ${LB_BINARY_IMAGES}|distribution ${LB_DISTRIBUTION}|package_lists ${LB_PACKAGE_LISTS}|tasks ${LB_TASKS}|cgipackages ${_LB_CGIPACKAGES}|architectures ${LB_ARCHITECTURES}|mirror_bootstrap_security ${LB_MIRROR_BOOTSTRAP}|mirror_bootstrap ${LB_MIRROR_BOOTSTRAP}|mirror_binary_security ${LB_MIRROR_BINARY_SECURITY}|mirror_binary ${LB_MIRROR_BINARY}|archive_areas ${LB_ARCHIVE_AREAS}|chroot_filesystem ${LB_CHROOT_FILESYSTEM}|linux_flavours ${LB_LINUX_FLAVOURS}|security ${LB_SECURITY}|binary_indices ${LB_BINARY_INDICES}|bootappend_install ${LB_BOOTAPPEND_INSTALL}|bootappend_live ${LB_BOOTAPPEND_LIVE}|bootloader ${LB_BOOTLOADER}|debian_installer ${LB_DEBIAN_INSTALLER}|iso_application ${LB_ISO_APPLICATION}|iso_preparer ${LB_ISO_PREPARER}|iso_publisher ${LB_ISO_PUBLISHER}|iso_volume ${LB_ISO_VOLUME}|memtest ${LB_MEMTEST}|net_path ${LB_NET_ROOT_PATH}|net_server ${LB_NET_ROOT_SERVER}|source_images ${LB_SOURCE_IMAGES}|sources ${LB_SOURCE}|custom_bootstrap ${_CUSTOM_BOOTSTRAP}|custom_binary ${_CUSTOM_BINARY}" >> /var/log/live
+ echo "$(date +%b\ %d\ %H:%M:%S) ${_HOSTNAME} live-build-cgi: options ${_BUILD} |email ${_EMAIL}|binary_images ${LB_BINARY_IMAGES}|distribution ${LB_DISTRIBUTION}|package_lists ${LB_PACKAGE_LISTS}|tasks ${LB_TASKS}|cgipackages ${_LB_CGIPACKAGES}|architectures ${LB_ARCHITECTURES}|archive_areas ${LB_ARCHIVE_AREAS}|chroot_filesystem ${LB_CHROOT_FILESYSTEM}|linux_flavours ${LB_LINUX_FLAVOURS}|security ${LB_SECURITY}|binary_indices ${LB_BINARY_INDICES}|bootappend_install ${LB_BOOTAPPEND_INSTALL}|bootappend_live ${LB_BOOTAPPEND_LIVE}|bootloader ${LB_BOOTLOADER}|debian_installer ${LB_DEBIAN_INSTALLER}|iso_application ${LB_ISO_APPLICATION}|iso_preparer ${LB_ISO_PREPARER}|iso_publisher ${LB_ISO_PUBLISHER}|iso_volume ${LB_ISO_VOLUME}|memtest ${LB_MEMTEST}|net_path ${LB_NET_ROOT_PATH}|net_server ${LB_NET_ROOT_SERVER}|source_images ${LB_SOURCE_IMAGES}|sources ${LB_SOURCE}|custom_bootstrap ${_CUSTOM_BOOTSTRAP}|custom_binary ${_CUSTOM_BINARY}" >> /var/log/live
fi
sed -e "s/VERSION/${VERSION}/" "${_TEMPLATES}"/footer.html
diff --git a/cgi/live-build-cgi.default b/cgi/live-build-cgi.default
index dc304a673..73daa586c 100644
--- a/cgi/live-build-cgi.default
+++ b/cgi/live-build-cgi.default
@@ -10,8 +10,4 @@ _DESTDIR="/srv/debian-live/build/www"
_TEMPLATES="/usr/share/live/build/templates/cgi/${_MODE}"
_TEMPDIR="/srv/debian-live/build/tmp"
-LB_MIRROR_BOOTSTRAP="http://ftp.de.debian.org/debian/"
-LB_MIRROR_BINARY="http://ftp.debian.org/debian/"
-LB_MIRROR_BINARY_SECURITY="http://security.debian.org/"
-
_SERVER="http://live.debian.net/build"
diff --git a/templates/cgi/debian-official/build.html b/templates/cgi/debian-official/build.html
index f44cbc540..b7b1e6e61 100644
--- a/templates/cgi/debian-official/build.html
+++ b/templates/cgi/debian-official/build.html
@@ -24,9 +24,6 @@
<table>
<tr><td>--architectures: </td><td>LB_ARCHITECTURES</td></tr>
<tr><td>--bootstrap-flavour: </td><td>LB_BOOTSTRAP_FLAVOUR</td></tr>
- <tr><td>--mirror-bootstrap: </td><td>LB_MIRROR_BOOTSTRAP</td></tr>
- <tr><td>--mirror-binary: </td><td>LB_MIRROR_BINARY</td></tr>
- <tr><td>--mirror-binary-security: </td><td>LB_MIRROR_BINARY_SECURITY</td></tr>
<tr><td>--archive-areas: </td><td>LB_ARCHIVE_AREAS</td></tr>
</table>
diff --git a/templates/cgi/debian-official/form.html b/templates/cgi/debian-official/form.html
index ede3029fd..d1911ae3b 100644
--- a/templates/cgi/debian-official/form.html
+++ b/templates/cgi/debian-official/form.html
@@ -114,18 +114,6 @@
</td>
</tr>
<tr>
- <td><label for="Mirror_Bootstrap">--mirror-bootstrap:</label> </td>
- <td><input id="Mirror_Bootstrap" name="mirror_bootstrap" maxlength="256" size="50" type="text" value="LB_MIRROR_BOOTSTRAP" readonly /></td>
- </tr>
- <tr>
- <td><label for="Mirror_Binary">--mirror-binary:</label> </td>
- <td><input id="Mirror_Binary" name="mirror_binary" maxlength="256" size="50" type="text" value="LB_MIRROR_BINARY" /></td>
- </tr>
- <tr>
- <td><label for="Mirror_Binary_Security">--mirror-binary-security:</label> </td>
- <td><input id="Mirror_Binary_Security" name="mirror_binary_security" maxlength="256" size="50" type="text" value="LB_MIRROR_BINARY_SECURITY" readonly /></td>
- </tr>
- <tr>
<td><label for="Archive_Areas">--archive-areas:</label> </td>
<td><input id="Archive_Areas" name="archive_areas" maxlength="128" size="50" type="text" value="main" readonly /></td>
</tr>
diff --git a/templates/cgi/debian-unofficial/build.html b/templates/cgi/debian-unofficial/build.html
index 54b74b9d3..3ff461a1b 100644
--- a/templates/cgi/debian-unofficial/build.html
+++ b/templates/cgi/debian-unofficial/build.html
@@ -24,9 +24,6 @@
<table>
<tr><td>--architectures: </td><td>LB_ARCHITECTURES</td></tr>
<tr><td>--bootstrap-flavour: </td><td>LB_BOOTSTRAP_FLAVOUR</td></tr>
- <tr><td>--mirror-bootstrap: </td><td>LB_MIRROR_BOOTSTRAP</td></tr>
- <tr><td>--mirror-binary: </td><td>LB_MIRROR_BINARY</td></tr>
- <tr><td>--mirror-binary-security: </td><td>LB_MIRROR_BINARY_SECURITY</td></tr>
<tr><td>--archive-areas: </td><td>LB_ARCHIVE_AREAS</td></tr>
</table>
diff --git a/templates/cgi/debian-unofficial/form.html b/templates/cgi/debian-unofficial/form.html
index af741054c..3483c6593 100644
--- a/templates/cgi/debian-unofficial/form.html
+++ b/templates/cgi/debian-unofficial/form.html
@@ -113,18 +113,6 @@
</td>
</tr>
<tr>
- <td><label for="Mirror_Bootstrap">--mirror-bootstrap:</label> </td>
- <td><input id="Mirror_Bootstrap" name="mirror_bootstrap" maxlength="256" size="50" type="text" value="LB_MIRROR_BOOTSTRAP" readonly /></td>
- </tr>
- <tr>
- <td><label for="Mirror_Binary">--mirror-binary:</label> </td>
- <td><input id="Mirror_Binary" name="mirror_binary" maxlength="256" size="50" type="text" value="LB_MIRROR_BINARY" /></td>
- </tr>
- <tr>
- <td><label for="Mirror_Binary_Security">--mirror-binary-security:</label> </td>
- <td><input id="Mirror_Binary_Security" name="mirror_binary_security" maxlength="256" size="50" type="text" value="LB_MIRROR_BINARY_SECURITY" readonly /></td>
- </tr>
- <tr>
<td><label for="Archive_Areas">--archive-areas:</label> </td>
<td><input id="Archive_Areas" name="archive_areas" maxlength="128" size="50" type="text" value="main" readonly /></td>
</tr>