2014-06-18 23:52:34 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libpam
|
2022-08-28 06:33:23 +02:00
|
|
|
PKG_VERSION:=1.5.2
|
2018-07-15 20:26:14 -07:00
|
|
|
PKG_RELEASE:=1
|
2014-06-18 23:52:34 +02:00
|
|
|
|
2018-12-30 11:34:29 -08:00
|
|
|
PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/linux-pam/linux-pam/releases/download/v$(PKG_VERSION)
|
2022-08-28 06:33:23 +02:00
|
|
|
PKG_HASH:=e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d
|
2018-12-30 11:34:29 -08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
|
|
|
|
|
2014-06-18 23:52:34 +02:00
|
|
|
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
|
2018-12-30 11:34:29 -08:00
|
|
|
PKG_LICENSE:=BSD-3c GPL
|
|
|
|
PKG_LICENSE_FILES:=COPYING Copyright
|
2024-02-01 22:12:24 +01:00
|
|
|
PKG_CPE_ID:=cpe:/a:linux-pam:linux-pam
|
2014-06-18 23:52:34 +02:00
|
|
|
|
2018-12-30 11:34:29 -08:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2020-11-29 16:48:36 -08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-06-18 23:52:34 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libpam
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=the Linux-PAM libraries and modules.
|
|
|
|
URL:=http://www.kernel.org/pub/linux/libs/pam
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpam/description
|
|
|
|
The Linux-PAM Pluggable Authentication Modules.
|
|
|
|
endef
|
|
|
|
|
2018-12-30 11:34:29 -08:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-pamlocking \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-audit \
|
|
|
|
--disable-cracklib \
|
|
|
|
--disable-db \
|
2020-06-25 17:29:54 -07:00
|
|
|
--disable-debug \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-econf \
|
2018-12-30 11:34:29 -08:00
|
|
|
--disable-lckpwdf \
|
|
|
|
--disable-nis \
|
2020-06-25 17:29:54 -07:00
|
|
|
--disable-prelude \
|
2018-12-30 11:34:29 -08:00
|
|
|
--disable-regenerate-docu \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-selinux \
|
2020-06-25 17:29:54 -07:00
|
|
|
--disable-Werror \
|
2018-12-30 11:34:29 -08:00
|
|
|
--with-gnu-ld \
|
|
|
|
--without-mailspool \
|
|
|
|
--without-xauth
|
2014-06-18 23:52:34 +02:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2020-11-29 16:48:36 -08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2014-06-18 23:52:34 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
|
2020-11-29 16:48:36 -08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
2014-06-18 23:52:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpam/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
|
2020-11-29 16:48:36 -08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/lib/security $(1)/usr/lib/security/pam_filter
|
2014-06-18 23:52:34 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
|
|
|
|
$(CP) ./files/* $(1)/etc/
|
2020-11-29 16:48:36 -08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/security/*.so* $(1)/usr/lib/security/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/security/pam_filter/* $(1)/usr/lib/security/pam_filter/
|
2014-06-18 23:52:34 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
2022-08-28 06:33:23 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
|
2014-06-18 23:52:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libpam))
|