diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa
index f3813ae90e6da2f8cca7d09366824d50c8e97cb4..2c6fceb39e0d2cf31d97cf7966cf081ee89ccbb3 100755 (executable)
--- a/gosa-core/dh-make-gosa
+++ b/gosa-core/dh-make-gosa
PL_DESCRIPTION=$(sed -n 's/"//g;s/^description\s*=\s*\(.*\)$/\1/p' "$1")
PL_AUTHOR=$(sed -n 's/"//g;s/^author\s*=\s*\([^<]*\).*$/\1/p' "$1")
PL_MAIL=$(sed -n 's/"//g;s/^author\s*=[^<].*<\([^>]*\).*$/\1/p' "$1")
+ PL_HOMEPAGE=$(sed -n 's/"//g;s/^homepage\s*=\s*\(.*\)$/\1/p' "$1")
else
echo "Error: cannot find description file" >&2
exit 1
echo "Conflicts: $PL_CONFLICTS"
echo "Author name: $PL_AUTHOR"
echo "Author email: $PL_MAIL"
+echo "Homepage: $PL_HOMEPAGE"
echo
read -s -n 1 -p "Do you want to continue? (y/n)" ans; echo
[ "$ans" != "y" ] && exit 0
# Adapt control
sed -i "s#^Section: unknown#Section: $SECTION#g" debian/control
sed -i 's/^Architecture: any/Architecture: all/g' debian/control
+sed -i "s#^Homepage: <insert the upstream URL, if relevant>#Homepage: $PL_HOMEPAGE#g" debian/control
+
if [ "$PL_DEPENDS" ]; then
sed -i "s/^Depends: .*$/Depends: gosa, $PL_DEPENDS/g" debian/control
else
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
done\
\
# Update gosa\
-/usr/sbin/update-gosa\
+update-gosa\
\
# Finally restart servers\
for server in $servers; do\