public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] shadow: update to 4.5
@ 2017-06-08 20:00 Marcel Lorenz
  0 siblings, 0 replies; only message in thread
From: Marcel Lorenz @ 2017-06-08 20:00 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]

http://www.linuxfromscratch.org/blfs/view/svn/postlfs/shadow.html

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

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(a)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(a)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
-- 
2.9.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-08 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-08 20:00 [PATCH] shadow: update to 4.5 Marcel Lorenz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox