1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= pam
  5. PKG_VERSION:= 1.1.8
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 4183409a450708a976eca5af561dbf4f0490141a08e86e4a1e649c7c1b094876
  8. PKG_DESCR:= pluggable authentication modules
  9. PKG_BUILDDEP:= flex
  10. PKG_SECTION:= sys/misc
  11. PKG_URL:= http://www.linux-pam.org/
  12. PKG_SITES:= http://www.linux-pam.org/library/
  13. PKG_OPTS:= dev
  14. PKG_BB:= 1
  15. PKG_CFLINE_PAM:= depends on !ADK_TARGET_USE_STATIC_LIBS
  16. DISTFILES:= Linux-PAM-$(PKG_VERSION).tar.gz
  17. WRKDIST= ${WRKDIR}/Linux-PAM-${PKG_VERSION}
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,PAM,pam,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. AUTOTOOL_STYLE:= autoreconf
  21. CONFIGURE_ARGS+= --disable-nis \
  22. --disable-regenerate-docu \
  23. --enable-db=no
  24. post-install:
  25. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
  26. # /lib is not automatically installed to staging area
  27. $(CP) $(WRKINST)/lib/libpam*.so* $(STAGING_TARGET_DIR)/usr/lib
  28. endif
  29. pam-install:
  30. $(INSTALL_DIR) $(IDIR_PAM)/etc/security
  31. $(CP) $(WRKINST)/etc/security/* $(IDIR_PAM)/etc/security
  32. $(INSTALL_DIR) $(IDIR_PAM)/lib/security
  33. $(CP) $(WRKINST)/lib/libpam*.so* $(IDIR_PAM)/lib
  34. $(CP) $(WRKINST)/lib/security/*.so* $(IDIR_PAM)/lib/security
  35. $(CP) ./files/pam.conf $(IDIR_PAM)/etc
  36. include ${ADK_TOPDIR}/mk/pkg-bottom.mk