Skip to content

Commit

Permalink
debian: updated debian build scripts, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
liewegas committed Feb 8, 2010
1 parent d87f66d commit 0f42df4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = gnu
EXTRA_DIST = debian autogen.sh ceph.spec.in
EXTRA_DIST = autogen.sh ceph.spec.in
SUBDIRS = src man

dist-hook:
Expand Down
57 changes: 36 additions & 21 deletions build_upload_debian_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ echo vers $vers

repo=$1
arch=$2
snapshot=$3

[ -z "$repo" ] && echo no repo && exit 1
[ -z "$arch" ] && echo no arch && exit 1
Expand All @@ -28,8 +27,8 @@ fi
echo final vers $finalvers

echo cleanup
rm *.deb *.tar.gz *.changes *.dsc || true
rm -rf ceph-$vers* || true
rm -rf ceph-* || true
rm -rf debtmp || true

echo generating git version stamp
cd src
Expand All @@ -43,37 +42,53 @@ make dist
echo extracting
tar zxf ceph-$vers.tar.gz

# mangle version
if [ "$vers" != "$finalvers" ]; then
echo "renaming ceph-$vers to ceph-$finalvers, rebuilding tarball"
mv ceph-$vers ceph-$finalvers
sed -i "s/ceph, $vers/ceph, $finalvers/" ceph-$finalvers/configure.ac

tar zcf ceph-$finalvers.tar.gz ceph-$finalvers
fi;

mv ceph-$finalvers/debian/changelog ceph-$finalvers/debian/changelog.tmp
cat <<EOF > ceph-$finalvers/debian/changelog
ceph ($finalvers) unstable; urgency=low

* snapshot from git at $versuffix
## go

-- sage <[email protected]> $debdate
echo creating debtmp with .orig.tar.gz
mkdir -p debtmp
cp ceph-$finalvers.tar.gz debtmp/ceph_$finalvers.orig.tar.gz
cd debtmp

EOF
cat ceph-$finalvers/debian/changelog.tmp >> ceph-$finalvers/debian/changelog

tar zcf ceph-$finalvers.tar.gz ceph-$finalvers
fi;
echo extracting .orig.tar.gz
tar zxf ceph_$finalvers.orig.tar.gz

if [ "$repo" = "stable" -a "$arch" = "amd64" ]; then
scp ceph-$vers.tar.gz [email protected]:ceph.newdream.net/downloads
# copy in debian dir, fix up changelog
echo setting up debian dir
cp -aL ../debian ceph-$finalvers
if [ "$vers" != "$finalvers" ]; then
cd ceph-$finalvers
DEBEMAIL="[email protected]" dch -v $finalvers-1 'git snapshot'
cd ..
fi

cd ceph-$finalvers
./autogen.sh
dpkg-buildpackage -rfakeroot -us -uc
cd ..

# upload
rsync -v --progress *$arch.{deb,changes} [email protected]:debian/dists/$repo/main/binary-$arch
rsync -v --progress ceph_* [email protected]:debian/dists/$repo/main/source
if [ "$3" = "upload" ]; then

# upload
rsync -v --progress *$arch* [email protected]:debian/dists/$repo/main/binary-$arch
rsync -v --progress ceph_$finalvers[.-]* [email protected]:debian/dists/$repo/main/source

cd ..

#exit 0

if [ "$repo" = "stable" -a "$arch" = "amd64" ]; then
scp ceph-$vers.tar.gz [email protected]:ceph.newdream.net/downloads
fi

# rebuild index
ssh [email protected] build_debian_repo.sh
# rebuild index
ssh [email protected] build_debian_repo.sh
fi
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ceph (0.18) unstable; urgency=low
ceph (0.18-1) unstable; urgency=low

* crush: selectable hash functions
* osdmap: selectable hash functions
Expand All @@ -18,7 +18,7 @@ ceph (0.18) unstable; urgency=low

-- Sage Weil <[email protected]> Fri, 4 Dec 2009 10:01:00 -0800

ceph (0.17) unstable; urgency=low
ceph (0.17-1) unstable; urgency=low

* kclient: fix multiple mds mdsmap decoding
* kclient: fix mon subscription renewal
Expand Down
3 changes: 0 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ build-stamp: configure-stamp
./configure --prefix=/usr
$(MAKE)

# LAME: 'make dist' won't include symlinks with non-existant targets.
cp src/init-ceph debian/ceph.init

touch $@
clean:
dh_testdir
Expand Down

0 comments on commit 0f42df4

Please sign in to comment.