-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: updated debian build scripts, changelog
- Loading branch information
Showing
4 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters