summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-01-27 08:19:13 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-01-27 08:19:13 +0000
commit14d75f9727b854525436dfc2fdc86b7e51f28575 (patch)
treee94b3c05a8be5651d3d39a8433c6deafacccf85a
parent066daaac0aa150c07ec2df4bdba2fac31f47430c (diff)
downloadmtk-20170518-14d75f9727b854525436dfc2fdc86b7e51f28575.zip
mtk-20170518-14d75f9727b854525436dfc2fdc86b7e51f28575.tar.gz
mtk-20170518-14d75f9727b854525436dfc2fdc86b7e51f28575.tar.bz2
Added dependency for libredline, post-installation will add the needed entries in /etc/services if not present, closes #250
SVN-Revision: 3052
-rw-r--r--openwrt/package/atftp/Config.in1
-rw-r--r--openwrt/package/atftp/ipkg/atftp.control1
-rw-r--r--openwrt/package/atftp/ipkg/atftpd.control1
-rwxr-xr-xopenwrt/package/atftp/ipkg/files/postinst8
4 files changed, 11 insertions, 0 deletions
diff --git a/openwrt/package/atftp/Config.in b/openwrt/package/atftp/Config.in
index 32ab951..296faec 100644
--- a/openwrt/package/atftp/Config.in
+++ b/openwrt/package/atftp/Config.in
@@ -4,6 +4,7 @@ config BR2_COMPILE_ATFTP
tristate
default n
depends BR2_PACKAGE_ATFTP || BR2_PACKAGE_ATFTPD
+ select BR2_PACKAGE_LIBREADLINE
config BR2_PACKAGE_ATFTP
prompt "atftp............................. TFTP client"
diff --git a/openwrt/package/atftp/ipkg/atftp.control b/openwrt/package/atftp/ipkg/atftp.control
index d2083fc..ca4d86a 100644
--- a/openwrt/package/atftp/ipkg/atftp.control
+++ b/openwrt/package/atftp/ipkg/atftp.control
@@ -2,3 +2,4 @@ Package: atftp
Priority: optional
Section: net
Description: tftp client
+Depends: libreadline
diff --git a/openwrt/package/atftp/ipkg/atftpd.control b/openwrt/package/atftp/ipkg/atftpd.control
index efb4029..acdd2f1 100644
--- a/openwrt/package/atftp/ipkg/atftpd.control
+++ b/openwrt/package/atftp/ipkg/atftpd.control
@@ -2,3 +2,4 @@ Package: atftpd
Priority: optional
Section: net
Description: tftp server
+Depends: libreadline
diff --git a/openwrt/package/atftp/ipkg/files/postinst b/openwrt/package/atftp/ipkg/files/postinst
new file mode 100755
index 0000000..a296449
--- /dev/null
+++ b/openwrt/package/atftp/ipkg/files/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+grep -q '^tftp[[:space:]]*69/tcp' ${IPKG_INSTROOT}/etc/services 2>/dev/null
+if [ $? -ne 0 ]; then
+ echo "tftp 69/tcp" >>${IPKG_INSTROOT}/etc/services
+ echo "tftp 69/udp" >>${IPKG_INSTROOT}/etc/services
+ echo "tftp-mcast 1758/tcp" >>${IPKG_INSTROOT}/etc/services
+ echo "tftp-mcast 1758/udp" >>${IPKG_INSTROOT}/etc/services
+fi