From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1iZjac-00049B-64 for ptxdist@pengutronix.de; Tue, 26 Nov 2019 23:45:46 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23993920AbfKZWpogEOdC (ORCPT ); Tue, 26 Nov 2019 23:45:44 +0100 Date: Tue, 26 Nov 2019 23:45:30 +0100 From: Ladislav Michl Message-ID: <20191126224530.GB949464@lenoch> References: <20191126224419.GA949464@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191126224419.GA949464@lenoch> Subject: [ptxdist] [RFC 1/2] pam: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --- rules/pam.in | 11 +++++++ rules/pam.make | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 rules/pam.in create mode 100644 rules/pam.make diff --git a/rules/pam.in b/rules/pam.in new file mode 100644 index 000000000..4af292030 --- /dev/null +++ b/rules/pam.in @@ -0,0 +1,11 @@ +## SECTION=security + +config PAM + tristate + prompt "pam" + select LIBC_CRYPT + select LIBSELINUX if GLOBAL_SELINUX + help + Linux-PAM (Pluggable Authentication Modules for Linux) is a suite + of shared libraries that enable the local system administrator to + choose how applications authenticate users. diff --git a/rules/pam.make b/rules/pam.make new file mode 100644 index 000000000..3b3eafc19 --- /dev/null +++ b/rules/pam.make @@ -0,0 +1,85 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Ladislav Michl +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PAM) += pam + +# +# Paths and names +# +PAM_VERSION := 1.3.1 +PAM_MD5 := 558ff53b0fc0563ca97f79e911822165 +PAM := Linux-PAM-$(PAM_VERSION) +PAM_SUFFIX := tar.xz +PAM_URL := https://github.com/linux-pam/linux-pam/releases/download/v$(PAM_VERSION)/$(PAM).$(PAM_SUFFIX) +PAM_SOURCE := $(SRCDIR)/$(PAM).$(PAM_SUFFIX) +PAM_DIR := $(BUILDDIR)/$(PAM) +PAM_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +PAM_CONF_TOOL := autoconf +PAM_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --disable-lckpwdf \ + --disable-cracklib \ + --disable-audit \ + --enable-db=no \ + --disable-nis \ + $(GLOBAL_SELINUX_OPTION) \ + --disable-regenerate-docu \ + --disable-nls \ + --disable-rpath + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/pam.install: + @$(call targetinfo) + @$(call world/install, PAM) + @install -vD -m 0644 $(PAM_DIR)/conf/pam.conf \ + $(PAM_PKGDIR)/etc/pam.conf + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/pam.targetinstall: + @$(call targetinfo) + + @$(call install_init, pam) + @$(call install_fixup, pam,PRIORITY,optional) + @$(call install_fixup, pam,SECTION,base) + @$(call install_fixup, pam,AUTHOR,"Ladislav Michl ") + @$(call install_fixup, pam,DESCRIPTION,missing) + + @$(call install_lib, pam, 0, 0, 0644, libpamc) + @$(call install_lib, pam, 0, 0, 0644, libpam_misc) + @$(call install_lib, pam, 0, 0, 0644, libpam) + + @$(call install_tree, pam, 0, 0, -, /usr/lib/security) + + @$(call install_alternative, pam, 0, 0, 0644, /etc/pam.conf) + @$(call install_alternative, pam, 0, 0, 0644, /etc/environment) + @$(call install_alternative_tree, pam, 0, 0, /etc/security) + + @$(call install_finish, pam) + + @$(call touch) + +# vim: syntax=make -- 2.24.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de