2 # find out the package version from conf
3 if test -x Makefile; then
9 export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;CITADEL;"`
11 PACKAGE_VERSION=`cat packageversion`
12 DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
15 if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then
16 echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done."
19 if test -L "$ACTUAL_DIR"; then
21 SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"`
22 if ls -l $SYMLINK_|grep -q "$CITADEL_VERSION"; then
26 SYMLINK=`pwd|sed "s;.*/;;"`
28 if test "$done" = "false"; then
30 mv -- $SYMLINK "citadel-$CITADEL_VERSION"
31 ln -sf "citadel-$CITADEL_VERSION" citadel
32 cd "citadel-$CITADEL_VERSION"
34 cd "../citadel-$CITADEL_VERSION"
42 if grep -q "($CITADEL_VERSION" debian/changelog; then
43 echo rebuilding package.
45 echo "Upstream Version higher than local."
48 if test "$2" == "src"; then
52 cp -a citadel-$CITADEL_VERSION tmp
53 cd tmp/citadel-$CITADEL_VERSION
54 rm -rf `find -name .svn ` svn*tmp config.log config.status
56 tar -czf citadel_${CITADEL_VERSION}.orig.tar.gz citadel-${CITADEL_VERSION}/ --exclude "debian/*"
58 cd citadel-${CITADEL_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org
60 fakeroot dpkg-buildpackage
64 if !test -d ~/pkgs/; then
69 NAME=citadel - The groupware server for Web 2.0
70 VERSION=${PACKAGE_VERSION}
72 VENDOR=http://www.citadel.org/ packaged for CSW by Wilfried Goesgens
73 HOTLINE=https://uncensored.citadel.org/ Room citadel support
74 EMAIL=citadel@outgesourced.org
76 export LDFLAGS='-L/opt/csw/lib -L /usr/local/lib'
77 export CFLAGS='-I/opt/csw/include -I/usr/local/include -DDISABLE_CURSES'
79 --with-db=/opt/csw/bdb44 \
80 --with-ical=/usr/local/ \
82 --with-prefix=/opt/csw/ \
83 --with-datadir=/opt/csw/var/lib/citadel \
84 --with-sysconfdir=/opt/csw/etc/citadel \
85 --with-ssldir=/opt/csw/etc/ssl/citadel/ \
86 --with-spooldir=/opt/csw/var/spool/citadel \
87 --with-rundir=/opt/csw/var/run/citadel \
88 --with-docdir=/opt/csw/share/doc/citadel-doc/ \
94 gmake citserver aidepost msgform citmail userlist sendcommand base64 whobbs citadel
95 gmake DESTDIR=$ACTUAL_DIR/cswstage install-new
101 cd ..; tar --exclude .svn --exclude "debian/*" -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/
104 echo "Not yet implemented. we have: debian "