fwknop: init script improvements
[feed/packages.git] / libs / libpam / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libpam
11 PKG_VERSION:=1.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/linux-pam/linux-pam/releases/download/v$(PKG_VERSION)
16 PKG_HASH:=eff47a4ecd833fbf18de9686632a70ee8d0794b79aecb217ebd0ce11db4cd0db
17 PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
18
19 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
20 PKG_LICENSE:=BSD-3c GPL
21 PKG_LICENSE_FILES:=COPYING Copyright
22 PKG_CPE_ID:=cpe:/a:kernel:linux-pam
23
24 PKG_FIXUP:=autoreconf
25 PKG_BUILD_PARALLEL:=1
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libpam
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=the Linux-PAM libraries and modules.
34 URL:=http://www.kernel.org/pub/linux/libs/pam
35 endef
36
37 define Package/libpam/description
38 The Linux-PAM Pluggable Authentication Modules.
39 endef
40
41 CONFIGURE_ARGS += \
42 --enable-pamlocking \
43 --enable-shared \
44 --enable-static \
45 --disable-audit \
46 --disable-cracklib \
47 --disable-db \
48 --disable-prelude \
49 --disable-lckpwdf \
50 --disable-nis \
51 --disable-regenerate-docu \
52 --disable-rpath \
53 --disable-selinux \
54 --with-gnu-ld \
55 --without-mailspool \
56 --without-xauth
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/lib
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
62 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
63 endef
64
65 define Package/libpam/install
66 $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
67 $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
68 $(INSTALL_DIR) $(1)/usr/sbin
69 $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
70 $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
71 $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
72 $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
73 $(CP) ./files/* $(1)/etc/
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
75 endef
76
77 $(eval $(call BuildPackage,libpam))