diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb')
-rw-r--r-- | meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb b/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb new file mode 100644 index 0000000000..6978e0669c --- /dev/null +++ b/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | |||
@@ -0,0 +1,72 @@ | |||
1 | SUMMARY = "Client for the Trivial File Transfer Protocol" | ||
2 | DESCRIPTION = \ | ||
3 | "The Trivial File Transfer Protocol (TFTP) is normally used only for \ | ||
4 | booting diskless workstations. The tftp package provides the user \ | ||
5 | interface for TFTP, which allows users to transfer files to and from a \ | ||
6 | remote machine. This program and TFTP provide very little security, \ | ||
7 | and should not be enabled unless it is expressly needed." | ||
8 | DEPENDS = "tcp-wrappers readline" | ||
9 | SECTION = "network" | ||
10 | LICENSE = "BSD-4-Clause" | ||
11 | LIC_FILES_CHKSUM = "file://MCONFIG.in;beginline=1;endline=9;md5=c28ba5adb43041fae4629db05c83cbdd \ | ||
12 | file://tftp/tftp.c;beginline=1;endline=32;md5=988c1cba99d70858a26cd877209857f4" | ||
13 | |||
14 | |||
15 | SRC_URI = "http://kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-${PV}.tar.bz2 \ | ||
16 | file://tftp-0.40-remap.patch \ | ||
17 | file://tftp-0.42-tftpboot.patch \ | ||
18 | file://tftp-0.49-chk_retcodes.patch \ | ||
19 | file://tftp-0.49-cmd_arg.patch \ | ||
20 | file://tftp-hpa-0.39-tzfix.patch \ | ||
21 | file://tftp-hpa-0.49-fortify-strcpy-crash.patch \ | ||
22 | file://tftp-hpa-0.49-stats.patch \ | ||
23 | file://tftp-hpa-5.2-pktinfo.patch \ | ||
24 | file://default \ | ||
25 | file://init \ | ||
26 | file://add-error-check-for-disk-filled-up.patch \ | ||
27 | " | ||
28 | |||
29 | SRC_URI[md5sum] = "46c9bd20bbffa62f79c958c7b99aac21" | ||
30 | SRC_URI[sha256sum] = "0a9f88d4c1c02687b4853b02ab5dd8779d4de4ffdb9b2e5c9332841304d1a269" | ||
31 | |||
32 | inherit autotools update-rc.d update-alternatives | ||
33 | |||
34 | EXTRA_OECONF += "--disable-option-checking" | ||
35 | |||
36 | # configure.in has errors | ||
37 | do_configure() { | ||
38 | oe_runconf | ||
39 | } | ||
40 | |||
41 | do_install() { | ||
42 | oe_runmake install INSTALLROOT=${D} | ||
43 | mv ${D}${bindir}/tftp ${D}${bindir}/tftp-hpa | ||
44 | mv ${D}${sbindir}/in.tftpd ${D}${sbindir}/in.tftpd-hpa | ||
45 | |||
46 | install -m 755 -d ${D}${localstatedir}/lib/tftpboot/ | ||
47 | install -d ${D}${sysconfdir}/init.d | ||
48 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/tftpd-hpa | ||
49 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa | ||
50 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa | ||
51 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/tftpd-hpa | ||
52 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/tftpd-hpa | ||
53 | |||
54 | install -d ${D}${sysconfdir}/default | ||
55 | install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/tftpd-hpa | ||
56 | } | ||
57 | |||
58 | FILES_${PN} = "${bindir}" | ||
59 | |||
60 | PACKAGES += "tftp-hpa-server" | ||
61 | SUMMARY_tftp-hpa-server = "Server for the Trivial File Transfer Protocol" | ||
62 | FILES_tftp-hpa-server = "${sbindir} ${sysconfdir} ${localstatedir}" | ||
63 | CONFFILES_tftp-hpa-server = "${sysconfdir}/default/tftpd-hpa" | ||
64 | |||
65 | INITSCRIPT_PACKAGES = "tftp-hpa-server" | ||
66 | INITSCRIPT_NAME = "tftpd-hpa" | ||
67 | INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 20 1 ." | ||
68 | |||
69 | ALTERNATIVE_${PN} = "tftp" | ||
70 | ALTERNATIVE_TARGET[tftp] = "${bindir}/tftp-hpa" | ||
71 | ALTERNATIVE_PRIORITY = "50" | ||
72 | |||