Added dependency for libredline, post-installation will add the needed entries in...
authorFlorian Fainelli <florian@openwrt.org>
Fri, 27 Jan 2006 08:19:13 +0000 (08:19 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 27 Jan 2006 08:19:13 +0000 (08:19 +0000)
SVN-Revision: 3052

openwrt/package/atftp/Config.in
openwrt/package/atftp/ipkg/atftp.control
openwrt/package/atftp/ipkg/atftpd.control
openwrt/package/atftp/ipkg/files/postinst [new file with mode: 0755]

index 32ab9512a38c8697f33a9d1dded00fc5d64a783c..296faec8427db8ff0d72e8434c80677bf769ffb3 100644 (file)
@@ -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"
index d2083fc61944edf1257eda367e17393fac92f63c..ca4d86a3087e994d72830d27f3e340c8d2e3430d 100644 (file)
@@ -2,3 +2,4 @@ Package: atftp
 Priority: optional
 Section: net
 Description: tftp client
+Depends: libreadline
index efb40299c3596dd094853379fe7f37d7e90de91a..acdd2f1ced8fa1999b7e6e9b3a198f7acda2410f 100644 (file)
@@ -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 (executable)
index 0000000..a296449
--- /dev/null
@@ -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