Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Compiling linux-pam for buildroot

By: a guest on May 16th, 2012  |  syntax: Make  |  size: 1.25 KB  |  hits: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ############################################
  2. #
  3. # linux-pam
  4. #
  5. ############################################
  6.  
  7.  
  8. LINUX_PAM_VERSION = 1.1.4
  9. LINUX_PAM_SOURCE = Linux-PAM-$(LINUX_PAM_VERSION).tar.bz2
  10. LINUX_PAM_SITE = http://linux-pam.org/library/
  11. LINUX_PAM_INSTALL_STAGING = YES
  12. LINUX_PAM_INSTALL_TARGET = YES
  13. LINUX_PAM_CONF_OPT = --disable-prelude --disable-isadir --disable-nis --disable-regenerate-docu
  14. LINUX_PAM_CONF_OPT += --enable-securedir=/lib/security --libdir=/lib
  15. LINUX_PAM_DEPENDENCIES = gettext libintl flex
  16.  
  17. define LINUX_PAM_BUILD_CMDS
  18.         $(MAKE) CC="$(TARGET_CC) -lintl -lfl" LD="$(TARGET_LD)" -C $(@D) all
  19. endef
  20.  
  21. define LINUX_PAM_DISABLE_INNETGR
  22.         echo >>$(@D)/config.h
  23.         echo "#undef HAVE_RUSEROK">>$(@D)/config.h
  24.         echo "#define HAVE_RUSEROK_AF">>$(@D)/config.h
  25.         echo "#define ruserok_af(a, b, c, d, e) (-1)" >>$(@D)/config.h
  26.         echo "#undef innetgr">>$(@D)/config.h
  27.         echo "#define innetgr(a, b, c, d) 0" >>$(@D)/config.h
  28.         echo "all:" >$(@D)/doc/Makefile
  29.         echo "" >>$(@D)/doc/Makefile
  30.         echo "install:" >>$(@D)/doc/Makefile
  31.         echo "" >>$(@D)/doc/Makefile
  32. endef
  33.  
  34. LINUX_PAM_POST_CONFIGURE_HOOKS += LINUX_PAM_DISABLE_INNETGR
  35.  
  36. $(eval $(call AUTOTARGETS,package,linux-pam))