X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fdh-make-gosa;h=b78b143d177e2824aafa4fc4837c4e52c7c598e4;hb=20cd6ad4cb9f1960fc5ee5346963713280f8d1f2;hp=cdb53def3d5e835b6f6654c7264c099549fe2d6d;hpb=caf6b1ffc4e28c906750896f45f075ca55033118;p=gosa.git diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa index cdb53def3..b78b143d1 100755 --- a/gosa-core/dh-make-gosa +++ b/gosa-core/dh-make-gosa @@ -19,7 +19,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA usage() { - echo "Usage: ${0##*/} [--download] [--section section name] [-b|--branch branch] [-e|--email mail] [--depends] plugin-dir|plugin.tar.gz" >&2 + echo "Usage: ${0##*/} [--section section name] [-b|--branch branch] [-e|--email mail] [--depends] plugin-dir|plugin.tar.gz" >&2 exit 1 } @@ -39,6 +39,7 @@ load_dsc() { 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 @@ -154,6 +155,7 @@ echo "Depends: $PL_DEPENDS" 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 @@ -206,6 +208,8 @@ sed -i '/^Upstream/,/^$/d' debian/copyright # 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: #Homepage: $PL_HOMEPAGE#g" debian/control + if [ "$PL_DEPENDS" ]; then sed -i "s/^Depends: .*$/Depends: gosa, $PL_DEPENDS/g" debian/control else