Code

- Added patched version of dh-make-gosa to correctly put homepage field in package
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Aug 2008 15:23:39 +0000 (15:23 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Aug 2008 15:23:39 +0000 (15:23 +0000)
- Added field to several plugin for final test

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12112 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/dh-make-gosa
gosa-plugins/addressbook/plugin.dsc
gosa-plugins/apache2/plugin.dsc
gosa-plugins/connectivity/plugin.dsc
gosa-plugins/dak/plugin.dsc
gosa-plugins/dfs/plugin.dsc
gosa-plugins/dhcp/plugin.dsc

index f3813ae90e6da2f8cca7d09366824d50c8e97cb4..b78b143d177e2824aafa4fc4837c4e52c7c598e4 100755 (executable)
@@ -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: <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
index b904075b71400d3739b4ddce4f1e04317e907cbd..423f1f183c2de3b35c4f5bd43abef647ba05229e 100644 (file)
@@ -3,3 +3,4 @@ name = addressbook
 description = "Simple addressbook addon"
 version = 2.6
 author = "Cajus Pollmeier <pollmeier@gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
index 81365b71aac86ecec2c212a62997870ec8407220..93fc48f918670a73eb13a4dc5f79727997be8e22 100644 (file)
@@ -4,3 +4,4 @@ description = "Apache2 vhost management module"
 depends = systems
 version = 2.6
 author = "Cajus Pollmeier <pollmeier@gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
index e7e822f3c7e652257aace9aad4e3b711ab7a6f2f..fb6edbff9ac06b026199ccf27ad68ab77bc150b4 100644 (file)
@@ -3,3 +3,4 @@ name = connectivity
 description = "Connectivity base plugin - pool for really small plugins"
 version = 2.6
 author = "Cajus Pollmeier <pollmeier@gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
index 1ecaad971a69656054817e792da112f6e14322eb..41386c69a03a37d99e7039cf2e36ce670e4df175 100644 (file)
@@ -4,3 +4,4 @@ description = "Debian archive management infrastructure plugin"
 version = 2.6
 author = "Cajus Pollmeier <pollmeier@gonicus.de>"
 depends = fai
+homepage = https://oss.gonicus.de/labs/gosa/
index 653ad1fff18f0606467b46e6dc5d4cb376b00a79..79fe44431b811020f4ff4bc585480801c6990130 100644 (file)
@@ -3,3 +3,4 @@ name = dfs
 description = "DFS share manager"
 version = 2.6
 author = "Cajus Pollmeier <pollmeier@gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
index 058f23b54c6a0e1c81bc9e605f1a2f94c4ca5188..aa2e2e395f0c5ac08397ad822aaf949f510fbcd6 100644 (file)
@@ -3,4 +3,5 @@ name = dhcp
 description = "DHCP service management plugin"
 version = 2.6
 author = "Cajus Pollmeier <pollmeier@gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
 depends = systems