From: cajus Date: Fri, 28 Nov 2008 13:22:04 +0000 (+0000) Subject: Made schema packages be built X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=00e9730a26782203ec6ca03db9354b7a0fdbc501;p=gosa.git Made schema packages be built git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13078 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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