lamvak/lizardfs — pull request #2 by marcinsulikowski (2013-08-01 08:02:01+00:00)
Title: Initial version of .deb package building using CPack

I've created an initial version of deb package building using CPack. Default paths are GNU-like (/usr/local/(s)bin, /usr/local/etc, /usr/local/var...). To enable proper paths one must use -DENABLE_DEBIAN_PATHS=ON -DCMAKE_INSTALL_PREFIX=/ -- this will install files in /usr/(s)bin, /var, /etc. What sholud work:
* installing files
* creating an mfs user after installation (or ${DEFAULT_USER} if changed) and granting him permissions to the var/lib/mfs directory
What does not work yet:
* creating multiple packages: lizardfs-common, lizardfs-master, lizardfs-chunkserver, lizardfs-client, ...
* all post-installation hooks like defining a services (service start|stop mfs*), adding entries to init.d, ...
* all pre-remove and post-remove hooks like stopping the filesystem
* many other things done by debhelper in original mfs-1.6.27