* busting the prototype package isn't that easy as its swapping places.
authorWilfried Göesgens <willi@citadel.org>
Wed, 23 Apr 2008 06:25:21 +0000 (06:25 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 23 Apr 2008 06:25:21 +0000 (06:25 +0000)
webcit/debian/citadel-webcit.postinst
webcit/debian/control

index 63d6bf9abeb1d43bfb8830f95ca08c69d9fbb8a9..e836598d5014a100d1d394cfddcde1b0344caf9e 100644 (file)
@@ -22,7 +22,11 @@ case "$1" in
        fi
        #DEBHELPER#
        if test ! -L /usr/share/citadel-webcit/static/; then
-           ln -sf /usr/share/prototypejs/prototype.js /usr/share/citadel-webcit/static/        
+           if test -d /usr/share/prototypejs; then 
+               ln -sf /usr/share/prototypejs/prototype.js /usr/share/citadel-webcit/static/    
+           else
+               ln -sf /usr/share/javascript/prototype/prototype.js /usr/share/citadel-webcit/static/   
+           fi
        fi
 # update the webserver, if needed
        case "$WWWTYPE" in
index 2cd42d627fd679b60d7781268d379c1543169794..04e26e504b49578769b91e944ea4bd8588f2e2ce 100644 (file)
@@ -8,7 +8,7 @@ Standards-Version: 3.7.2
 
 Package: citadel-webcit
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common, openssl, locales, prototypejs
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, tinymce, citadel-common, openssl, locales, libjs-prototype
 Suggests: citadel-server, apache2 | apache, localepurge, gnome-icon-theme
 Recommends: shared-mime-info
 Description: web-based frontend to Citadel groupware server