derle.sh 1.4 KB

12345678910111213141516171819202122232425
  1. sed -i 's|-m 644 $(LIBRARY)|-m 755 $(LIBRARY)|' libraries/{liblber,libldap,libldap_r}/Makefile.in
  2. sed -i 's|#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"|#define LDAPI_SOCK LDAP_DIRSEP "run" LDAP_DIRSEP "openldap" LDAP_DIRSEP "ldapi"|' include/ldap_defaults.h
  3. sed -i 's|%LOCALSTATEDIR%/run|/run/openldap|' servers/slapd/slapd.{conf,ldif}
  4. sed -i 's|-$(MKDIR) $(DESTDIR)$(localstatedir)/run|-$(MKDIR) $(DESTDIR)/run/openldap|' servers/slapd/Makefile.in
  5. autoconf
  6. ./configure --prefix=/usr \
  7. --libexecdir=/usr/lib \
  8. --sysconfdir=/etc \
  9. --localstatedir=/var/lib/openldap \
  10. --sbindir=/usr/bin \
  11. --enable-dynamic --enable-proctitle --with-tls \
  12. --enable-ipv6 --enable-local --with-cyrus-sasl --with-threads \
  13. --enable-syslog --enable-slapd --enable-crypt --enable-spasswd \
  14. --enable-bdb --enable-hdb --enable-overlays=mod \
  15. --disable-static --with-yielding_select=yes --enable-modules
  16. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  17. make
  18. make -C contrib/slapd-modules/nssov OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
  19. make -C contrib/slapd-modules/autogroup OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
  20. make -C contrib/slapd-modules/lastbind OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap
  21. make -C contrib/slapd-modules/passwd/sha2 OPT="$CFLAGS $CPPFLAGS" prefix=/usr libexecdir=/usr/lib sysconfdir=/etc/openldap