blob: 9b8af27f88c1599c4440f9e02feaa130dfbe6650 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "netkit-rusers includes rusers - Displays who is logged in to machines on local network \
2 rusersd - Logged in users server"
3HOMEPAGE = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
4SECTION = "net"
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://rusers/rusers.c;beginline=2;endline=3;md5=f4fc634a4ce8c569911196b72b10770e"
7DEPENDS = " tcp-wrappers libtirpc rpcbind"
8
Brad Bishop7f28bc52017-12-03 23:42:40 -05009SRC_URI = "http://http.debian.net/debian/pool/main/n/${BPN}/${BPN}_${PV}.orig.tar.gz;name=archive \
10 http://http.debian.net/debian/pool/main/n/${BPN}/${BPN}_${PV}-8.diff.gz;name=patch8 \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011 file://rpc.rusersd-Makefile-fix-parallel-build-issue.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012 file://0001-Link-with-libtirpc.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013"
14
15SRC_URI[archive.md5sum] = "dc99a80b9fde2ab427c874f88f1c1602"
16SRC_URI[archive.sha256sum] = "f00138651865ad2dcfec5dedda0cda403cb80c4ab68efcc3bbccafe198c24b6d"
17SRC_URI[patch8.md5sum] = "1ff498113e0f920d92088092e5570bdc"
18SRC_URI[patch8.sha256sum] = "14882dbdda4e37baa84d55b54b46c7e063a20fc9e04d1be1a2807643cd0f3067"
19
20inherit autotools-brokensep
21
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022CFLAGS += "-I${STAGING_INCDIR}/tirpc"
23LIBS += "-ltirpc"
24
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025do_configure () {
26 ./configure --prefix=${prefix}
27 echo "LDFLAGS=${LDFLAGS}" >> MCONFIG
28 echo "USE_GLIBC=1" >> MCONFIG
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029 echo "LIBS=${LIBS}" >> MCONFIG
Patrick Williamsb48b7b42016-08-17 15:04:38 -050030}
31
32do_install () {
33 install -d ${D}${bindir}
34 install -d ${D}${sbindir}
35 install -d ${D}${mandir}/man1
36 install -d ${D}${mandir}/man8
37 install -d ${D}${sysconfdir}/xinetd.d
38
39 sed -i 's/install -s/install/' rusers/Makefile
40 sed -i 's/install -s/install/' rup/Makefile
41 sed -i 's/install -s/install/' rpc.rusersd/Makefile
42
43 oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \
44 'DAEMONMODE=0755' 'MANMODE=0644' \
45 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \
46 'MANDIR=${mandir}' install
47
48 # create the xinetd config file
49 cat >rusersd.conf <<EOF
50 service rusersd
51 {
52 disable = yes
53 type = RPC
54 rpc_version = 1-2
55 socket_type = dgram
56 protocol = udp
57 wait = yes
58 user = root
59 server = ${sbindir}/rpc.rusersd
60 }
61EOF
62 install rusersd.conf ${D}/${sysconfdir}/xinetd.d/rusersd
63}
64
65
66INSANE_SKIP_${PN} = "already-stripped"
67
68PACKAGES = "${PN}-client ${PN}-server ${PN}-doc ${BPN}-dbg"
69FILES_${PN}-client = "${bindir}/*"
70FILES_${PN}-server = "${sbindir}/* ${sysconfdir}"
71FILES_${PN}-doc = "${mandir}"
72FILES_${PN}-dbg = "${prefix}/src/debug \
73 ${bindir}/.debug ${sbindir}/.debug"
74
75RDEPENDS_${PN}-server = "tcp-wrappers xinetd rpcbind"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080076
77# http://errors.yoctoproject.org/Errors/Details/186962/
78EXCLUDE_FROM_WORLD_libc-musl = "1"