6d0b66
#!/bin/bash
6d0b66
6d0b66
DATE=`date +%Y%m%d`
6d0b66
# use a real tag name here
6d0b66
VERSION=1.3.5.14
6d0b66
PKGNAME=389-ds-base
6d0b66
TAG=${TAG:-$PKGNAME-$VERSION}
6d0b66
URL="https://git.fedorahosted.org/git/?p=389/ds.git;a=snapshot;h=$TAG;sf=tgz"
6d0b66
SRCNAME=$PKGNAME-$VERSION
6d0b66
6d0b66
wget -O $SRCNAME.tar.gz "$URL"
6d0b66
6d0b66
echo convert tgz format to tar.bz2 format
6d0b66
6d0b66
gunzip $PKGNAME-$VERSION.tar.gz
6d0b66
bzip2 $PKGNAME-$VERSION.tar