sheepfs: add -lpthread to the linker option

Because libsheepdog wraps pthread reader writer lock, the flag is
required for building sheepfs too.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Use AM_CPPFLAGS instead of INCLUDES

INCLUDES are being warned by new automake (1.13)

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Update URLs for sheepdog homepage/debian git

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Fix the destination directory

Debian's buildd (sbuild/pbuilder etc) assumes the deb file
is generated in .. to generate .changes file

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Update debian/copyright to UTF-8

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Install collie as a symoble link to dog

Install bash-completion for both collie and dog
Don't do link in postinst/postrm, as it will not in
   track of dpkg.
   Use dh_links instead

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
init.d script don't include /lib/init/vars.sh

/lib/init/vars.sh is an internal API which should not be
used by init.d scripts.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710559

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
RM datadir (/var/lib/sheepdog) when purged

Signed-off-by: YunQiang Su <wzssyqa@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
farm: fix possible null defererence

if trunk_file_read() return NULL, we should return immediately.

Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
farm: fix memory leak of slice.c

Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>