diff -u tftp-hpa-5.2+20150808/debian/changelog tftp-hpa-5.2+20150808/debian/changelog
--- tftp-hpa-5.2+20150808/debian/changelog
+++ tftp-hpa-5.2+20150808/debian/changelog
@@ -1,3 +1,11 @@
+tftp-hpa (5.2+20150808-1ubuntu2) zesty; urgency=medium
+
+ * Replace the default value of TFTP_ADDRESS to :69 instead of [::]:69.
+ The previous default caused a failure to start when the NIC is not
+ available at startup time (LP: #1342580)
+
+ -- Louis Bouchard <louis.bouchard@ubuntu.com> Thu, 09 Feb 2017 18:13:54 +0100
+
tftp-hpa (5.2+20150808-1ubuntu1) xenial; urgency=medium
* Merge from Debian unstable. Remaining changes:
diff -u tftp-hpa-5.2+20150808/debian/tftpd-hpa.config tftp-hpa-5.2+20150808/debian/tftpd-hpa.config
--- tftp-hpa-5.2+20150808/debian/tftpd-hpa.config
+++ tftp-hpa-5.2+20150808/debian/tftpd-hpa.config
@@ -13,7 +13,13 @@
# Move from IPv4-only to dual-stack
if [ "${TFTP_ADDRESS}" = "0.0.0.0:69" ] && \
dpkg --compare-versions $2 lt 5.2-7ubuntu3; then
- TFTP_ADDRESS="[::]:69"
+ TFTP_ADDRESS=":69"
+ fi
+ # Replace previous dual-stack syntax
+ # that fails to work if NIC is not available
+ # (LP: #1342580)
+ if [ "${TFTP_ADDRESS}" = "[::]:69" ]; then
+ TFTP_ADDRESS=":69"
fi
db_set tftpd-hpa/username "${TFTP_USERNAME}"
diff -u tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst
--- tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst
+++ tftp-hpa-5.2+20150808/debian/tftpd-hpa.postinst
@@ -15,7 +15,7 @@
TFTP_DIRECTORY="${RET:-/srv/tftp}"
db_get tftpd-hpa/address
- TFTP_ADDRESS="${RET:-[::]:69}"
+ TFTP_ADDRESS="${RET:-:69}"
db_get tftpd-hpa/options
TFTP_OPTIONS="${RET}" # is ok when empty
diff -u tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates
--- tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates
+++ tftp-hpa-5.2+20150808/debian/tftpd-hpa.templates
@@ -17,13 +17,13 @@
Template: tftpd-hpa/address
Type: string
-Default: [::]:69
+Default: :69
_Description: TFTP server address and port:
Please specify an address and port to listen to in the form of
[address][:port].
.
By default, the TFTP server listens to port 69 on all addresses and all
- interfaces ([::]:69). If no port is specified, it defaults to 69.
+ interfaces (:69). If no port is specified, it defaults to 69.
.
Please note that numeric IPv6 addresses must be enclosed in square brackets
to avoid ambiguity with the optional port information.