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