packages/luaexpat: fix whitespaces
[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:=3
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 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 define Build/Configure
38         $(call Build/Configure/Default, \
39                 --enable-shared \
40                 --enable-static \
41                 --enable-pamlocking \
42                 --disable-prelude \
43                 --disable-lckpwdf \
44                 --disable-selinux \
45                 --disable-nls \
46                 --disable-rpath \
47                 --enable-db=no \
48         )
49 endef
50
51 define Build/InstallDev
52         $(INSTALL_DIR) $(1)/lib
53         $(INSTALL_DIR) $(1)/usr/include
54         $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
55         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
56 endef
57
58 define Package/libpam/install
59         $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter 
60         $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
61         $(INSTALL_DIR) $(1)/usr/sbin
62         $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
63         $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
64         $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
65         $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
66         $(CP) ./files/* $(1)/etc/
67         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
68 endef
69
70 $(eval $(call BuildPackage,libpam))