OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.5 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../pam_ldap/pam_ldap-178-autotools.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -urN pam_ldap-180.orig/configure.in pam_ldap-180/configure.in
  17. --- pam_ldap-180.orig/configure.in 2005-08-18 00:35:13.000000000 +0200
  18. +++ pam_ldap-180/configure.in 2005-09-06 08:41:23.192126000 +0200
  19. @@ -13,8 +13,17 @@
  20. AC_ARG_ENABLE(ssl, [ --disable-ssl disable SSL/TSL support])
  21. AC_ARG_WITH(ldap-lib, [ --with-ldap-lib=type select ldap library [auto|netscape5|netscape4|netscape3|umich|openldap]])
  22. AC_ARG_WITH(ldap-dir, [ --with-ldap-dir=DIR base directory of ldap SDK])
  23. -AC_ARG_WITH(ldap-conf-file, [ --with-ldap-conf-file path to LDAP configuration file], [AC_DEFINE_UNQUOTED(PAM_LDAP_PATH_CONF, "$with_ldap_conf_file")])
  24. -AC_ARG_WITH(ldap-secret-file, [ --with-ldap-secret-file path to LDAP root secret file], [AC_DEFINE_UNQUOTED(PAM_LDAP_PATH_ROOTPASSWD, "$with_ldap_secret_file")])
  25. +AC_ARG_WITH(ldap-conf-file, [ --with-ldap-conf-file path to LDAP configuration file],
  26. + [ PAM_LDAP_PATH_CONF=$with_ldap_conf_file ],
  27. + [ PAM_LDAP_PATH_CONF="/etc/ldap.conf" ])
  28. +AC_ARG_WITH(ldap-secret-file, [ --with-ldap-secret-file path to LDAP root secret file],
  29. + [ PAM_LDAP_PATH_ROOTPASSWD="$with_ldap_secret_file" ],
  30. + [ PAM_LDAP_PATH_ROOTPASSWD="/etc/ldap.secret" ])
  31. +
  32. +AC_DEFINE_UNQUOTED(PAM_LDAP_PATH_CONF, "$PAM_LDAP_PATH_CONF")
  33. +AC_DEFINE_UNQUOTED(PAM_LDAP_PATH_ROOTPASSWD, "$PAM_LDAP_PATH_ROOTPASSWD")
  34. +AC_SUBST(PAM_LDAP_PATH_CONF)
  35. +AC_SUBST(PAM_LDAP_PATH_ROOTPASSWD)
  36. if test "$ac_cv_prog_gcc" = "yes"; then CFLAGS="$CFLAGS -Wall -fPIC"; fi
  37. diff -urN pam_ldap-180.orig/Makefile.am pam_ldap-180/Makefile.am
  38. --- pam_ldap-180.orig/Makefile.am 2005-08-18 00:35:13.000000000 +0200
  39. +++ pam_ldap-180/Makefile.am 2005-09-06 08:43:04.938484750 +0200
  40. @@ -1,7 +1,13 @@
  41. -noinst_PROGRAMS = pam_ldap.so
  42. +noinst_PROGRAMS = pam_ldap.so chfn chsh
  43. EXTRA_DIST = COPYING.LIB CVSVersionInfo.txt ChangeLog README \
  44. ldap.conf pam.conf pam_ldap.spec pam.d
  45. +PAM_LDAP_PATH_CONF = @PAM_LDAP_PATH_CONF@
  46. +PAM_LDAP_PATH_ROOTPASSWD = @PAM_LDAP_PATH_ROOTPASSWD@
  47. +
  48. +chfn_SOURCES = chfn.in
  49. +chsh_SOURCES = chsh.in
  50. +
  51. pam_ldap_so_SOURCES = pam_ldap.c pam_ldap.h md5.c md5.h
  52. pam_ldap_so_LDFLAGS = @pam_ldap_so_LDFLAGS@
  53. @@ -35,11 +41,20 @@
  54. install-data-local:
  55. @$(NORMAL_INSTALL)
  56. - @if test ! -f $(DESTDIR)$(sysconfdir)/ldap.conf; then \
  57. - $(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
  58. - $(INSTALL_DATA) -o root -g root $(srcdir)/ldap.conf $(DESTDIR)$(sysconfdir)/ldap.conf; \
  59. + @if test ! -f $(DESTDIR)$(PAM_LDAP_PATH_CONF); then \
  60. + $(mkinstalldirs) $(DESTDIR)$(dir $(PAM_LDAP_PATH_CONF)); \
  61. + $(INSTALL_DATA) -o root -g root $(srcdir)/ldap.conf $(DESTDIR)$(PAM_LDAP_PATH_CONF); \
  62. fi
  63. uninstall-local:
  64. @$(NORMAL_UNINSTALL)
  65. +
  66. +chfn$(EXEEXT): chfn.in
  67. +
  68. +chsh$(EXEEXT): chsh.in
  69. +
  70. +%$(EXEEXT):: %.in
  71. + sed -e "s:/etc/ldap.conf:$(PAM_LDAP_PATH_CONF):" \
  72. + -e "s:/etc/ldap.secret:$(PAM_LDAP_PATH_ROOTPASSWD):" < $< > $@
  73. +