From 45b6ea63afc826ee0500f54f66beeb102c8445e0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 12 Aug 2015 14:01:55 +0100 Subject: [PATCH] openssh: Update to 7.0p1 Signed-off-by: Michael Tremer --- config/rootfiles/core/94/filelists/openssh | 1 + config/rootfiles/core/94/update.sh | 6 ++++++ lfs/openssh | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 120000 config/rootfiles/core/94/filelists/openssh diff --git a/config/rootfiles/core/94/filelists/openssh b/config/rootfiles/core/94/filelists/openssh new file mode 120000 index 0000000000..d8c77fd8e7 --- /dev/null +++ b/config/rootfiles/core/94/filelists/openssh @@ -0,0 +1 @@ +../../../common/openssh \ No newline at end of file diff --git a/config/rootfiles/core/94/update.sh b/config/rootfiles/core/94/update.sh index e679ecfffd..38ca3316a4 100644 --- a/config/rootfiles/core/94/update.sh +++ b/config/rootfiles/core/94/update.sh @@ -32,6 +32,7 @@ do done # Stop services +/etc/init.d/sshd stop # Extract files extract_files @@ -39,7 +40,12 @@ extract_files # Update Language cache /usr/local/bin/update-lang-cache +# Update SSH configuration +sed -i /etc/ssh/sshd_config \ + -e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/' + # Start services +/etc/init.d/sshd start # This update need a reboot... #touch /var/run/need_reboot diff --git a/lfs/openssh b/lfs/openssh index 7e6e376415..ef70f2068e 100644 --- a/lfs/openssh +++ b/lfs/openssh @@ -24,7 +24,7 @@ include Config -VER = 6.8p1 +VER = 7.0p1 THISAPP = openssh-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 08f72de6751acfbd0892b5f003922701 +$(DL_FILE)_MD5 = 831883f251ac34f0ab9c812acc24ee69 install : $(TARGET) @@ -90,6 +90,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) -e 's/^#\?SyslogFacility AUTH .*$$/SyslogFacility AUTH/' \ -e 's/^#\?LogLevel INFO .*$$/LogLevel INFO/' \ -e 's/^#\?AllowTcpForwarding .*$$/AllowTcpForwarding no/' \ + -e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/' \ /etc/ssh/sshd_config @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.39.5