* added some missing depends
authorWilfried Göesgens <willi@citadel.org>
Thu, 7 Jun 2007 09:59:42 +0000 (09:59 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 7 Jun 2007 09:59:42 +0000 (09:59 +0000)
* evaluate wether we are in apache mode, and append -f

webcit/debian/citadel-webcit.config
webcit/debian/control
webcit/debian/webcit.init

index c8c58bd50145b60c066c89c481a36bd2b80dc146..ab2fe81e53c1d8be5614baee5251d0fa8246cc9d 100755 (executable)
@@ -70,11 +70,17 @@ if test "$DO_CONFIGURE" = "yes"; then
        
     done
     db_go
-    db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
     db_get citadel/WebcitHttpPort && WEBCIT_HTTP_PORT="$RET"
     db_get citadel/WebcitHttpsPort && WEBCIT_HTTPS_PORT="$RET"
     db_get citadel/WebcitBindIp && WEBCIT_LISTEN_IP="$RET"
     
+    db_get ciatdel/WebcitWebserver &&WWWTYPE="$RET"
+    if test "$WWWTYPE" = "Internal"; then
+       WEBCIT_APACHEFLAG=" "
+    else
+       WEBCIT_APACHEFLAG="-f"
+    fi
+
     set |grep WEBCIT |sed "s;^;export ;;" >/etc/default/webcit
 fi
 
index 0a2b162caa46a6afe3f17f539263990293d4a9db..e108f82694d3faa5764d1695cbc61100f639c5d8 100644 (file)
@@ -2,12 +2,12 @@ Source: webcit
 Section: web
 Priority: optional
 Maintainer: Wilfried Goesgens <w.goesgens@outgesourced.org>
-Build-Depends: debhelper (>= 4), po-debconf, libical-dev, gettext
+Build-Depends: debhelper (>= 4), po-debconf, libical-dev, gettext, locales, localepurge
 Standards-Version: 3.7.2
 
 Package: citadel-webcit
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common, openssl, locales, localepurge
 Suggests: citadel-server, apache2 | apache
 Description: web-based frontend to Citadel groupware server
  WebCit is a web-based, AJAX-enabled frontend to the Citadel groupware system.
index 3e3521ba41f758cf7cfee67f7757c4f7e87a7590..9f91937fa6dc5f783fffd5e0fc5cefd12a3b0fae 100644 (file)
@@ -61,6 +61,7 @@ do_start()
     #1: -p flag
     #1: port
     #2: ssl
+    #4: -f flag for apache
 
         # for ubuntu: check our volatile dirs.
         if test ! -d $RUNDIR; then
@@ -81,7 +82,7 @@ do_start()
        #   1 if daemon was already running
        #   2 if daemon could not be started
        if $DAEMON -D$PIDFILE.$1 \
-           -p$@ -t$LOGDIR/access.${1}.log ; then
+           -p$@ -t$LOGDIR/access.${1}.log $4; then
            return 0
        else
            return 2
@@ -113,8 +114,8 @@ case "$1" in
            echo "Starting $DESC" "$NAME"
        fi
 
-       do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT
-       do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s
+       do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT "" "$WEBCIT_APACHEFLAG"
+       do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s  "$WEBCIT_APACHEFLAG"
 
        if test -n "$MODERN"; then
            case "$?" in