summaryrefslogtreecommitdiffstats
path: root/package/atftp
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
commit5d543c881646b6ccf5c80341f192e802e0df0d52 (patch)
treef0b2fcb074fff6cad23ffba355012e7c7a4db0e4 /package/atftp
parentea6b5381137b95e3800fa6bdee91046bac8833c4 (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/openwrt@3052 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/atftp')
-rw-r--r--package/atftp/Config.in1
-rw-r--r--package/atftp/ipkg/atftp.control1
-rw-r--r--package/atftp/ipkg/atftpd.control1
-rwxr-xr-xpackage/atftp/ipkg/files/postinst8
4 files changed, 11 insertions, 0 deletions
diff --git a/package/atftp/Config.in b/package/atftp/Config.in
index 32ab9512a..296faec84 100644
--- a/package/atftp/Config.in
+++ b/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/package/atftp/ipkg/atftp.control b/package/atftp/ipkg/atftp.control
index d2083fc61..ca4d86a30 100644
--- a/package/atftp/ipkg/atftp.control
+++ b/package/atftp/ipkg/atftp.control
@@ -2,3 +2,4 @@ Package: atftp
Priority: optional
Section: net
Description: tftp client
+Depends: libreadline
diff --git a/package/atftp/ipkg/atftpd.control b/package/atftp/ipkg/atftpd.control
index efb40299c..acdd2f1ce 100644
--- a/package/atftp/ipkg/atftpd.control
+++ b/package/atftp/ipkg/atftpd.control
@@ -2,3 +2,4 @@ Package: atftpd
Priority: optional
Section: net
Description: tftp server
+Depends: libreadline
diff --git a/package/atftp/ipkg/files/postinst b/package/atftp/ipkg/files/postinst
new file mode 100755
index 000000000..a29644996
--- /dev/null
+++ b/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