[packages] add google-authenticator
[packages.git] / libs / libpam / Makefile
1 #
2 # Copyright (C) 2006-2009 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.1.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.linux-pam.org/library/
16 PKG_MD5SUM:=35b6091af95981b1b2cd60d813b5e4ee
17 PKG_INSTALL:=1
18 PKG_FIXUP:=autoreconf
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libpam
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=free implementation of the following DCE-RFC from Sunsoft.
28   URL:=http://www.kernel.org/pub/linux/libs/pam
29 endef
30
31 define Package/libpam/description
32         Linux-PAM is a free implementation of the following DCE-RFC from Sunsoft. 
33
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Configure
39         (cd $(PKG_BUILD_DIR); autoreconf -v -f --install || exit 1)
40         $(call Build/Configure/Default, \
41                 --enable-shared \
42                 --enable-static \
43                 --enable-pamlocking \
44                 --disable-prelude \
45                 --disable-lckpwdf \
46                 --disable-selinux \
47                 --disable-nls \
48                 --disable-rpath \
49         )
50 endef
51
52 define Build/InstallDev
53         $(INSTALL_DIR) $(1)/lib
54         $(INSTALL_DIR) $(1)/usr/include
55         $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
56         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
57 endef
58
59 define Package/libpam/install
60         $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter 
61         $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
62         $(INSTALL_DIR) $(1)/usr/sbin
63         $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
64         $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
65         $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
66         $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
67         $(CP) ./files/* $(1)/etc/
68         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
69 endef
70
71 $(eval $(call BuildPackage,libpam))