Files
bpfire/lfs/shadow
Adolf Belka 0645867f1d shadow: Update to version 4.13
- Update from version 4.11.1 to 4.13
- Update of rootfile not required
- Changelog
	4.13
	    * useradd.8: fix default group ID (Tim Biermann)
	    * Revert drop of subid_init() (Serge Hallyn)
	    * Georgian translation (NorwayFun)
	    * useradd: Avoid taking unneeded space: do not reset non-existent data
	      in lastlog (David Kalnischkies)
	    * relax username restrictions (Alexander Kanavin)
	    * selinux: check MLS enabled before setting serange (genBTC)
	    * copy_tree: use fchmodat instead of chmod (Samanta Navarro)
	    * copy_tree: don't block on FIFOs (Samanta Navarro)
	    * add shell linter (Jan Macku)
	    * copy_tree: carefully treat permissions (Samanta Navarro)
	    * lib/commonio: make lock failures more detailed (Luca BRUNO)
	    * lib: use strzero and memzero where applicable (Christian Göttsche)
	    * Update Dutch translation (Frans Spiesschaert)
	    * Don't test for NULL before calling free (Alex Colomar)
	    * Use libc MAX() and MIN() (Alejandro Colomar)
	    * chage: Fix regression in print_date (Xiami)
	    * usermod: report error if homedir does not exist (Iker Pedrosa)
	    * libmisc: minimum id check for system accounts (Iker Pedrosa)
	    * fix usermod -rG x y wrongly adding a group (xyz)
	    * man: add missing space in useradd.8.xml (Iker Pedrosa)
	    * lastlog: check for localtime() return value (Iker Pedrosa)
	    * Raise limit for passwd and shadow entry length (Iker Pedrosa)
	    * Remove adduser-old.c (Alejandro Colomar)
	    * useradd: Fix buffer overflow when using a prefix (David Michael)
	    * Don't warn when failed to open /etc/nsswitch.conf (Serge Hallyn)
	4.12.3
	    Revert removal of subid_init, which should have bumped soname. So note that 4.12
	     through 4.12.2 were broken for subid users.
	4.12.2
	    This includes the fix by Christian Göttsche for a TOCTTOU when copying directories.
	4.12.1
	    This should fix the broken uk manpages in 4.12.
	4.12
	    This release includes the following changes:
	    * Add absolute path hint to --root (Celeste Liu)
	    * Various cleanups (Christian Göttsche)
	    * Fix Ubuntu release used in CI tests (Jeremy Whiting)
	    * add -F options to useradd (and tests) (Masatake YAMATO)
	    * useradd manpage updates (Masatake YAMATO and Alexander Zhang))
	    * Check for ownerid (not just username) in subid ranges (Iker Pedrosa)
	    * Declare file local functions static (Christian Göttsche)
	    * Use strict prototypes (Christian Göttsche)
	    * Do not drop const qualifier for Basename (Christian Göttsche)
	    * Constify various pointers (Christian Göttsche)
	    * Don't return uninitialized memory (Christian Göttsche)
	    * Don't let compiler optimize away memory cleaning (Christian Göttsche)
	    * Remove many obsolete compatibility checks  and defines (Alejandro Colomar)
	    * Modify ID range check in useradd (Iker Pedrosa)
	    * Use "extern "C"" to make libsubid easier to use from C++ (Alois Wohlschlager)
	    * French translation updates (bubu)
	    * Fix s/with-pam/with-libpam/ (serge)
	    * Spanish translation updates (Fernando)
	    * French translation fixes (Balint Reczey)
	    * Default max group name length to 32 (Jami Kettunen)
	    * Fix PAM service files without-selinux (Ali Riza KESKIN)
	    * Improve manpages (Markus Hiereth)
	      - groupadd, useradd, usermod
	      - groups and id
	      - pwck
	    * Add fedora to CI builds (Iker Pedrosa)
	    * Fix condition under which pw_dir check happens (Ed Neville)
	    * logoutd: switch to strncat (Steve Grubb)
	    * AUTHORS: improve markdown output (Iker Pedrosa)
	    * Handle ERANGE errors correctly (Niko)
	    * Check for fopen NULL return (juyin)
	    * Split get_salt() into its own fn juyin)
	    * Get salt before chroot to ensure /dev/urandom. (juyin)
	    * Chpasswd code cleanup (juyin)
	    * Work around git safe.directory enforcement (serge)
	    * Alphabetize order in usermod help (Matheus Marques)
	    * Erase password copy on error branches (Christian Göttsche)
	    * Suggest using --badname if needed (Iker Pedrosa)
	    * Update translation files (Iker Pedrosa)
	    * Correct badnames option to badname (Iker Pedrosa)
	    * configure: replace obsolete autoconf macros (Christian Göttsche)
	    * tests: replace egrep with grep -E (Sam James)
	    * Update Ukrainian translations (Yuri Chornoivan)
	    * Cleanups (Iker Pedrosa)
	      - Remove redeclared variable
	      - Remove commented out code and FIXMEs
	      - Add header guards
	      - Initialize local variables
	    * CI updates (Iker Pedrosa)
	      - Create github workflow to install dependencies
	      - Enable CodeQL
	      - Update actions version
	    * libmisc: use /dev/urandom as fallback if other methods fail (Xi Ruoyao)

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-01-26 22:48:51 +00:00

101 lines
3.8 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2023 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 #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 4.13
THISAPP = shadow-$(VER)
DL_FILE = $(THISAPP).tar.xz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 315ab8a7e598aeefb50c11293e20cfa0982c3c3ae21c35ae243d09a4facf97a13c1d672990876e74ef94f5284402acf14997663743e2aaefa6cfc4369b7d24dc
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(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.13-suppress_installation_of_groups.patch
$(UPDATE_AUTOMAKE)
cd $(DIR_APP) && ./configure \
--libdir=/lib \
--sysconfdir=/etc \
--with-yescrypt \
--enable-shared \
--disable-static \
--without-selinux \
--disable-nls \
--with-group-name-max-length=32
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
mv -v /usr/bin/passwd /bin
ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so
# Install configuration
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
@rm -rf $(DIR_APP)
@$(POSTBUILD)