summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b26774)
raw | patch | inline | side by side (parent: 4b26774)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Jun 2008 12:57:24 +0000 (12:57 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Jun 2008 12:57:24 +0000 (12:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11173 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/contrib/make-gosa-package | patch | blob | history | |
gosa-core/dh-make-gosa | patch | blob | history |
index 51199ecea3eafd726c4705c3b2991acf47789a78..fc3e36aeadef7a9314bb5891edd376ea2b74ac49 100755 (executable)
mv "gosa-${BRANCH}" "gosa-${GOSA_VER}"
mv "gosa-si-${BRANCH}" "gosa-si-${GOSA_VER}"
-echo "Creating original sources '$gosa-{GOSA_VER}'..."
+echo "Creating original sources 'gosa-${GOSA_VER}'..."
tar -c -f "gosa_${GOSA_VER}.orig.tar" "${GOSA_DIR}"
tar -c -f "gosa-si_${GOSA_VER}.orig.tar" "${GOSA_SI_DIR}"
mv "gosa-plugins-${BRANCH}/$plugin" .
echo "Debianizing plugin $plugin"
- yes | dh-make-gosa $plugin
+ yes | dh-make-gosa --section web $plugin
rm -rf "$plugin"
echo "Packing original sources 'gosa-plugin-$plugin-${GOSA_VER}'..."
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