summaryrefslogtreecommitdiffstats
path: root/rules/openssh.make
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2006-11-28 14:06:45 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2006-11-28 14:06:45 +0000
commit8eb0904bb8934b8fb5769bd12f44a04c7c95da2c (patch)
treefd8eb7ccd399ccdb02eb51d665980f0f4faec080 /rules/openssh.make
parentb472d482dacb875a504e2fbcfda2260d4337144a (diff)
downloadptxdist-8eb0904bb8934b8fb5769bd12f44a04c7c95da2c.tar.gz
ptxdist-8eb0904bb8934b8fb5769bd12f44a04c7c95da2c.tar.xz
add startscript and generic config files
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6393 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/openssh.make')
-rw-r--r--rules/openssh.make23
1 files changed, 16 insertions, 7 deletions
diff --git a/rules/openssh.make b/rules/openssh.make
index dfb6ae4a6..a465552c3 100644
--- a/rules/openssh.make
+++ b/rules/openssh.make
@@ -128,22 +128,31 @@ $(STATEDIR)/openssh.targetinstall: $(openssh_targetinstall_deps_default)
@$(call install_fixup, openssh,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, openssh,DEPENDS,)
@$(call install_fixup, openssh,DESCRIPTION,missing)
-
+
ifdef PTXCONF_OPENSSH_SSH
- @$(call install_copy, openssh, 0, 0, 0644, $(OPENSSH_DIR)/ssh_config.out, /etc/ssh/ssh_config, n)
+ @$(call install_alternative, openssh, 0, 0, 0644, /etc/ssh/ssh_config)
@$(call install_copy, openssh, 0, 0, 0755, $(OPENSSH_DIR)/ssh, /usr/bin/ssh)
endif
ifdef PTXCONF_OPENSSH_SSHD
@$(call install_copy, openssh, 0, 0, 0644, $(OPENSSH_DIR)/moduli.out, /etc/ssh/moduli, n)
- @$(call install_copy, openssh, 0, 0, 0644, $(OPENSSH_DIR)/sshd_config.out, /etc/ssh/sshd_config, n)
- perl -p -i -e "s/#PermitRootLogin yes/PermitRootLogin yes/" \
- $(ROOTDIR)/etc/ssh/sshd_config
- perl -p -i -e "s/#PermitRootLogin yes/PermitRootLogin yes/" \
- $(IMAGEDIR)/ipkg/etc/ssh/sshd_config
+ @$(call install_alternative, openssh, 0, 0, 0644, /etc/ssh/sshd_config)
@$(call install_copy, openssh, 0, 0, 0755, $(OPENSSH_DIR)/sshd, /usr/sbin/sshd)
endif
+ifdef PTXCONF_ROOTFS_ETC_INITD_OPENSSH
+ @$(call install_alternative, openssh, 0, 0, 0755, /etc/init.d/openssh)
+endif
+
+#
+# FIXME: Is this packet the right location for the link?
+#
+ifneq ($(PTXCONF_ROOTFS_ETC_INITD_OPENSSH_LINK),"")
+ @$(call install_copy, openssh, 0, 0, 0755, /etc/rc.d)
+ @$(call install_link, openssh, ../init.d/openssh, \
+ /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_OPENSSH_LINK))
+endif
+
ifdef PTXCONF_OPENSSH_SCP
@$(call install_copy, openssh, 0, 0, 0755, $(OPENSSH_DIR)/scp, /usr/bin/scp)
endif