lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1881B)


      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.2.0
     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:=ee4a480d77b341c99e8b1375f8f180c0
     17 PKG_INSTALL:=1
     18 PKG_FIXUP:=autoreconf
     19 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
     20 
     21 PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/libpam
     26   SECTION:=libs
     27   CATEGORY:=Libraries
     28   TITLE:=the Linux-PAM libraries and modules.
     29   URL:=http://www.kernel.org/pub/linux/libs/pam
     30 endef
     31 
     32 define Package/libpam/description
     33 	The Linux-PAM Pluggable Authentication Modules.
     34 endef
     35 
     36 TARGET_CFLAGS += $(FPIC)
     37 
     38 define Build/Configure
     39 	$(call Build/Configure/Default, \
     40 		--enable-shared \
     41 		--enable-static \
     42 		--enable-pamlocking \
     43 		--disable-prelude \
     44 		--disable-lckpwdf \
     45 		--disable-selinux \
     46 		--disable-nls \
     47 		--disable-rpath \
     48 		--disable-nis \
     49 		--disable-regenerate-docu \
     50 		--enable-db=no \
     51 	)
     52 endef
     53 
     54 define Build/InstallDev
     55 	$(INSTALL_DIR) $(1)/lib
     56 	$(INSTALL_DIR) $(1)/usr/include
     57 	$(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
     58 	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
     59 endef
     60 
     61 define Package/libpam/install
     62 	$(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
     63 	$(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
     64 	$(INSTALL_DIR) $(1)/usr/sbin
     65 	$(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
     66 	$(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
     67 	$(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
     68 	$(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
     69 	$(CP) ./files/* $(1)/etc/
     70 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
     71 endef
     72 
     73 $(eval $(call BuildPackage,libpam))