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 \ |
Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 9 | ${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}-34.debian.tar.xz;name=patch34 \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 | SRC_URI[archive.sha256sum] = "61c913299b81a4671ff089aac821329f7db9bc111aa812993dd585798b700349" |
Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 14 | SRC_URI[patch34.sha256sum] = "716b984bc6926ed98345fa4e68adcee2efcf08d0f7315d6be8ad6de76f255748" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 16 | inherit autotools-brokensep update-alternatives |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | CLEANBROKEN = "1" |
| 19 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | do_configure () { |
| 21 | ./configure --prefix=${prefix} |
| 22 | echo "LDFLAGS=${LDFLAGS}" >> MCONFIG |
| 23 | } |
| 24 | |
| 25 | BINMODE = "0755" |
| 26 | MANMODE = "0644" |
| 27 | |
| 28 | do_install () { |
| 29 | install -d ${D}${bindir} |
| 30 | install -d ${D}${mandir}/man1 |
| 31 | install -d ${D}${mandir}/man5 |
| 32 | |
| 33 | install -m${BINMODE} ${S}/ftp/ftp ${D}${bindir} |
| 34 | ln -sf ftp ${D}${bindir}/pftp |
| 35 | install -m${MANMODE} ${S}/ftp/ftp.1 ${D}${mandir}/man1 |
| 36 | ln -sf ftp.1 ${D}${mandir}/man1/pftp.1 |
| 37 | install -m${MANMODE} ${S}/ftp/netrc.5 ${D}${mandir}/man5 |
| 38 | } |
| 39 | |
| 40 | PACKAGES = "${PN} ${PN}-doc ${BPN}-dbg" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:${PN} = "${bindir}/*" |
| 42 | FILES:${PN}-doc = "${mandir}" |
| 43 | FILES:${PN}-dbg = "${prefix}/src/debug \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 44 | ${bindir}/.debug" |
| 45 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 46 | RDEPENDS:${PN} = "readline" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 47 | |
| 48 | ALTERNATIVE_PRIORITY = "100" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 49 | ALTERNATIVE:${PN} = "ftp" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 50 | ALTERNATIVE_LINK_NAME[ftp] = "${bindir}/ftp" |