2
# Sample debian/rules that uses debhelper.
3
# This file is public domain software, originally written by Joey Hess.
5
# This version is for packages that are architecture independent.
7
# Rules to build etherpad
9
# Uncomment this to turn on verbose mode.
16
# Add here commands to compile the package.
22
# update template translation strings commented out as git-buildpackage complains that the file changes all the times otherwise...
28
# Add here commands to clean up after the build process.
40
# Add here commands to install the package into debian/<packagename>.
41
#$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
43
# Add here commands to install the indep part of the package into
44
# debian/<package>-doc.
47
mkdir -p debian/etherpad/usr/share/etherpad
49
# try to copy content correctly
50
cp -a $$(ls | grep -E -v 'debian|LICENSE|COPYING|INSTALL') debian/etherpad/usr/share/etherpad
51
# fix ups (because the above copy is too dump), remove unneeded stuff
52
find debian/etherpad -type f -and -name ".gitignore" -exec rm {} +
53
find debian/etherpad -type f -and -name "build-stamp" -exec rm {} +
55
# create directory to save user data
56
mkdir -p debian/etherpad/usr/share/etherpad/etherpad/data
58
mkdir -p debian/etherpad/etc
59
mv debian/etherpad/usr/share/etherpad/etherpad/etc debian/etherpad/etc/etherpad
60
ln -s /etc/etherpad debian/etherpad/usr/share/etherpad/etherpad/etc
62
mkdir -p debian/etherpad/var/log/etherpad
63
mkdir -p debian/etherpad/usr/share/lintian/overrides
64
cp debian/source/lintian-overrides debian/etherpad/usr/share/lintian/overrides/etherpad
66
#mkdir -p debian/etherpad/etc/init.d
67
#ln -s /usr/share/etherpad/bin/etherpad.init.d debian/etherpad/etc/init.d/etherpad
73
# Build architecture-independent files here.
74
binary-indep: build install
79
# on the fly final copyright file creation:
80
cat debian/copyright LICENSE > debian/etherpad/usr/share/doc/etherpad/copyright
107
# Build architecture-dependent files here.
108
binary-arch: build install
109
# We have nothing to do by default.
111
binary: binary-indep binary-arch
112
.PHONY: build clean binary-indep binary-arch binary install