control-center/serviced — pull request #1151 by wplu (2014-10-06 22:53:36+00:00)
Title: use commit hash package from zenpip when making deb/rpm

DEMO:
```
~/src/europa/src/golang/src/github.com/control-center/serviced
# plu@plu-9: cd pkg
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg
# plu@plu-9: ls
gitstatus.sh pkgroot serviced.default serviced.service serviced-systemd.sh
makefile rpm servicedef.mk serviced.supervisord serviced.upstart
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg
# plu@plu-9: make deb
untarring: http://zenpip.zendev.org/packages/serviced-e87b98706480b4965019b24dfde70d8a7e145c44-dirty.tgz
curl -s http://zenpip.zendev.org/packages/serviced-"e87b98706480b4965019b24dfde70d8a7e145c44-dirty".tgz | tar -v -C /home/plu/src/europa/src/golang/src/github.com/control-center/serviced/pkg/pkgroot -xz
./
./etc/
./etc/bash_completion.d/
./etc/bash_completion.d/serviced
./etc/default/
./etc/default/serviced
./usr/
./usr/bin/
./usr/bin/serviced
./opt/
./opt/serviced/
./opt/serviced/bin/
./opt/serviced/bin/serviced

...

./opt/serviced/isvcs/resources/logstash/logstash.conf.in
./opt/serviced/isvcs/resources/cpcelery.py
fpm \
-n serviced \
-v 0.8.0~$(lsb_release -cs) \
-s dir \
-d nfs-kernel-server \
-d net-tools \
-d nfs-common \
-d 'lxc-docker >= 1.1.0' \
-d 'docker-smuggle >= 2.24' \
-t deb \
-a x86_64 \
-C pkgroot \
-m "Zenoss CM " \
--description "$DESCRIPTION" \
--deb-user root \
--deb-group root \
--deb-priority extra \
--license Apache-2 \
--vendor "Zenoss, Inc." \
--url http://controlcenter.io/ \
--category admin \
--config-files /etc/default/serviced \
.
Created package {:path=>"serviced_0.8.0~trusty_amd64.deb"}
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg
# plu@plu-9: ls
gitstatus.sh pkgroot serviced_0.8.0~trusty_amd64.deb servicedef.mk serviced.supervisord serviced.upstart
makefile rpm serviced.default serviced.service serviced-systemd.sh
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg
# plu@plu-9: mkdir tmp
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg
# plu@plu-9: cd tmp
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg/tmp
# plu@plu-9: dpkg-deb -R ../serviced_0.8.0~trusty_amd64.deb .
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg/tmp
# plu@plu-9: ls -al
total 24
drwxr-xr-x 6 plu plu 4096 Oct 6 17:45 .
drwxrwxr-x 5 plu plu 4096 Oct 6 17:44 ..
drwxr-xr-x 2 plu plu 4096 Oct 6 17:44 DEBIAN
drwxr-xr-x 4 plu plu 4096 Oct 6 17:44 etc
drwxr-xr-x 3 plu plu 4096 Oct 6 17:44 opt
drwxr-xr-x 3 plu plu 4096 Oct 6 17:44 usr
~/src/europa/src/golang/src/github.com/control-center/serviced/pkg/tmp
# plu@plu-9: diff -qr ../pkgroot/ .
Only in .: DEBIAN
# plu@plu-9:
```