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 "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
47 * update to actual Citadel SVN. many new features. see Packages changelog.
49 -- Wilfried Goesgens <citadel@outgesourced.org> $DATE
51 " >/tmp/citadel_changelog
52 cat debian/changelog >>/tmp/citadel_changelog
53 mv /tmp/citadel_changelog debian/changelog
56 if test "$2" == "src"; then
57 cd ..; dpkg-source -b "citadel-$CITADEL_VERSION"
59 fakeroot dpkg-buildpackage
63 if !test -d ~/pkgs/; then
68 NAME=citadel - The groupware server for Web 2.0
69 VERSION=${PACKAGE_VERSION}
71 VENDOR=http://www.citadel.org/ packaged for CSW by Wilfried Goesgens
72 HOTLINE=https://uncensored.citadel.org/ Room citadel support
73 EMAIL=citadel@outgesourced.org
75 export LDFLAGS='-L/opt/csw/lib -L /usr/local/lib'
76 export CFLAGS='-I/opt/csw/include -I/usr/local/include -DDISABLE_CURSES'
78 --with-db=/opt/csw/bdb44 \
79 --with-ical=/usr/local/ \
81 --with-prefix=/opt/csw/ \
82 --with-datadir=/opt/csw/var/lib/citadel \
83 --with-sysconfdir=/opt/csw/etc/citadel \
84 --with-ssldir=/opt/csw/etc/ssl/citadel/ \
85 --with-spooldir=/opt/csw/var/spool/citadel \
86 --with-rundir=/opt/csw/var/run/citadel \
87 --with-docdir=/opt/csw/share/doc/citadel-doc/ \
93 gmake citserver aidepost msgform citmail userlist sendcommand base64 whobbs citadel
94 gmake DESTDIR=$ACTUAL_DIR/cswstage install-new
100 cd ..; tar --exclude .svn -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/
103 echo "Not yet implemented. we have: debian "