summaryrefslogtreecommitdiff
path: root/package/openldap
diff options
context:
space:
mode:
Diffstat (limited to 'package/openldap')
-rw-r--r--package/openldap/Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/package/openldap/Makefile b/package/openldap/Makefile
index c543380d3..97ed142ab 100644
--- a/package/openldap/Makefile
+++ b/package/openldap/Makefile
@@ -15,7 +15,7 @@ PKG_URL:= http://www.openldap.org/
PKG_SITES:= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
PKG_NEED_CXX:= 1
-PKG_SUBPKGS:= LIBOPENLDAP OPENLDAP_UTILS OPENLDAP_SLAPD
+PKG_SUBPKGS:= LIBOPENLDAP LIBOPENLDAP_DEV OPENLDAP_UTILS OPENLDAP_SLAPD
PKGSD_OPENLDAP_UTILS:= OpenLDAP utilities
PKGSS_OPENLDAP_UTILS:= libopenldap
PKGSC_OPENLDAP_UTILS:= net/misc
@@ -31,6 +31,7 @@ PKGFD_WITH_IPV6:= enable IPv6 support
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,LIBOPENLDAP_DEV,libopenldap-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_UTILS},${PKGSD_OPENLDAP_UTILS},${PKGSC_OPENLDAP_UTILS}))
$(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENLDAP_SLAPD},${PKGSD_OPENLDAP_SLAPD},${PKGSC_OPENLDAP_SLAPD}))
@@ -78,18 +79,27 @@ pre-configure:
${MAKE} -C ${WRKBUILD}/libraries/liblutil clean
${MAKE} -C ${WRKBUILD}/libraries/liblunicode clean
-post-install:
+libopenldap-install:
${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/etc/openldap
${CP} ${WRKINST}/etc/openldap/ldap.conf \
- ${IDIR_LIBOPENLDAP}/etc/openldap/
- ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib/
+ ${IDIR_LIBOPENLDAP}/etc/openldap
+ ${INSTALL_DIR} ${IDIR_LIBOPENLDAP}/usr/lib
${CP} ${WRKINST}/usr/lib/lib{lber,ldap}*.so* \
- ${IDIR_LIBOPENLDAP}/usr/lib/
+ ${IDIR_LIBOPENLDAP}/usr/lib
+
+libopenldap-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBOPENLDAP_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* \
+ ${IDIR_LIBOPENLDAP_DEV}/usr/include
+
+openldap-utils-install:
${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
+
+openldap-slapd-install:
${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
- ${CP} ${WRKINST}/usr/sbin/slap* ${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