Releasing GotCloud
From Genome Analysis Wiki
Jump to navigationJump to searchBack to parent: GotCloud
Software for GotCloud is kept in a git repository on github (eventually). This document describes how we create the Debian and Redhat packages used with GotCloud.
Get the software (in this case from our local repository):
cd ~/dev
git clone ....git/gotcloud gotcloud
Cloning into 'gotcloud'...
done.
ls gotcloud
bin/ debian/ INSTALL.txt README scripts/ test/
Build the Source
cd ~/dev/gotcloud/src
make
Build the Packages
Debian binaries DEB
cd ~/dev/gotcloud
debian/makedeb.sh bin (followed by the version number)
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...
[lines deleted]
dpkg-gencontrol -isp
chown -R root.root debian/tmp
chmod -R o-s,go=u,go-ws debian/tmp
dpkg --build debian/tmp .
dpkg-deb: building package `gotcloud-bin' in `./gotcloud-bin_1.0_amd64.deb'.
rm -rf tmp
Package file now in /home/tpg/dev/gotcloud
-rw-r--r-- 1 tpg tpg 3366722 Dec 4 13:55 gotcloud-bin_1.0_amd64.deb
Debian test DEB
cd ~/dev/gotcloud
debian/makedeb.sh test (followed by the version number)
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...
[lines deleted]
dpkg-gencontrol -isp
chown -R root.root debian/tmp
chmod -R o-s,go=u,go-ws debian/tmp
dpkg --build debian/tmp .
dpkg-deb: building package `gotcloud-test' in `./gotcloud-test_1.0_amd64.deb'.
rm -rf tmp
Package file now in /home/tpg/dev/gotcloud
-rw-r--r-- 1 tpg tpg 433342982 Dec 4 14:04 gotcloud-test_1.0_amd64.deb
Redhat binaries RPM
cd ~/dev/gotcloud
debian/makerpm.sh bin
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...
[lines deleted]
echo "Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot"
Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot
rm -rf debian/tmp debian/errs
install -d debian/tmp/DEBIAN
cp debian/control debian/postinst debian/tmp/DEBIAN
install -d debian/tmp/usr/share/doc/gotcloud-bin_1.0
cp debian/changelog debian/tmp/usr/share/doc/gotcloud-bin_1.0
cp README debian/tmp/usr/share/doc/gotcloud-bin_1.0/README
gzip -9 debian/tmp/usr/share/doc/gotcloud-bin_1.0/*
cp debian/copyright debian/tmp/usr/share/doc/gotcloud-bin_1.0
mkdir -p debian/tmp/usr/local/gotcloud
cp -rp bin scripts rpmbin debian/tmp/usr/local/gotcloud
Package file now in /home/tpg/dev/gotcloud
-rw-r--r-- 1 tpg tpg 3366722 Dec 4 13:55 gotcloud-bin_1.0_amd64.deb
Converting DEB into RPM
Warning: alien is not running as root!
Warning: Ownerships of files in the generated packages will probably be wrong.
gotcloud-bin-1.0-2.x86_64.rpm generated
-rw-r--r-- 1 tpg tpg 3378883 Dec 4 14:06 gotcloud-bin-1.0-2.x86_64.rpm
Redhat test RPM
cd ~/dev/gotcloud
debian/makerpm.sh test
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...
[lines deleted]
echo "Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot"
Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot
rm -rf debian/tmp debian/errs
install -d debian/tmp/DEBIAN
cp debian/control debian/postinst debian/tmp/DEBIAN
install -d debian/tmp/usr/share/doc/gotcloud-test_1.0
cp debian/changelog debian/tmp/usr/share/doc/gotcloud-test_1.0
cp README debian/tmp/usr/share/doc/gotcloud-test_1.0/README
gzip -9 debian/tmp/usr/share/doc/gotcloud-test_1.0/*
cp debian/copyright debian/tmp/usr/share/doc/gotcloud-test_1.0
mkdir -p debian/tmp/usr/local/gotcloud
cp -rp test debian/tmp/usr/local/gotcloud
dpkg-gencontrol -isp
chown -R root.root debian/tmp
chmod -R o-s,go=u,go-ws debian/tmp
dpkg --build debian/tmp .
dpkg-deb: building package `gotcloud-test' in `./gotcloud-test_1.0_amd64.deb'.
rm -rf tmp
Package file now in /home/tpg/dev/gotcloud
-rw-r--r-- 1 tpg tpg 433342984 Dec 4 14:11 gotcloud-test_1.0_amd64.deb
Converting DEB into RPM
Warning: alien is not running as root!
Warning: Ownerships of files in the generated packages will probably be wrong.
gotcloud-test-1.0-2.x86_64.rpm generated
-rw-r--r-- 1 tpg tpg 433492134 Dec 4 14:17 gotcloud-test-1.0-2.x86_64.rpm
Make these available via FTP:
cd ~/dev/gotcloud
ls -la *.deb *.rpm
-rw-r--r-- 1 tpg tpg 3378883 Dec 4 14:06 gotcloud-bin-1.0-2.x86_64.rpm
-rw-r--r-- 1 tpg tpg 3366722 Dec 4 13:55 gotcloud-bin_1.0_amd64.deb
-rw-r--r-- 1 tpg tpg 433492134 Dec 4 14:17 gotcloud-test-1.0-2.x86_64.rpm
-rw-r--r-- 1 tpg tpg 433342984 Dec 4 14:11 gotcloud-test_1.0_amd64.deb
scp *.deb *.rpm gotcloud@share.sph.umich.edu
gotcloud-bin_1.0_amd64.deb ...
gotcloud-bin_1.0_amd64.deb ...
gotcloud-test-1.0-2.x86_64.rpm ...
gotcloud-test_1.0_amd64.deb ...
This makes the Debian and Redhat package files available to outsiders using anonymous FTP (or wget).