summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb')
-rw-r--r--meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb91
1 files changed, 91 insertions, 0 deletions
diff --git a/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb b/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb
new file mode 100644
index 000000000..8b42fa7cb
--- /dev/null
+++ b/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb
@@ -0,0 +1,91 @@
1DESCRIPTION = "netkit-rsh includes the rsh daemon and client."
2SECTION = "networking"
3HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
4LICENSE = "BSD-4-Clause"
5DEPENDS = "xinetd libgcrypt"
6
7LIC_FILES_CHKSUM = "file://rsh/rsh.c;beginline=2;endline=3;md5=25737e9d21d9df251dd26b7dcbd8ee29"
8
9SRC_URI = "${DEBIAN_MIRROR}/main/n/netkit-rsh/netkit-rsh_${PV}.orig.tar.gz;name=archive \
10 ${DEBIAN_MIRROR}/main/n/netkit-rsh/netkit-rsh_${PV}-15.diff.gz;name=patch15 \
11 file://rsh-redone_link_order_file.patch \
12 file://no_pam_build_fix.patch \
13 file://rexec.xinetd.netkit \
14 file://rlogin.xinetd.netkit \
15 file://rsh.xinetd.netkit \
16"
17
18SRC_URI[archive.md5sum] = "65f5f28e2fe22d9ad8b17bb9a10df096"
19SRC_URI[archive.sha256sum] = "edcac7fa18015f0bc04e573f3f54ae3b638d71335df1ad7dae692779914ad669"
20SRC_URI[patch15.md5sum] = "655efc0d541b03ca5de0ae506c805ea3"
21SRC_URI[patch15.sha256sum] = "2bc071c438e8b0ed42a0bd2db2d8b681b27a1e9b1798694d9874733293bc2aa9"
22
23inherit pkgconfig
24
25CFLAGS += " -D_GNU_SOURCE -Wno-deprecated-declarations"
26LDFLAGS += " -L${STAGING_LIBDIR} -lutil -lcrypt"
27
28PACKAGECONFIG ??= ""
29PACKAGECONFIG += " ${@bb.utils.contains("DISTRO_FEATURES", "pam", "pam", "", d)}"
30PACKAGECONFIG[pam] = " , --without-pam, libpam, libpam"
31
32do_configure () {
33 ./configure --prefix=${prefix}
34 echo "INSTALLROOT=${D}" > MCONFIG
35
36 if [ "${@base_contains('PACKAGECONFIG', 'pam', 'pam', '', d)}" != "" ]; then
37 echo "USE_PAM=1" >> MCONFIG
38 fi
39
40 # didn't want to patch these next changes
41 sed -i 's/netkit-//' ${S}/rsh/pathnames.h
42 sed -i 's/netkit-//' ${S}/rcp/pathnames.h
43}
44
45do_install () {
46 install -d ${D}${bindir}
47 install -d ${D}${sbindir}
48 install -d ${D}${mandir}/man1
49 install -d ${D}${mandir}/man8
50 install -d ${D}${sysconfdir}/xinetd.d
51
52 oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \
53 'DAEMONMODE=0755' 'MANMODE=0644' \
54 'SUIDMODE=4755' \
55 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \
56 'MANDIR=${mandir}' install
57
58 if [ "${@base_contains('PACKAGECONFIG', 'pam', 'pam', '', d)}" != "" ]; then
59 install -d ${D}${sysconfdir}/pam.d
60 install -m 0644 debian/hosts.equiv ${D}/${sysconfdir}
61 install -m 0644 debian/pam.d/rexec ${D}/${sysconfdir}/pam.d
62 install -m 0644 debian/pam.d/rlogin ${D}/${sysconfdir}/pam.d
63 install -m 0644 debian/pam.d/rsh ${D}/${sysconfdir}/pam.d
64 fi
65 cp ${WORKDIR}/rexec.xinetd.netkit ${D}/${sysconfdir}/xinetd.d/rexec
66 cp ${WORKDIR}/rlogin.xinetd.netkit ${D}/${sysconfdir}/xinetd.d/rlogin
67 cp ${WORKDIR}/rsh.xinetd.netkit ${D}/${sysconfdir}/xinetd.d/rsh
68}
69
70PACKAGES = "${PN}-client ${PN}-server ${PN}-doc ${BPN}-dbg"
71
72FILES_${PN}-client = "${bindir}/*"
73FILES_${PN}-server = "${sbindir}/* ${sysconfdir}"
74FILES_${PN}-doc = "${mandir}"
75FILES_${PN}-dbg = "${prefix}/src/debug \
76 ${sbindir}/.debug ${bindir}/.debug"
77
78ALTERNATIVE_PRIORITY = "80"
79ALTERNATIVE_${PN}-client = "rcp rexec rlogin rsh"
80ALTERNATIVE_${PN}-server = "rshd rexecd rlogind"
81ALTERNATIVE_LINK_NAME[server] = "${bindir}/rshd"
82ALTERNATIVE_TARGET[rshd] = "${sbindir}/in.rshd"
83ALTERNATIVE_LINK_NAME[rexecd] = "${bindir}/rexecd"
84ALTERNATIVE_TARGET[rexecd] = "${sbindir}/in.rexecd"
85ALTERNATIVE_LINK_NAME[rlogind] = "${bindir}/rlogind"
86ALTERNATIVE_TARGET[rlogind] = "${sbindir}/in.rlogind"
87
88RCONFLICTS_${PN}-client += "inetutils-rshd"
89RPROVIDES_${PN}-rshd = "rshd"
90
91RDEPENDS_${PN} = "xinetd"