diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa
index 9663cfd475dbc969e7a37da536fef648659e6a60..0e92818eb2a6c1af870038c33a44be4d1164b395 100755 (executable)
--- a/gosa-core/dh-make-gosa
+++ b/gosa-core/dh-make-gosa
PL_NAME=$(sed -n 's/"//g;s/^name\s*=\s*\(.*\)$/\1/p' "$1")
PL_VERSION=$(sed -n 's/"//g;s/^version\s*=\s*\(.*\)$/\1/p' "$1")
TDEPENDS=$(sed -n 's/"//g;s/^depends\s*=\s*\(.*\)$/\1/p' "$1")
+ TDEPENDS=$(echo $TDEPENDS | tr , " ")
for dep in $TDEPENDS; do
PL_DEPENDS="gosa-plugin-$dep, $PL_DEPENDS"
done
if [ -d contrib ]; then
echo "contrib /usr/share/doc/gosa-plugin-$PL_NAME" >> debian/install
fi
+if [ -d etc ]; then
+ echo "etc/* /etc/gosa" >> debian/install
+fi
if [ -d html ]; then
for i in html/*; do
echo "$i /usr/share/gosa/html/plugins/$PL_NAME" >> debian/install
sed -i 's/^Depends: .*$/Depends: gosa/g' debian/control
fi
if [ "$PL_CONFLICTS" ]; then
- sed "11Conflicts: $PL_CONFLICTS" debian/control
+ sed -i "11iConflicts: $PL_CONFLICTS" debian/control
fi
+sed -i "12iBreaks: gosa (<2.6)" debian/control
sed -i 's/^\(Build-Depends: .*\)$/\1, dpatch/g' debian/control
sed -i "s/^Description: .*$/Description: $PL_NAME plugin for GOsa/g" debian/control
sed -i "s/^ <.*$/ %DESCRIPTION%/g" debian/control