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.

33 lines
1.1 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../smbldap-tools/smbldap-tools.conf
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. pkgprefix -t samba
  16. if [ "$prefix_auto" = 1 ]; then
  17. prefix=$( pkgprefix samba )
  18. set_confopt
  19. fi
  20. var_append makeinstopt ' ' "prefix=$root/$prefix sysconfdir=$root/$sysconfdir"
  21. smbldap_patch() {
  22. sed -i \
  23. -e "s,^my \$smbldap_conf=.*,my \$smbldap_conf=\"$sysconfdir/smbldap-tools/smbldap.conf\";," \
  24. -e "s,^my \$smbldap_bind_conf=.*,my \$smbldap_bind_conf=\"$sysconfdir/smbldap-tools/smbldap_bind.conf\";," \
  25. -e "s,^my \$samba_conf=.*,my \$samba_conf=\"$( pkgprefix sysconfdir samba )/smb.conf\";," \
  26. smbldap_tools.pm
  27. }
  28. hook_add postpatch 5 'smbldap_patch'