Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "netkit-ft includes the ftp client." |
| 2 | SECTION = "net" |
| 3 | HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 4 | LICENSE = "BSD-4-Clause" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | |
| 6 | LIC_FILES_CHKSUM = "file://ftp/ftp.c;beginline=2;endline=3;md5=2d40a75a50d83b8f6317b3f53db72bfa" |
| 7 | |
| 8 | SRC_URI = "${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}.orig.tar.gz;name=archive \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | ${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}-31.debian.tar.xz;name=patch31 \ |
| 10 | file://Add_ARG_MAX_define.patch \ |
| 11 | file://0001-ftp-include-sys-types.h-for-u_long.patch \ |
| 12 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | |
| 14 | SRC_URI[archive.md5sum] = "94441610c9b86ef45c4c6ec609444060" |
| 15 | SRC_URI[archive.sha256sum] = "61c913299b81a4671ff089aac821329f7db9bc111aa812993dd585798b700349" |
| 16 | SRC_URI[patch31.md5sum] = "93d71e28ce70df69e080c7f90da63cac" |
| 17 | SRC_URI[patch31.sha256sum] = "4edd46a32d70daa7ba00f0ebf0118dc5d17dff23d6e46aa21a2722be2e22d1c1" |
| 18 | |
| 19 | inherit autotools-brokensep |
| 20 | |
| 21 | do_configure () { |
| 22 | ./configure --prefix=${prefix} |
| 23 | echo "LDFLAGS=${LDFLAGS}" >> MCONFIG |
| 24 | } |
| 25 | |
| 26 | BINMODE = "0755" |
| 27 | MANMODE = "0644" |
| 28 | |
| 29 | do_install () { |
| 30 | install -d ${D}${bindir} |
| 31 | install -d ${D}${mandir}/man1 |
| 32 | install -d ${D}${mandir}/man5 |
| 33 | |
| 34 | install -m${BINMODE} ${S}/ftp/ftp ${D}${bindir} |
| 35 | ln -sf ftp ${D}${bindir}/pftp |
| 36 | install -m${MANMODE} ${S}/ftp/ftp.1 ${D}${mandir}/man1 |
| 37 | ln -sf ftp.1 ${D}${mandir}/man1/pftp.1 |
| 38 | install -m${MANMODE} ${S}/ftp/netrc.5 ${D}${mandir}/man5 |
| 39 | } |
| 40 | |
| 41 | PACKAGES = "${PN} ${PN}-doc ${BPN}-dbg" |
| 42 | FILES_${PN} = "${bindir}/*" |
| 43 | FILES_${PN}-doc = "${mandir}" |
| 44 | FILES_${PN}-dbg = "${prefix}/src/debug \ |
| 45 | ${bindir}/.debug" |
| 46 | |
| 47 | RDEPENDS_${PN} = "readline" |