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 PACKAGE_VERSION=`cat packageversion`
12 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
16 rm -rf debian/libcitadel debian/libcitadel-dev debian/libcitadel1 debian/libcitadel1-dbg debian/tmp
17 if echo "$ACTUAL_DIR" |grep -q "$LIBCITADEL_VERSION"; then
18 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
21 if test -L "$ACTUAL_DIR"; then
23 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
24 if ls -l $SYMLINK|grep -q "$LIBCITADEL_VERSION"; then
28 SYMLINK=`pwd|sed "s;.*/;;"`
30 if test "$done" = "false"; then
32 ln -sf libcitadel "libcitadel-$LIBCITADEL_VERSION"
33 cd "libcitadel-$LIBCITADEL_VERSION"
35 cd "../libcitadel-$LIBCITADEL_VERSION"
43 if grep -q "($LIBCITADEL_VERSION" debian/changelog; then
44 echo rebuilding package.
46 echo "Upstream Version higher than local."
49 if test "$2" == "src"; then
53 cp -rL libcitadel-$LIBCITADEL_VERSION tmp
54 cd tmp/libcitadel-$LIBCITADEL_VERSION
55 rm -rf `find -name .svn ` svn*tmp config.log config.status `find -name .libs`
56 find -type f -exec chmod a-x {} \;
59 tar -chzf libcitadel_${LIBCITADEL_VERSION}.orig.tar.gz libcitadel-${LIBCITADEL_VERSION}/ --exclude "debian/*"
61 cd libcitadel-${LIBCITADEL_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
63 fakeroot dpkg-buildpackage
67 if !test -d ~/pkgs/; then
72 NAME=libcitadel - The groupware server for Web 2.0
73 VERSION=${PACKAGE_VERSION}
75 VENDOR=http://www.citadel.org/ packaged for CSW by Wilfried Goesgens
76 HOTLINE=https://uncensored.citadel.org/ Room citadel support
77 EMAIL=citadel@outgesourced.org
79 export LDFLAGS='-L/opt/csw/lib -L /usr/local/lib'
80 export CFLAGS='-I/opt/csw/include -I/usr/local/include -DDISABLE_CURSES'
82 --with-db=/opt/csw/bdb44 \
83 --with-ical=/usr/local/ \
85 --with-prefix=/opt/csw/ \
86 --with-datadir=/opt/csw/var/lib/citadel \
87 --with-sysconfdir=/opt/csw/etc/citadel \
88 --with-ssldir=/opt/csw/etc/ssl/citadel/ \
89 --with-spooldir=/opt/csw/var/spool/citadel \
90 --with-rundir=/opt/csw/var/run/citadel \
91 --with-docdir=/opt/csw/share/doc/citadel-doc/ \
97 gmake citserver aidepost msgform citmail userlist sendcommand base64 whobbs citadel
98 gmake DESTDIR=$ACTUAL_DIR/cswstage install-new
104 cd ..; tar --exclude .svn \
110 --exclude "debian/*" \
111 --exclude "sysdep.h" \
113 -chvzf libcitadel-$LIBCITADEL_VERSION.tar.gz libcitadel-$LIBCITADEL_VERSION/
116 echo "Not yet implemented. we have: debian "