diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa
index f3813ae90e6da2f8cca7d09366824d50c8e97cb4..d78a58d77c394ef03f0e313fbd914461777ce786 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
done\
\
# Update gosa\
-/usr/sbin/update-gosa\
+update-gosa\
\
# Finally restart servers\
for server in $servers; do\