forked from ndmsystems/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
76 lines (64 loc) · 1.95 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Copyright (C) 2006-2009 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
PKG_VERSION:=1.1.8
PKG_RELEASE:=3
PKG_LICENSE:=BSD
PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.linux-pam.org/library/
PKG_MD5SUM:=35b6091af95981b1b2cd60d813b5e4ee
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/libpam
SECTION:=libs
CATEGORY:=Libraries
TITLE:=free implementation of the following DCE-RFC from Sunsoft.
URL:=http://www.kernel.org/pub/linux/libs/pam
endef
define Package/libpam/description
Linux-PAM is a free implementation of the following DCE-RFC from Sunsoft.
endef
TARGET_CFLAGS += $(FPIC)
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--enable-pamlocking \
--disable-prelude \
--disable-lckpwdf \
--disable-selinux \
--disable-nls \
--disable-rpath \
--enable-db=no \
--prefix=/opt \
--exec-prefix=/opt \
--sysconfdir=/opt/etc \
--sbindir=/opt/usr/sbin \
--includedir=/opt/usr/include/security \
)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/lib
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/opt/lib/* $(1)/lib/
$(CP) $(PKG_INSTALL_DIR)/opt/usr/include/* $(1)/usr/include
endef
define Package/libpam/install
$(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
$(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/opt/lib/*.so* $(1)/lib/
$(CP) $(PKG_INSTALL_DIR)/opt/lib/security/*.so* $(1)/lib/security/
$(CP) $(PKG_INSTALL_DIR)/opt/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
$(CP) $(PKG_INSTALL_DIR)/opt/etc/* $(1)/etc/
$(CP) ./files/* $(1)/etc/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/usr/sbin/* $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,libpam))