blob: 1ba0dd46a7a3d5176d31bb0e22f4e2756831ee25 [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 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009 ${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 Williamsb48b7b42016-08-17 15:04:38 -050013
14SRC_URI[archive.md5sum] = "94441610c9b86ef45c4c6ec609444060"
15SRC_URI[archive.sha256sum] = "61c913299b81a4671ff089aac821329f7db9bc111aa812993dd585798b700349"
16SRC_URI[patch31.md5sum] = "93d71e28ce70df69e080c7f90da63cac"
17SRC_URI[patch31.sha256sum] = "4edd46a32d70daa7ba00f0ebf0118dc5d17dff23d6e46aa21a2722be2e22d1c1"
18
Andrew Geisslerd688a012020-09-18 13:36:00 -050019inherit autotools-brokensep update-alternatives
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020
Andrew Geissler82c905d2020-04-13 13:39:40 -050021CLEANBROKEN = "1"
22
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023do_configure () {
24 ./configure --prefix=${prefix}
25 echo "LDFLAGS=${LDFLAGS}" >> MCONFIG
26}
27
28BINMODE = "0755"
29MANMODE = "0644"
30
31do_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
43PACKAGES = "${PN} ${PN}-doc ${BPN}-dbg"
Patrick Williams213cb262021-08-07 19:21:33 -050044FILES:${PN} = "${bindir}/*"
45FILES:${PN}-doc = "${mandir}"
46FILES:${PN}-dbg = "${prefix}/src/debug \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050047 ${bindir}/.debug"
48
Patrick Williams213cb262021-08-07 19:21:33 -050049RDEPENDS:${PN} = "readline"
Andrew Geisslerd688a012020-09-18 13:36:00 -050050
51ALTERNATIVE_PRIORITY = "100"
Patrick Williams213cb262021-08-07 19:21:33 -050052ALTERNATIVE:${PN} = "ftp"
Andrew Geisslerd688a012020-09-18 13:36:00 -050053ALTERNATIVE_LINK_NAME[ftp] = "${bindir}/ftp"