DIRS= static
EDITOR_DIRS=tiny_mce
+EDITORDIR=@editordir@
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 \
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)
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 )
-#! /bin/sh
+#! /bin/sh
# postrm.skeleton
# Skeleton maintainer script showing all the possible cases.
# Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
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
--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