X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fbuildpackages;h=412c303ca73c8e2f8c701d9cfbb62b57d06eedd9;hb=HEAD;hp=29256a93a1808a2bfc89a31f3a9b89bf87aced41;hpb=81bc7c8b2812521e1522840cd8f7744825e5a1f8;p=citadel.git diff --git a/citadel/buildpackages b/citadel/buildpackages deleted file mode 100755 index 29256a93a..000000000 --- a/citadel/buildpackages +++ /dev/null @@ -1,106 +0,0 @@ -#!/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` - -if echo "$ACTUAL_DIR" |grep -q "$CITADEL_VERSION"; then - echo "directory ($ACTUAL_DIR) naming scheme seems right. nothing done." -else - done=false - if test -L "$ACTUAL_DIR"; then - SYMLINK_=`pwd` - SYMLINK=`ls -l $SYMLINK_|sed "s;.*-> ;;"` - if ls -l $SYMLINK_|grep -q "$CITADEL_VERSION"; then - done=true - fi - else - SYMLINK=`pwd|sed "s;.*/;;"` - fi - if test "$done" = "false"; then - cd .. - mv -- $SYMLINK "citadel-$CITADEL_VERSION" - ln -sf "citadel-$CITADEL_VERSION" citadel - cd "citadel-$CITADEL_VERSION" - else - cd "../citadel-$CITADEL_VERSION" - fi - -fi - - -case $1 in - 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 -a citadel-$CITADEL_VERSION tmp - cd tmp/citadel-$CITADEL_VERSION - rm -rf `find -name .svn ` svn*tmp config.log config.status - cd .. - tar -czf 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/ \ - --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 - - - - ;; - sourcedist) - cd ..; tar --exclude .svn --exclude "debian/*" -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/ - ;; - *) - echo "Not yet implemented. we have: debian " - ;; -esac