* added autogen.sh, forgot that.
install-data-local:
@$(NORMAL_INSTALL); \
- if test -n "@STATIC_DIR@" ; then \
- export STATIC_DIR=@STATIC_DIR@; \
- else \
- export STATIC_DIR=$(prefix); \
- fi; \
+ export STATIC_DIR=@staticdir@; \
for dir in $(DIRS); do \
$(mkinstalldirs) $(DESTDIR)/$$STATIC_DIR/$$dir; \
for subdir in `find $$dir -type d |grep -v .svn`; do \
--- /dev/null
+#!/bin/bash
+# tool to generate the automaticaly provided stuff
+intltoolize --force
+autoreconf -i --force
+
# ]
#)
#AC_DEFINE([HAVE_ICAL], [ --with-libical use libical calendaring library])
-AC_DEFINE([HAVE_ZLIB], [ --with-zlib use zlib compression if present],ok_zlib=no, ok_zlib=yes)
AC_DEFINE([HAVE_OPENSSL],
[ --with-ssl=PATH Specify path to OpenSSL installation ],
ssl_ok=no,
dnl Checks for the zlib compression library.
-if test "x$with_zlib" != xno ; then
- AC_CHECK_HEADERS(zlib.h,
- [AC_CHECK_LIB(z, zlibVersion,
- [ok_zlib=yes],,
- )])
-fi
+AC_DEFINE([with_zlib],
+ [ --with-zlib use zlib compression if present],
+ [ok_zlib=no],
+ [AC_CHECK_HEADERS(zlib.h,
+ [AC_CHECK_LIB(z, zlibVersion,
+ [ok_zlib=yes],,
+ )])
+ ])
if test "x$ok_zlib" = xyes ; then
LIBS="-lz $LIBS"
- AC_DEFINE(HAVE_ZLIB)
fi
dnl Checks for the newt window library.
-dnl#if test "x$with_newt" != xno ; then
-
-dnl AC_DEFINE([HAVE_NEWT],
-dnl [ --with-newt use newt window library],ok_newt=no,
-dnl [AC_CHECK_HEADERS(newt.h,
-dnl [AC_CHECK_LIB(newt, newtInit,
-dnl [ok_newt=yes],[ok_newt=no],
-dnl )
-dnl ])
-dnl ]
-dnl )
-
-dnl ok_newt=yes
-
-dnl if test "x$ok_newt" = xyes ; then
-dnl SETUP_LIBS="-lnewt $SETUP_LIBS"
-dnl AC_DEFINE(HAVE_NEWT)
-dnl fi
+AC_ARG_WITH([ok_newt], [ --with-newt use newt window library],ok_newt=no, [ AC_CHECK_HEADERS(newt.h,
+ [AC_CHECK_LIB(newt, newtInit,
+ [ok_newt=yes],[ok_newt=no],
+ )
+ ])
+ ]
+)
+if test "x$ok_newt" = xyes ; then
+ SETUP_LIBS="-lnewt $SETUP_LIBS"
+fi
# The big search for OpenSSL
if test "$with_ssl" != "no"; then
AC_SUBST(SETUP_LIBS)
-STATIC_DIR=
-
-AC_ARG_WITH(with_staticdir, [ --with-staticdir where to put datafiles])
-AC_SUBST(STATIC_DIR)
+AC_ARG_WITH(staticdir, [ --with-staticdir=DIR where to put datafiles],[ staticdir=$withval ],[ staticdir=$prefix/static/ ] )
+AC_SUBST(staticdir)
AC_OUTPUT(Makefile src/Makefile po/Makefile.in )
echo ------------------------------------------------------------------------
misc:Depends=debconf (>= 0.5) | debconf-2.0
-shlibs:Depends=libc6 (>= 2.3.5-1), libssl0.9.8 (>= 0.9.8a-1), zlib1g (>= 1:1.2.1)
+shlibs:Depends=libc6 (>= 2.3.5-1), libssl0.9.8 (>= 0.9.8a-1)
-COPYING.txt
-README.txt
-README.txt
+COPYING
+README
configure: configure-stamp
configure-stamp:
dh_testdir
+ rm -rf $(CURDIR)/debian/webcit $(CURDIR)/debian/citadel-webcit $(CURDIR)/debian/citadel-webcit-apache
CFLAGS="$(CFLAGS)" ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
- --prefix=/var/lib/citadel/www/ \
+ --prefix=/usr \
+ --with-webcit-dir=/usr \
--with-sysconfdir=/etc/citadel \
--with-spooldir=/var/spool/citadel \
- --with-datadir=/var/lib/citadel \
+ --with-staticdir=/usr/share/doc/citadel-webcit/examples \
--with-rundir=/var/run/citadel \
--with-ical --with-db --with-ldap --with-zlib --with-ssl --with-libiconf --with-newt --with-included-gettext
# Add here commands to install the package into debian/webcit.
root=$(CURDIR)/debian/webcit/
- mkdir -p $(CURDIR)/debian/webcit/var/lib/citadel/www/
- export root=$(CURDIR)/debian/webcit; $(MAKE) install DESTDIR=$(CURDIR)/debian/webcit/
- mkdir -p $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples
- mkdir -p $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/contrib
- mkdir -p $(CURDIR)/debian/citadel-webcit/usr/sbin
- mkdir -p $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/
- mv $(CURDIR)/debian/webcit/var/lib/citadel/www/static \
- $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/
- mv $(CURDIR)/debian/webcit/var/lib/citadel/www/tiny_mce \
- $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/
-# locale -> /usr/share/locale
- mv $(CURDIR)/debian/webcit/var/lib/citadel/www/locale \
- $(CURDIR)/debian/citadel-webcit/usr/share/locale
- cd $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/; \
- md5sum `find -type f |grep -v md5sums `>md5sums;
- mv $(CURDIR)/debian/webcit/var/lib/citadel/www/setup \
- $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/
- mv $(CURDIR)/debian/webcit/var/lib/citadel/www/webserver \
- $(CURDIR)/debian/citadel-webcit/usr/sbin/
+ export root=$(CURDIR)/debian/citadel-webcit; \
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/citadel-webcit
+ mkdir -p $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit ;\
+ mv $(CURDIR)/debian/citadel-webcit/usr/sbin/setup \
+ $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/; \
+ cd $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/ && \
+ md5sum `find -type f |grep -v md5sums `>md5sums; \
# Build architecture-independent files here.
sbin_PROGRAMS = webserver setup
webserver_LDADD = @LIBINTL@
-
+setup_LDADD = @SETUP_LIBS@
#SUBDIRS = $(LIB_SUBDIRS) $(PROG_SUBDIRS)
setup_SOURCES = setup.c tools.c