diff options
| -rw-r--r-- | meta-networking/recipes-netkit/netkit-rusers/netkit-rusers_0.17.bb | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/meta-networking/recipes-netkit/netkit-rusers/netkit-rusers_0.17.bb b/meta-networking/recipes-netkit/netkit-rusers/netkit-rusers_0.17.bb new file mode 100644 index 0000000000..e59f7a7d7c --- /dev/null +++ b/meta-networking/recipes-netkit/netkit-rusers/netkit-rusers_0.17.bb | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | DESCRIPTION = "netkit-rusers includes rusers - Displays who is logged in to machines on local network \ | ||
| 2 | rusersd - Logged in users server" | ||
| 3 | HOMEPAGE = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit" | ||
| 4 | SECTION = "networking" | ||
| 5 | LICENSE = "BSD" | ||
| 6 | LIC_FILES_CHKSUM = "file://rusers/rusers.c;beginline=2;endline=3;md5=f4fc634a4ce8c569911196b72b10770e" | ||
| 7 | DEPENDS = " tcp-wrappers libtirpc rpcbind" | ||
| 8 | |||
| 9 | SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}.orig.tar.gz;name=archive \ | ||
| 10 | ${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}-8.diff.gz;name=patch8 \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRC_URI[archive.md5sum] = "dc99a80b9fde2ab427c874f88f1c1602" | ||
| 14 | SRC_URI[archive.sha256sum] = "f00138651865ad2dcfec5dedda0cda403cb80c4ab68efcc3bbccafe198c24b6d" | ||
| 15 | SRC_URI[patch8.md5sum] = "1ff498113e0f920d92088092e5570bdc" | ||
| 16 | SRC_URI[patch8.sha256sum] = "14882dbdda4e37baa84d55b54b46c7e063a20fc9e04d1be1a2807643cd0f3067" | ||
| 17 | |||
| 18 | inherit autotools-brokensep | ||
| 19 | |||
| 20 | do_configure () { | ||
| 21 | ./configure --prefix=${prefix} | ||
| 22 | echo "LDFLAGS=${LDFLAGS}" >> MCONFIG | ||
| 23 | echo "USE_GLIBC=1" >> MCONFIG | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install () { | ||
| 27 | install -d ${D}${bindir} | ||
| 28 | install -d ${D}${sbindir} | ||
| 29 | install -d ${D}${mandir}/man1 | ||
| 30 | install -d ${D}${mandir}/man8 | ||
| 31 | install -d ${D}${sysconfdir}/xinetd.d | ||
| 32 | |||
| 33 | sed -i 's/install -s/install/' rusers/Makefile | ||
| 34 | sed -i 's/install -s/install/' rup/Makefile | ||
| 35 | sed -i 's/install -s/install/' rpc.rusersd/Makefile | ||
| 36 | |||
| 37 | oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \ | ||
| 38 | 'DAEMONMODE=0755' 'MANMODE=0644' \ | ||
| 39 | 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \ | ||
| 40 | 'MANDIR=${mandir}' install | ||
| 41 | |||
| 42 | # create the xinetd config file | ||
| 43 | cat >rusersd.conf <<EOF | ||
| 44 | service rusersd | ||
| 45 | { | ||
| 46 | disable = yes | ||
| 47 | type = RPC | ||
| 48 | rpc_version = 1-2 | ||
| 49 | socket_type = dgram | ||
| 50 | protocol = udp | ||
| 51 | wait = yes | ||
| 52 | user = root | ||
| 53 | server = ${sbindir}/rpc.rusersd | ||
| 54 | } | ||
| 55 | EOF | ||
| 56 | install rusersd.conf ${D}/${sysconfdir}/xinetd.d/rusersd | ||
| 57 | } | ||
| 58 | |||
| 59 | |||
| 60 | INSANE_SKIP_${PN} = "already-stripped" | ||
| 61 | |||
| 62 | PACKAGES = "${PN}-client ${PN}-server ${PN}-doc ${BPN}-dbg" | ||
| 63 | FILES_${PN}-client = "${bindir}/*" | ||
| 64 | FILES_${PN}-server = "${sbindir}/* ${sysconfdir}" | ||
| 65 | FILES_${PN}-doc = "${mandir}" | ||
| 66 | FILES_${PN}-dbg = "${prefix}/src/debug \ | ||
| 67 | ${bindir}/.debug ${sbindir}/.debug" | ||
| 68 | |||
| 69 | RDEPENDS_${PN}-server = "tcp-wrappers xinetd rpcbind" | ||
