]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
shadow: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Feb 2010 21:31:48 +0000 (22:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Feb 2010 21:31:48 +0000 (22:31 +0100)
pkgs/core/shadow/shadow.nm [new file with mode: 0644]

diff --git a/pkgs/core/shadow/shadow.nm b/pkgs/core/shadow/shadow.nm
new file mode 100644 (file)
index 0000000..a559a86
--- /dev/null
@@ -0,0 +1,82 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+#                                                                             #
+# 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 $(PKGROOT)/Include
+
+PKG_NAME       = shadow
+PKG_VER        = 4.1.4.2
+PKG_REL        = 0
+
+PKG_MAINTAINER =
+PKG_GROUP      = System/Base
+PKG_URL        = ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/
+PKG_LICENSE    = GPLv2+
+PKG_SUMMARY    = Utilities to deal with user accounts.
+
+define PKG_DESCRIPTION
+       The shadow-utils package includes the necessary programs \
+       for converting UNIX password files to the shadow password \
+       format, plus programs for managing user and group accounts.
+endef
+
+PKG_TARBALL    = $(THISAPP).tar.bz2
+
+# Modification of the user and shell permissions
+PKG_PATCHES   += $(THISAPP)-ipfire.patch
+
+# Username check for umlauts
+PKG_PATCHES   += $(THISAPP)-goodname.patch
+
+CONFIGURE_OPTIONS += \
+       --sysconfdir=/etc \
+       --enable-shadowgrp \
+       --with-sha-crypt \
+       --without-selinux \
+       --without-libcrack \
+       --without-libpam \
+       --disable-static
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+define STAGE_PREPARE_CMDS
+       # Do not build these files:
+       cd $(DIR_APP) && \
+               for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
+                               logoutd passwd su; do \
+                       sed -i "s/$$i\$$(EXEEXT)//" src/Makefile.in; \
+                       find man -name Makefile.in -exec sed -i "s/$$i\.1/ /" {} \;; \
+               done
+       cd $(DIR_APP) && sed -i src/Makefile.in \
+               -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
+
+       # Do not install korean and zh man pages
+       cd $(DIR_APP) && sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
+endef
+
+define STAGE_INSTALL_CMDS
+       # Remove man pages in other languages
+       rm -rfv $(BUILDROOT)/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
+endef