blob: 31fdd9e4d8fec5f387b04254b82c9efcc634142e [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "netkit-ft includes the ftp client."
2SECTION = "net"
3HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
Brad Bishop2d39a062019-10-28 08:33:36 -04004LICENSE = "BSD-4-Clause"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005
6LIC_FILES_CHKSUM = "file://ftp/ftp.c;beginline=2;endline=3;md5=2d40a75a50d83b8f6317b3f53db72bfa"
7
8SRC_URI = "${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}.orig.tar.gz;name=archive \
Andrew Geissler028142b2023-05-05 11:29:21 -05009 ${DEBIAN_MIRROR}/main/n/netkit-ftp/netkit-ftp_${PV}-34.debian.tar.xz;name=patch34 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010 file://Add_ARG_MAX_define.patch \
11 file://0001-ftp-include-sys-types.h-for-u_long.patch \
12 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013SRC_URI[archive.sha256sum] = "61c913299b81a4671ff089aac821329f7db9bc111aa812993dd585798b700349"
Andrew Geissler028142b2023-05-05 11:29:21 -050014SRC_URI[patch34.sha256sum] = "716b984bc6926ed98345fa4e68adcee2efcf08d0f7315d6be8ad6de76f255748"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015
Andrew Geisslerd688a012020-09-18 13:36:00 -050016inherit autotools-brokensep update-alternatives
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017
Andrew Geissler82c905d2020-04-13 13:39:40 -050018CLEANBROKEN = "1"
19
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020do_configure () {
21 ./configure --prefix=${prefix}
22 echo "LDFLAGS=${LDFLAGS}" >> MCONFIG
23}
24
25BINMODE = "0755"
26MANMODE = "0644"
27
28do_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
40PACKAGES = "${PN} ${PN}-doc ${BPN}-dbg"
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:${PN} = "${bindir}/*"
42FILES:${PN}-doc = "${mandir}"
43FILES:${PN}-dbg = "${prefix}/src/debug \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044 ${bindir}/.debug"
45
Patrick Williams213cb262021-08-07 19:21:33 -050046RDEPENDS:${PN} = "readline"
Andrew Geisslerd688a012020-09-18 13:36:00 -050047
48ALTERNATIVE_PRIORITY = "100"
Patrick Williams213cb262021-08-07 19:21:33 -050049ALTERNATIVE:${PN} = "ftp"
Andrew Geisslerd688a012020-09-18 13:36:00 -050050ALTERNATIVE_LINK_NAME[ftp] = "${bindir}/ftp"