From 00e9730a26782203ec6ca03db9354b7a0fdbc501 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 28 Nov 2008 13:22:04 +0000 Subject: [PATCH] Made schema packages be built git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13078 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/dh-make-gosa | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa index d78a58d77..2c6fceb39 100755 --- a/gosa-core/dh-make-gosa +++ b/gosa-core/dh-make-gosa @@ -234,6 +234,25 @@ sed -i "/%DESCRIPTION%/r $dsc" debian/control sed -i "/%DESCRIPTION%/d" debian/control rm $dsc +# Do we need to generate another package for schema files? +if ls contrib/*schema &> /dev/null; then + echo etc/ldap/schema/gosa > debian/gosa-plugin-${PL_NAME}-schema.dirs + ls -1 contrib/*schema | sed 's%$% /etc/ldap/schema/gosa%g' > debian/gosa-plugin-${PL_NAME}-schema.install + + cat <<-EOF >> debian/control + + Package: gosa-plugin-${PL_NAME}-schema + Architecture: all + Recommends: slapd + Description: LDAP schema for GOsa plugin ${PL_NAME} + This package includes the LDAP schema needed by the GOsa + ${PL_NAME} plugin. + . + GOsa is a combination of system-administrator and end-user web + interface, designed to handle LDAP based setups. + EOF +fi + # Create patch directory [ ! -d debian/patches ] && mkdir debian/patches -- 2.30.2