]> code.citadel.org Git - citadel.git/blobdiff - citadel/buildpackages
* create format strings different for solaris
[citadel.git] / citadel / buildpackages
index 4b63c65863e70f53a330a680cff05ed1331def71..f1ae0097f41f02451070ea747da53ca6b9fa12b0 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/bash
 # find out the package version from conf
+if test -x Makefile; then
+    make clean
+fi
+
 ./bootstrap
 
 export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;CITADEL;"`
@@ -34,29 +38,66 @@ fi
 
 
 case $1 in
-       debian)
-
-#dpkg-source: warning: source directory `./citadel' is not <sourcepackage>-<upstreamversion> `citadel-6.61'
-
-               if grep -q "($CITADEL_VERSION" debian/changelog; then
-                       echo rebuilding package.
-               else
-                       echo "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
+    debian)
+       if grep -q "($CITADEL_VERSION" debian/changelog; then
+           echo rebuilding package.
+       else
+           echo "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
 
   * update to actual Citadel SVN. many new features. see Packages changelog.
 
  -- Wilfried Goesgens <citadel@outgesourced.org>  $DATE
 
 " >/tmp/citadel_changelog
-                       cat debian/changelog >>/tmp/citadel_changelog
-                       mv /tmp/citadel_changelog debian/changelog
+           cat debian/changelog >>/tmp/citadel_changelog
+           mv /tmp/citadel_changelog debian/changelog
+           
+       fi
+       if test "$2" == "src"; then
+           cd ..; dpkg-source -b "citadel-$CITADEL_VERSION"
+       else
+           fakeroot dpkg-buildpackage
+       fi
+       ;;
+    csw)
+       if !test -d ~/pkgs/; then
+           mkdir ~/pkgs
+       fi
+       echo "
+PKG=CSWcitadel
+NAME=citadel - The groupware server for Web 2.0
+VERSION=${PACKAGE_VERSION}
+CATEGORY=application
+VENDOR=http://www.citadel.org/  packaged for CSW by Wilfried Goesgens
+HOTLINE=https://uncensored.citadel.org/ Room citadel support
+EMAIL=citadel@outgesourced.org
+" >~/pkgs/citadel
+       export LDFLAGS='-L/opt/csw/lib -L /usr/local/lib'
+       export CFLAGS='-I/opt/csw/include -I/usr/local/include  -DDISABLE_CURSES'
+       ./configure \
+           --with-db=/opt/csw/bdb44 \
+           --with-ical=/usr/local/ \
+           --without-curses \
+           --with-prefix=/opt/csw/ \
+           --with-datadir=/opt/csw/var/lib/citadel \
+           --with-sysconfdir=/opt/csw/etc/citadel \
+           --with-ssldir=/opt/csw/etc/ssl/citadel/ \
+           --with-spooldir=/opt/csw/var/spool/citadel \
+           --with-rundir=/opt/csw/var/run/citadel \
+           --with-docdir=/opt/csw/share/doc/citadel-doc/ \
+           --with-pam \
+           --with-zlib \
+           --with-ldap \
+           --with-libsieve
+           
+       gmake citserver aidepost msgform citmail userlist sendcommand base64 whobbs citadel
+       gmake DESTDIR=$ACTUAL_DIR/cswstage install-new
+       
 
-               fi
-               if test "$2" == "src"; then
-                   cd ..; dpkg-source -b "citadel-$CITADEL_VERSION"
-               else
-                   fakeroot dpkg-buildpackage
-               fi
+
+       ;;
+    sourcedist)
+       cd ..; tar --exclude .svn -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/
        ;;
        *)
                echo "Not yet implemented. we have: debian "