Commit d822bcb4 authored by Julien Muchembled's avatar Julien Muchembled

Generate DEB snapshot packages with version derived from Git revision

parent 1cc7d695
......@@ -63,9 +63,16 @@ See also `setup.py` for Python dependencies.
Installation
============
re6stnet is distributed as an Python egg, and is also packaged for Debian.
re6stnet is distributed as an Python egg, and is also packaged for DEB & RPM
based distributions:
See `re6st-registry` to set up a re6st network
and `re6st-conf` to join an existing network.
On Debian Squeeze, you will have to install `babeld` package from Wheezy.
In order to build DEB snapshot package whose version is derived from current
Git revision, the `debian/changelog` file must be generated automatically,
that's why you can't use `dpkg-buildpackage` directly: run ``debian/rules``
instead. RPM does not have this limitation: do `rpmbuild -bb re6stnet.spec``
as usual.
re6stnet (0.1-1) nexedi; urgency=low
* source package automatically created by stdeb 0.6.0+git
-- Julien Muchembled <jm@jmuchemb.eu> Wed, 05 Sep 2012 16:38:01 +0200
#!/usr/bin/make -f
# -*- makefile -*-
# source package automatically created by stdeb 0.6.0+git
MANPAGELIST := $(patsubst %.rst, %.1, $(wildcard docs/*.rst))
# Uncomment this to turn on verbose mode.
......@@ -8,6 +9,18 @@ MANPAGELIST := $(patsubst %.rst, %.1, $(wildcard docs/*.rst))
INIT=debian/re6stnet/etc/init.d
NM=/etc/NetworkManager/dispatcher.d/50re6stnet
.PHONY: debian/changelog
build-package: debian/changelog
dpkg-buildpackage -us -uc -b
debian/changelog:
printf 're6stnet (0-%u.g%s) nexedi; urgency=low\n\n -- %s %s\n' \
"`git rev-list --topo-order --count HEAD`" \
"`git rev-parse --short HEAD`" \
"`git var GIT_COMMITTER_IDENT |sed 's/\(.*>\) .*/\\1/'`" \
"`date -R`" >debian/changelog
override_dh_auto_clean:
dh_auto_clean
rm -f $(MANPAGELIST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment