Skip to contentSkip to conversation

netkit-rsh: add new package

PATCH New Armin Kuster 1 participant 1 message Dec 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 netkit-rsh: add new package

V2: added PAM config option
fixed link bug
moved files to PN location
fixed BSD license

---
 .../netkit-rsh/netkit-rsh/no_pam_build_fix.patch   | 39 ++++++++++
 .../netkit-rsh/netkit-rsh/rexec.xinetd.netkit      | 20 +++++
 .../netkit-rsh/netkit-rsh/rlogin.xinetd.netkit     | 23 ++++++
 .../netkit-rsh/rsh-redone_link_order_file.patch    | 77 ++++++++++++++++++
 .../netkit-rsh/netkit-rsh/rsh.xinetd.netkit        | 21 +++++
 .../recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb   | 91 ++++++++++++++++++++++
 6 files changed, 271 insertions(+)
 create mode 100644 meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/no_pam_build_fix.patch
 create mode 100644 meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rexec.xinetd.netkit
 create mode 100644 meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rlogin.xinetd.netkit
 create mode 100644 meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rsh-redone_link_order_file.patch
 create mode 100644 meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rsh.xinetd.netkit
 create mode 100644 meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb
meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/no_pam_build_fix.patch new file +39 -0
new file mode 100644
index 0000000..fdd535b
@@ -0,0 +1,39 @@
+netkit-rsh:
+Allow to build with no PAM enabled.
+
+Upstream-Status: Inappropriate [ no upstream maintaner ]
+
+Signed-off-by: Armin Kuster <[email protected]>
+
+Index: netkit-rsh-0.17/rshd/rshd.c
+===================================================================
+--- netkit-rsh-0.17.orig/rshd/rshd.c
++++ netkit-rsh-0.17/rshd/rshd.c
+@@ -110,9 +110,11 @@ extern	char	**environ;
+ static void error(const char *fmt, ...);
+ static void doit(struct sockaddr *fromp, socklen_t fromlen);
+ static char *getstr(char *, size_t, const char *);
++#ifdef USE_PAM
+ static int err_conv(
+ 	int, const struct pam_message **, struct pam_response **, void *
+ );
++#endif /* USE_PAM */
+ 
+ extern int _check_rhosts_file;
+ 
+@@ -256,6 +258,7 @@ static void stderr_parent(int sock, int
+ }
+ 
+ 
++#ifdef USE_PAM
+ static int err_conv(
+ 	int num_msg, const struct pam_message **msg,
+ 	struct pam_response **resp, void *appdata_ptr
+@@ -266,6 +269,7 @@ static int err_conv(
+ 	(void) appdata_ptr;
+ 	return PAM_CONV_ERR;
+ }
++#endif
+ 
+ static struct passwd *doauth(const char *remuser, 
+ 			     const char *hostname, 
meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rexec.xinetd.netkit new file +20 -0
new file mode 100644
index 0000000..80aed36
@@ -0,0 +1,20 @@
+# default: off
+# description:
+# Rexecd is the server for the rexec program. The server provides remote 
+# execution facilities with authentication based on user names and 
+# passwords.
+#
+service exec
+{
+	socket_type	= stream
+	protocol	= tcp
+	flags		= NAMEINARGS
+	wait		= no
+	user		= root
+	group		= root
+	log_on_success	+= USERID
+	log_on_failure	+= USERID
+	server		= /usr/bin/tcpd
+	server_args	= /usr/sbin/in.rexecd
+	disable		= yes
+}
meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rlogin.xinetd.netkit new file +23 -0
new file mode 100644
index 0000000..00dbf93
@@ -0,0 +1,23 @@
+# default: off
+# description:
+# Rlogind is a server for the rlogin program. The server provides remote 
+# execution with authentication based on privileged port numbers from trusted
+# host
+#
+service login
+{
+	socket_type	= stream
+	protocol	= tcp
+	flags		= NAMEINARGS
+	wait		= no
+	user		= root
+	group		= root
+	log_on_success	+= USERID
+	log_on_failure	+= USERID
+	server		= /usr/bin/tcpd
+	server_args	= /usr/sbin/in.rlogind -a
+	disable		= yes
+}
+							
+							
+							
meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rsh-redone_link_order_file.patch new file +77 -0

77 lines not on this page · raw message

meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rsh.xinetd.netkit new file +21 -0
new file mode 100644
index 0000000..ad59b62
@@ -0,0 +1,21 @@
+# default: off
+# description:
+# The rshd server is a server for the rcmd(3) routine and, 
+# consequently, for the rsh(1) program. The server provides 
+# remote execution facilities with authentication based on 
+# privileged port numbers from trusted hosts.
+#
+service shell
+{
+	socket_type	= stream
+	protocol	= tcp
+	flags		= NAMEINARGS
+	wait		= no
+	user		= root
+	group		= root
+	log_on_success	+= USERID
+	log_on_failure	+= USERID
+	server		= /usr/bin/tcpd
+	server_args	= /usr/sbin/in.rshd -aL
+	disable		= yes
+}
meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb new file +91 -0

91 lines not on this page · raw message

Signature · 1 line
1.9.1