summaryrefslogtreecommitdiff
path: root/package/openldap/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 22:59:29 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 22:59:29 +0200
commitfb6cd4f4dff71a803ba9db7751ade84fa6eac3a8 (patch)
tree379626b7b419ac1643131a7b8ac07e9fb87b9f80 /package/openldap/Makefile
parent5157a34410fe9eff94d5de7100cbc3659d6c4fcb (diff)
parentba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (diff)
Merge branch 'master' of ssh://openadk.org/git/openadk
resolve conflicts Conflicts: mk/pkg-bottom.mk package/ctorrent/Makefile package/gcc/Makefile package/gmp/Makefile package/id3lib/Makefile package/libelf/Makefile package/libnl/patches/patch-include_netlink-local_h package/mpd/Makefile package/nmap/Makefile package/rrs/Makefile package/weechat/Makefile scripts/rstrip.sh target/Config.in
Diffstat (limited to 'package/openldap/Makefile')
-rw-r--r--package/openldap/Makefile31
1 files changed, 20 insertions, 11 deletions
diff --git a/package/openldap/Makefile b/package/openldap/Makefile
index ca3defa4a..a42da2b16 100644
--- a/package/openldap/Makefile
+++ b/package/openldap/Makefile
@@ -9,12 +9,30 @@ PKG_NAME:= openldap
PKG_VERSION:= 2.4.16
PKG_RELEASE:= 1
PKG_MD5SUM:= ed5b86e9d2b372d10edfe3bb59fee165
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
-MASTER_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
+PKG_DESCR:= OpenLDAP client libraries
+PKG_SECTION:= libs
+PKG_DEPENDS:= libopenssl libsasl2
+PKG_URL:= http://www.openldap.org
+PKG_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/ \
ftp://ftp.plig.org/pub/OpenLDAP/openldap-release/
+PKG_DESCR_1:= OpenLDAP utilities
+PKG_DEPENDS_1:= libopenldap
+PKG_SECTION_1:= net
+PKG_DESCR_2:= OpenLDAP server daemon
+PKG_DEPENDS_2:= libopenldap
+PKG_SECTION_2:= net
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION_1}))
+$(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_2},${PKG_DESCR_2},${PKG_SECTION_2}))
+
PKG_CONFIGURE_OPTIONS+= \
--enable-slapd \
--enable-bdb \
@@ -32,12 +50,6 @@ PKG_CONFIGURE_OPTIONS+= \
--with-tls \
--with-yielding_select="yes" \
-include ${TOPDIR}/mk/package.mk
-
-$(eval $(call PKG_template,LIBOPENLDAP,libopenldap,${PKG_VERSION}-${PKG_RELEASE}))
-$(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE}))
-$(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE}))
-
pre-configure:
(cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
CPPFLAGS=-D_GNU_SOURCE ./configure \
@@ -70,13 +82,10 @@ post-install:
${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
- ${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/init.d
${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin/
${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/core.schema \
${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
- ${INSTALL_DATA} ./files/slapd.init \
- ${IDIR_OPENLDAP_SLAPD}/etc/init.d/slapd
include ${TOPDIR}/mk/pkg-bottom.mk