X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fbuildpackages;h=2a027858babeb1006e7a41a3023fa75cfd4ca787;hb=d218244e2b4ac89f4433ab262d80c77ca8141b0c;hp=76000f03a050f68bdb88fcc936ae40ebc179eb3f;hpb=31159b4fd0b03b5367db90710b843ed62c7ad471;p=citadel.git diff --git a/citadel/buildpackages b/citadel/buildpackages index 76000f03a..2a027858b 100755 --- a/citadel/buildpackages +++ b/citadel/buildpackages @@ -1,11 +1,19 @@ #!/bin/bash # find out the package version from conf +if test -f Makefile; then + make distclean +fi + +./bootstrap + export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;CITADEL;"` PACKAGE_VERSION=`cat packageversion` DATE=`date '+%a, %d %b %Y %H:%I:00 %z'` ACTUAL_DIR=`pwd` + +rm -rf debian/citadel-client debian/citadel-common debian/citadel-doc debian/citadel-mta debian/citadel-server debian/citadel-suite debian/tmp if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done." else @@ -21,47 +29,80 @@ else fi if test "$done" = "false"; then cd .. - mv -- $SYMLINK "citadel-$CITADEL_VERSION" - ln -sf "citadel-$CITADEL_VERSION" citadel + ln -sf citadel "citadel-$CITADEL_VERSION" cd "citadel-$CITADEL_VERSION" else cd "../citadel-$CITADEL_VERSION" fi fi -./bootstrap case $1 in - debian) - -#dpkg-source: warning: source directory `./citadel' is not - `citadel-6.61' - - cat debian/files_preview | sed \ - -e "s;@CITADEL_VERSION@;${CITADEL_VERSION};" \ - -e "s;@PACKAGE_VERSION@;${PACKAGE_VERSION};" \ - > debian/files - 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 "Upstream Version higher than local." + + fi + if test "$2" == "src"; then + cd .. + rm -rf tmp + mkdir tmp + cp -rL citadel-$CITADEL_VERSION tmp + cd tmp/citadel-$CITADEL_VERSION + rm -rf `find -name .svn ` svn*tmp config.log config.status + find -type f -exec chmod a-x {} \; + chmod a+x configure *.sh *.sh.in debian/rules debian/*inst* debian/rules mkinstalldirs + cd .. + tar -chzf citadel_${CITADEL_VERSION}.orig.tar.gz citadel-${CITADEL_VERSION}/ --exclude "debian/*" + pwd + cd citadel-${CITADEL_VERSION}; debuild -S -sa -kw.goesgens@outgesourced.org + 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/ \ + --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 - * update to actual Citadel SVN. many new features. see Packages changelog. - -- Wilfried Goesgens $DATE - -" >/tmp/citadel_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 + ;; + sourcedist) + cd ..; tar --exclude .gitignore --exclude "debian/*" -chvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/ ;; *) echo "Not yet implemented. we have: debian " ;; -esac \ No newline at end of file +esac