summaryrefslogtreecommitdiffstats
path: root/openwrt/package/atftp/ipkg
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-27 08:19:13 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-27 08:19:13 +0000
commitb1d7fb7b1690cde31f4cae029aabf65ea6224ca5 (patch)
tree1baa12117bdccb002145e0b52eb5de4bcb75cd0a /openwrt/package/atftp/ipkg
parent0bbece3b1a48abc75012dfd1e74c3f50c7624d6b (diff)
Added dependency for libredline, post-installation will add the needed entries in /etc/services if not present, closes #250
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3052 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/atftp/ipkg')
-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
3 files changed, 10 insertions, 0 deletions
diff --git a/openwrt/package/atftp/ipkg/atftp.control b/openwrt/package/atftp/ipkg/atftp.control
index d2083fc61..ca4d86a30 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 efb40299c..acdd2f1ce 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 000000000..a29644996
--- /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