X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fbuildpackages;h=412c303ca73c8e2f8c701d9cfbb62b57d06eedd9;hb=50ff39d933b7178377b3a67f8edc31ffa42ffd28;hp=29256a93a1808a2bfc89a31f3a9b89bf87aced41;hpb=81bc7c8b2812521e1522840cd8f7744825e5a1f8;p=citadel.git diff --git a/citadel/buildpackages b/citadel/buildpackages index 29256a93a..412c303ca 100755 --- a/citadel/buildpackages +++ b/citadel/buildpackages @@ -12,6 +12,8 @@ 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 @@ -27,8 +29,7 @@ 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" @@ -49,11 +50,13 @@ case $1 in cd .. rm -rf tmp mkdir tmp - cp -a citadel-$CITADEL_VERSION 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 -czf citadel_${CITADEL_VERSION}.orig.tar.gz citadel-${CITADEL_VERSION}/ --exclude "debian/*" + 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 @@ -76,9 +79,8 @@ EMAIL=citadel@outgesourced.org 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-db=/opt/csw/bdb5 \ --with-ical=/usr/local/ \ - --without-curses \ --with-prefix=/opt/csw/ \ --with-datadir=/opt/csw/var/lib/citadel \ --with-sysconfdir=/opt/csw/etc/citadel \ @@ -98,7 +100,19 @@ EMAIL=citadel@outgesourced.org ;; sourcedist) - cd ..; tar --exclude .svn --exclude "debian/*" -cvzf citadel-$CITADEL_VERSION.tgz citadel-$CITADEL_VERSION/ + cd ..; tar \ + --exclude ".gitignore" \ + --exclude "*.lo" \ + --exclude "*.o" \ + --exclude "*.d" \ + --exclude "autom4te.cache/*" \ + --exclude "debian/*" \ + --exclude "sysdep.h" \ + \ + -chvzf citadel-$CITADEL_VERSION.tar.gz citadel-$CITADEL_VERSION/ + ;; + version) + echo This would build citadel-$CITADEL_VERSION ;; *) echo "Not yet implemented. we have: debian "