JeremyGrosser / tablesnap

Uses inotify to monitor Cassandra SSTables and upload them to S3
BSD 2-Clause "Simplified" License
181 stars 86 forks source link

How to build the debian package? #20

Closed ctavan closed 12 years ago

ctavan commented 12 years ago

What steps are necessary to build a debian package starting with the git repository?

JeremyGrosser commented 12 years ago

This should get you started: http://synack.me/blog/deploying-code-with-packages http://wiki.debian.org/PackagingWithGit

I'm planning to do a version bump and push to the PPA later today if I have time.

ctavan commented 12 years ago

Thanks. I'm having some trouble with the init script, since the daemon package is usually not installed on ubuntu (and it's also not in the package dependencies).

I've tried to rewrite it to use start-stop-daemon instead but then the output does not get redirected properly, see https://github.com/ctavan/tablesnap/compare/update-debian-init

ctavan commented 12 years ago

Ok, dpkg-buildpackage -b does all I need :)