diff options
| -rw-r--r-- | meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/tftp.conf | 11 | ||||
| -rw-r--r-- | meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb | 54 |
2 files changed, 65 insertions, 0 deletions
diff --git a/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/tftp.conf b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/tftp.conf new file mode 100644 index 0000000000..7bc6ca96b6 --- /dev/null +++ b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/tftp.conf | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | service tftp | ||
| 2 | { | ||
| 3 | disable = no | ||
| 4 | socket_type = dgram | ||
| 5 | port = 69 | ||
| 6 | protocol = udp | ||
| 7 | wait = yes | ||
| 8 | user = nobody | ||
| 9 | server = /usr/sbin/in.tftpd | ||
| 10 | server_args = /tftpboot | ||
| 11 | } | ||
diff --git a/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb new file mode 100644 index 0000000000..bd54c0a817 --- /dev/null +++ b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | SUMMARY = "tftp - Trivial file transfer protocol client" | ||
| 2 | SECTION = "networking" | ||
| 3 | LICENSE = "BSD-4-Clause" | ||
| 4 | DEPENDS = "tcp-wrappers" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://tftp/tftp.c;beginline=2;endline=3;md5=84d2cfe1e60863a7d82648734ba4d30c" | ||
| 7 | |||
| 8 | SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}.orig.tar.gz;name=archive \ | ||
| 9 | ${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}-18.diff.gz;name=patch18 \ | ||
| 10 | file://tftp.conf \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRC_URI[archive.md5sum] = "b7262c798e2ff50e29c2ff50dfd8d6a8" | ||
| 14 | SRC_URI[archive.sha256sum] = "3a43c0010d4e61f412563fd83769d4667d8b8e82903526d21cb9205fe55ad14d" | ||
| 15 | SRC_URI[patch18.md5sum] = "cb29e7a33dd85105ba6e6ec4f971e42c" | ||
| 16 | SRC_URI[patch18.sha256sum] = "092437d27b4fa88c044ef6290372fee5ce06d223607f0e22a6e527065c8930e7" | ||
| 17 | |||
| 18 | inherit autotools-brokensep | ||
| 19 | |||
| 20 | do_configure () { | ||
| 21 | ./configure --prefix=${prefix} | ||
| 22 | echo "CFLAGS=${CFLAGS}" > MCONFIG | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile () { | ||
| 26 | oe_runmake 'CC=${CC}' 'LD=${LD}' 'LDFLAGS=${LDFLAGS}' 'CFLAGS=${CFLAGS}' | ||
| 27 | } | ||
| 28 | |||
| 29 | do_install () { | ||
| 30 | install -d ${D}${bindir} | ||
| 31 | install -d ${D}${sbindir} | ||
| 32 | install -d ${D}${mandir}/man1 | ||
| 33 | install -d ${D}${mandir}/man8 | ||
| 34 | install -d ${D}${sysconfdir}/xinetd.d | ||
| 35 | |||
| 36 | sed -i 's/install -s/install/' tftp/Makefile | ||
| 37 | sed -i 's/install -s/install/' tftpd/Makefile | ||
| 38 | |||
| 39 | oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \ | ||
| 40 | 'DAEMONMODE=0755' 'MANMODE=0644' \ | ||
| 41 | 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \ | ||
| 42 | 'MANDIR=${mandir}' install | ||
| 43 | |||
| 44 | install ${WORKDIR}/tftp.conf ${D}/${sysconfdir}/xinetd.d/tftp | ||
| 45 | } | ||
| 46 | |||
| 47 | PACKAGES = "${PN}-client ${PN}-server ${PN}-doc ${BPN}-dbg" | ||
| 48 | FILES_${PN}-client = "${bindir}/*" | ||
| 49 | FILES_${PN}-server = "${sbindir}/* ${sysconfdir}/xinetd.d/*" | ||
| 50 | FILES_${PN}-doc = "${mandir}" | ||
| 51 | FILES_${PN}-dbg = "${prefix}/src/debug \ | ||
| 52 | ${bindir}/.debug ${sbindir}/.debug" | ||
| 53 | |||
| 54 | RDEPENDS_${PN}-server = "tcp-wrappers xinetd" | ||
