aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netkit-telnet/netkit-telnet_0.17.bb
blob: 317cb79b787e6618b76c92d2799b1cd2ef6bb67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SECTION = "base"
DESCRIPTION = "netkit-telnet includes the telnet daemon and client."
DEPENDS = "ncurses"
LICENSE = "BSD"
PR = "r3"

SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz \
           file://netkit-telnet-debian_0.17-36.diff \
           file://cross-compile.patch "

LDFLAGS += "-lncurses"

do_configure () {
    ./configure --prefix=${prefix}

    # Inject our ldflags into the config... it is not horning them otherwise
    echo "LDFLAGS=${LDFLAGS}" > MCONFIG
}


do_compile () {
	oe_runmake 'CC=${CC}' 'LD=${LD}' 'LDFLAGS=${LDFLAGS}' SUB=telnet
}

do_install () {
    install -d ${D}${bindir}
    install -m 0755 telnet/telnet ${D}${bindir}/telnet.${PN}
}

pkg_postinst_${PN} () {
#!/bin/sh
    update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100
}

pkg_prerm_${PN} () {
 #!/bin/sh
   update-alternatives --remove telnet telnet.${PN} 100
}


SRC_URI[md5sum] = "d6beabaaf53fe6e382c42ce3faa05a36"
SRC_URI[sha256sum] = "9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00"