diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa
index 234580c0865b13bab11ccfacf34191d3538fabae..4d9dfb705e516391aa677630744114fe01babf1e 100755 (executable)
--- a/gosa-core/dh-make-gosa
+++ b/gosa-core/dh-make-gosa
#!/bin/bash
usage() {
- echo "Usage: ${0##*/} [--download] [-b|--branch branch] [-e|--email mail] [--depends] plugin-dir|plugin.tar.gz" >&2
+ echo "Usage: ${0##*/} [--download] [--section section name] [-b|--branch branch] [-e|--email mail] [--depends] plugin-dir|plugin.tar.gz" >&2
exit 1
}
}
-TEMP=`getopt -o e:r: --long download,release:,email:,depends: -n 'dh-make-gosa' -- "$@"`
+TEMP=`getopt -o e:r: --long download,release:,email:,depends:,section: -n 'dh-make-gosa' -- "$@"`
if [ $? != 0 ] ; then
echo "Error: cannot get command line information" >&2
exit 1
RELEASE=trunk
DOWNLOAD=
DEPENDS=
+SECTION=web
DEST=
while true; do
case "$1" in
--depends) DEPENDS="$2"
shift 2
;;
+ --section) SECTION="$2"
+ shift 2
+ ;;
--dest) DEST=$2/
shift 2
;;
sed -i '/^Upstream/,/^$/d' debian/copyright
# Adapt control
-sed -i 's/^Section: unknown/Section: web/g' debian/control
+sed -i "s#^Section: unknown#Section: $SECTION#g" debian/control
sed -i 's/^Architecture: any/Architecture: all/g' debian/control
if [ "$PL_DEPENDS" ]; then
sed -i "s/^Depends: .*$/Depends: gosa, $PL_DEPENDS/g" debian/control