X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpkg%2Fopenldap;h=45a4e04c1452f702a903a74dcbc945a78b6314cd;hb=f3c8db3027d5dc530e1f30c88e0235975211582e;hp=eebb006a0962a8e5fafe2410acbed8f26f72919c;hpb=0fb786eca497edb316e1dfaa4a4ccec2d6b3f694;p=hvlinux.git diff --git a/stage5/pkg/openldap b/stage5/pkg/openldap index eebb006..45a4e04 100644 --- a/stage5/pkg/openldap +++ b/stage5/pkg/openldap @@ -1,51 +1,45 @@ -#!/bin/sh -set -o errexit - -# First argument of this script is the package name. - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list - -# Applying patches (if any) -apply_patches ${1} - -cd ${LFS_TMP}/${1}-build -../${1}/configure \ - --prefix=/usr \ - --libexecdir=/usr/sbin \ - --sysconfdir=/etc \ - --localstatedir=/srv/ldap \ - --disable-debug \ - --enable-dynamic \ - --enable-crypt \ - --enable-modules \ - --enable-rlookups \ - --enable-backends \ - --enable-overlays -make depend -make -make install - -for LINK in lber ldap ldap_r; do - chmod -v 0755 /usr/lib/$(readlink /usr/lib/lib${LINK}.so) -done - -cd ${LFS_TMP}/${1} -install -v -m755 -d /usr/share/doc/${1}/{drafts,guide,rfc} -install -v -m644 doc/drafts/* /usr/share/doc/${1}/drafts -install -v -m644 doc/rfc/* /usr/share/doc/${1}/rfc -cp -v -R doc/guide/* /usr/share/doc/${1}/guide - -# Only the slapd daemon is needed. -# The slurpd daemon is used for coordinating multiple LDAP servers so they -# cooperate in a hierarchy, much like DNS servers. - -# Bootscript -install -v -m740 ${SCRDIR}/bootscripts/openldap /etc/rc.d/init.d - -# script-name start stop -bootscript_add_rc3 openldap 60 30 - -exit $? +#!/bin/bash + +hvconfig_pre() +{ + CONFIGURE_OPTS=" \ + ${CONFIGURE_OPTS} \ + --libexecdir=/usr/sbin \ + --sysconfdir=/etc \ + --localstatedir=/srv/ldap \ + --disable-debug \ + --enable-dynamic \ + --enable-crypt \ + --enable-modules \ + --enable-rlookups \ + --enable-backends \ + --enable-overlays" +} + +hvconfig_post() +{ + make depend +} + +hvbuild_post() +{ + for LINK in lber ldap ldap_r; do + chmod -v 0755 /usr/lib/$(readlink /usr/lib/lib${LINK}.so) + done + + cd ${LFS_TMP}/${PACKAGE} + install -v -m755 -d /usr/share/doc/${PACKAGE}/{drafts,guide,rfc} + install -v -m644 doc/drafts/* /usr/share/doc/${PACKAGE}/drafts + install -v -m644 doc/rfc/* /usr/share/doc/${PACKAGE}/rfc + cp -v -R doc/guide/* /usr/share/doc/${PACKAGE}/guide + + # Only the slapd daemon is needed. + # The slurpd daemon is used for coordinating multiple LDAP servers so they + # cooperate in a hierarchy, much like DNS servers. + + # Bootscript + install -v -m740 ${SCRDIR}/bootscripts/openldap /etc/rc.d/init.d + + # script-name start stop + bootscript_add_rc3 openldap 60 30 +}