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 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 19 | inherit autotools-brokensep update-alternatives |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | CLEANBROKEN = "1" |
| 22 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | do_configure () { |
| 24 | ./configure --prefix=${prefix} |
| 25 | echo "LDFLAGS=${LDFLAGS}" >> MCONFIG |
| 26 | } |
| 27 | |
| 28 | BINMODE = "0755" |
| 29 | MANMODE = "0644" |
| 30 | |
| 31 | do_install () { |
| 32 | install -d ${D}${bindir} |
| 33 | install -d ${D}${mandir}/man1 |
| 34 | install -d ${D}${mandir}/man5 |
| 35 | |
| 36 | install -m${BINMODE} ${S}/ftp/ftp ${D}${bindir} |
| 37 | ln -sf ftp ${D}${bindir}/pftp |
| 38 | install -m${MANMODE} ${S}/ftp/ftp.1 ${D}${mandir}/man1 |
| 39 | ln -sf ftp.1 ${D}${mandir}/man1/pftp.1 |
| 40 | install -m${MANMODE} ${S}/ftp/netrc.5 ${D}${mandir}/man5 |
| 41 | } |
| 42 | |
| 43 | PACKAGES = "${PN} ${PN}-doc ${BPN}-dbg" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 44 | FILES:${PN} = "${bindir}/*" |
| 45 | FILES:${PN}-doc = "${mandir}" |
| 46 | FILES:${PN}-dbg = "${prefix}/src/debug \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 47 | ${bindir}/.debug" |
| 48 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 49 | RDEPENDS:${PN} = "readline" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 50 | |
| 51 | ALTERNATIVE_PRIORITY = "100" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 52 | ALTERNATIVE:${PN} = "ftp" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 53 | ALTERNATIVE_LINK_NAME[ftp] = "${bindir}/ftp" |