2 # find out the package version from conf
3 if test -f Makefile; then
9 export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;LIBCITADEL;"`
11 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
15 rm -rf debian/libcitadel debian/libcitadel-dev debian/libcitadel1 debian/libcitadel1-dbg debian/tmp
16 if echo "$ACTUAL_DIR" |grep -q "$LIBCITADEL_VERSION"; then
17 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
20 if test -L "$ACTUAL_DIR"; then
22 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
23 if ls -l $SYMLINK|grep -q "$LIBCITADEL_VERSION"; then
27 SYMLINK=`pwd|sed "s;.*/;;"`
29 if test "$done" = "false"; then
31 ln -sf libcitadel "libcitadel-$LIBCITADEL_VERSION"
32 cd "libcitadel-$LIBCITADEL_VERSION"
34 cd "../libcitadel-$LIBCITADEL_VERSION"
42 if grep -q "($LIBCITADEL_VERSION" debian/changelog; then
43 echo rebuilding package.
45 echo "Upstream Version higher than local."
48 if test "$2" == "src"; then
52 cp -rL libcitadel-$LIBCITADEL_VERSION tmp
53 cd tmp/libcitadel-$LIBCITADEL_VERSION
54 rm -rf `find -name .svn ` svn*tmp config.log config.status `find -name .libs`
55 find -type f -exec chmod a-x {} \;
58 tar -chzf libcitadel_${LIBCITADEL_VERSION}.orig.tar.gz libcitadel-${LIBCITADEL_VERSION}/ --exclude "debian/*"
60 cd libcitadel-${LIBCITADEL_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
62 fakeroot dpkg-buildpackage
66 if !test -d ~/pkgs/; then
71 NAME=libcitadel - The groupware server for Web 2.0
72 VERSION=${PACKAGE_VERSION}
74 VENDOR=http://www.citadel.org/ packaged for CSW by Wilfried Goesgens
75 HOTLINE=https://uncensored.citadel.org/ Room citadel support
76 EMAIL=citadel@outgesourced.org
78 export LDFLAGS='-L/opt/csw/lib -L /usr/local/lib'
79 export CFLAGS='-I/opt/csw/include -I/usr/local/include -DDISABLE_CURSES'
81 --with-db=/opt/csw/bdb44 \
82 --with-ical=/usr/local/ \
84 --with-prefix=/opt/csw/ \
85 --with-datadir=/opt/csw/var/lib/citadel \
86 --with-sysconfdir=/opt/csw/etc/citadel \
87 --with-ssldir=/opt/csw/etc/ssl/citadel/ \
88 --with-spooldir=/opt/csw/var/spool/citadel \
89 --with-rundir=/opt/csw/var/run/citadel \
90 --with-docdir=/opt/csw/share/doc/citadel-doc/ \
96 gmake citserver aidepost msgform citmail userlist sendcommand base64 whobbs citadel
97 gmake DESTDIR=$ACTUAL_DIR/cswstage install-new
103 cd ..; tar --exclude .svn \
109 --exclude "debian/*" \
110 --exclude "sysdep.h" \
111 --exclude tests/testdata \
113 -chvzf libcitadel-$LIBCITADEL_VERSION.tar.gz libcitadel-$LIBCITADEL_VERSION/
116 echo "Not yet implemented. we have: debian "