Signed-off-by: Ladislav Michl <[email protected]> --- rules/pam.in | 10 +++++++ rules/pam.make | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 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..75d5ef42c --- /dev/null +++ b/rules/pam.in @@ -0,0 +1,10 @@ +## SECTION=security + +config PAM + tristate + prompt "PAM" + select LIBC_CRYPT + 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..130744db8 --- /dev/null +++ b/rules/pam.make @@ -0,0 +1,73 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Ladislav Michl <[email protected]> +# +# 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 \ + --disable-selinux \ + --disable-regenerate-docu \ + --disable-nls \ + --disable-rpath + +# ---------------------------------------------------------------------------- +# 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 <[email protected]>") + @$(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/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 [email protected]
