shadow: update to 4.5

Submitted by Marcel Lorenz on June 8, 2017, 8 p.m.

Details

Message ID 20170608200052.8680-1-marcel.lorenz@ipfire.org
State New
Headers show

Commit Message

Marcel Lorenz June 8, 2017, 8 p.m.
http://www.linuxfromscratch.org/blfs/view/svn/postlfs/shadow.html

Signed-off-by: Marcel Lorenz <marcel.lorenz@ipfire.org>
---
 lfs/shadow | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lfs/shadow b/lfs/shadow
index c445dd3..0f0ba9e 100644
--- a/lfs/shadow
+++ b/lfs/shadow
@@ -1,7 +1,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2017  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 4.2.1
+VER        = 4.5
 
 THISAPP    = shadow-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -40,7 +40,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 2bfafe7d4962682d31b5eba65dba4fc8
+$(DL_FILE)_MD5 = c350da50c2120de6bb29177699d89fe3
 
 install : $(TARGET)
 
@@ -71,6 +71,11 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/shadow-4.2.1-suppress_installation_of_groups.patch
+	cd $(DIR_APP) && find man -name Makefile.in -exec sed -i 's/groups\.1 / /'   {} \;
+	cd $(DIR_APP) && find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
+	cd $(DIR_APP) && find man -name Makefile.in -exec sed -i 's/passwd\.5 / /'   {} \;
+	cd $(DIR_APP) && sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' -e 's@/var/spool/mail@/var/mail@' etc/login.defs
+	cd $(DIR_APP) && sed -i 's/1000/999/' etc/useradd
 	cd $(DIR_APP) && ./configure --libdir=/lib	\
 				--sysconfdir=/etc	\
 				--enable-shared		\
@@ -87,7 +92,6 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	install -m 644 $(DIR_SRC)/config/shadow/limits /etc/limits
 	install -m 644 $(DIR_SRC)/config/shadow/login.access /etc/login.access
 	install -m 644 $(DIR_SRC)/config/shadow/login.defs /etc/login.defs
-
 	touch /etc/shadow
 	chmod 600 /etc/shadow
 	pwconv