* added central location for tiny_mce
authorWilfried Göesgens <willi@citadel.org>
Wed, 22 Mar 2006 23:44:44 +0000 (23:44 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 22 Mar 2006 23:44:44 +0000 (23:44 +0000)
* added directory calculation routines
* added Documentation for packaging staff.

webcit/Makefile.am
webcit/README
webcit/configure.in
webcit/debian/citadel-webcit.postrm
webcit/debian/rules

index 8f3d13ad5c245c42251fb9da5a3003bcbbe309d5..61fc5f146a39d4609443bca7f1af08776f57e263 100644 (file)
@@ -12,6 +12,7 @@ DISTFILES=ABOUT_NLS
 
 DIRS= static
 EDITOR_DIRS=tiny_mce
+EDITORDIR=@editordir@
 
 
 
@@ -31,14 +32,14 @@ install-data-local:
                        done \
                done
 
-               export STATIC_DIR=@editor@; \
+               export EDITOR_DIR=@editordir@; \
                for dir in $(EDITOR_DIRS); do \
-                       $(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$dir; \
+                       $(mkinstalldirs) $(DESTDIR)/$$EDITOR_DIR/$$dir; \
                        for subdir in `find $$dir -type d |grep -v .svn`; do \
-                               $(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$subdir; \
+                               $(mkinstalldirs) $(DESTDIR)/$$EDITOR_DIR/$$subdir; \
                                        for file in $(srcdir)/$$subdir/*; do \
                                                if test -f "$$file" ; then \
-                                                       $(INSTALL_DATA) $$file $(DESTDIR)$$STATIC_DIR/$$subdir; \
+                                                       $(INSTALL_DATA) $$file $(DESTDIR)$$EDITOR_DIR/$$subdir; \
                                                fi \
                                        done \
                        done \
index 11f3b635010bdd9fc9a8d727700862e1f1a4c1c6..55b2d4a0a62d9e9861c69544aac4747d5b39a760 100644 (file)
@@ -280,8 +280,7 @@ and enable the user to copy them over to another dir (like /var/lib/citadel/www)
 they're accessed at runtime. (The debian instatll scripts provided with this package 
 do this to preserve user changes to the template system, see debian/citadel-webcit.postinstall)
 
-[todo]
 Further there are possibilities to load the tiny_mce editor into a system uniq location. Webcit 
 uses this standard component compose its messages for mails and postings. Several webcit installations
 that may differ in design but use the same tiny_mce (which is the default that webcit ships with)
-
+(set --with-editordir for that, it defaults to the dir the templates go)
index b937a0c913b1a7e1f6458bc880ac723a171375e8..d555e153423b3c0c7678582184244ce854633d84 100644 (file)
@@ -406,11 +406,11 @@ AC_ARG_WITH(staticrundir, [  --with-staticrundir=DIR          where to search da
 AC_DEFINE_UNQUOTED([DATADIR],["$staticrundir"],where should we make our root?)
 
 
-AC_ARG_WITH(editor, [  --with-editor=DIR          where to search the editor at runtime],
+AC_ARG_WITH(editordir, [  --with-editordir=DIR          where to search the editor at runtime],
                                                  [ editordir=$withval ],[ editordir=$staticrundir ] )
+AC_SUBST(editordir)
 AC_DEFINE_UNQUOTED([EDITORDIR],["$editordir"],where find the editor (tiny_mce)?)
 
-AC_SUBST(editor)
 
 
 AC_OUTPUT(Makefile src/Makefile po/Makefile.in   )
index 63e9d9fc7c804bd3431a8b0631e2cbddc576fac9..3eb321bff7c181c5656c40e66ea197d166fb4c03 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/sh 
 # postrm.skeleton
 # Skeleton maintainer script showing all the possible cases.
 # Written by Charles Briscoe-Smith, March-June 1998.  Public Domain.
@@ -45,10 +45,11 @@ case "$1" in
        fi
        #rmdir /var/lib/citadel/www/static
        echo "/var/lib/citadel/www/keys not removed. "
-       db_purge 'citadel/WebcitHttpsPort'
-       db_purge 'citadel/WebcitHttpPort'
-       db_purge 'citade/WebcitInstallnote'
-       ### TODO: remove citadel from inittab!
+       db_purge
+### 'citadel/WebcitHttpsPort'
+###    db_purge 'citadel/WebcitHttpPort'
+###    db_purge 'citade/WebcitInstallnote'
+###    ### TODO: remove citadel from inittab!
     ;;
   disappear)
     if test "$2" != overwriter; then
index 2975a9d83df729d9bea779f35414a219973638e0..10d6d8fb74557ae5214ef61438a7c5b6d74a67d4 100755 (executable)
@@ -30,12 +30,12 @@ configure-stamp:
                --prefix=/usr \
                --with-staticdir=/usr/share/doc/citadel-webcit/examples \
                --with-staticrundir=/var/lib/citadel/www/ \
-               --with-editor=/usr/share/tiny_mce/ \
+               --with-editordir=/usr/share/ \
                --with-rundir=/var/run/citadel \
                --with-ical --with-db --with-ldap --with-zlib --with-ssl --with-libiconf --with-newt --with-included-gettext
 
        touch configure-stamp
-
+#we don't do /usr/share/tiny_mce, because of make brings one with it.
 
 build: build-stamp