Code

Made schema packages be built
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Nov 2008 13:22:04 +0000 (13:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Nov 2008 13:22:04 +0000 (13:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13078 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/dh-make-gosa

index d78a58d77c394ef03f0e313fbd914461777ce786..2c6fceb39e0d2cf31d97cf7966cf081ee89ccbb3 100755 (executable)
@@ -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