~etherpad/etherpad/ubuntu-lucid-backport

« back to all changes in this revision

Viewing changes to debian/rules.bak

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper. 
 
3
# This file is public domain software, originally written by Joey Hess.
 
4
#
 
5
# This version is for packages that are architecture independent.
 
6
#
 
7
# Rules to build etherpad
 
8
#
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
build: build-stamp
 
13
build-stamp:
 
14
        dh_testdir
 
15
 
 
16
        # Add here commands to compile the package.
 
17
        #$(MAKE)
 
18
        bin/build.sh
 
19
        touch build-stamp
 
20
 
 
21
clean:
 
22
        # update template translation strings commented out as git-buildpackage complains that the file changes all the times otherwise...
 
23
        # debconf-updatepo
 
24
        dh_testdir
 
25
        dh_testroot
 
26
        rm -f build-stamp
 
27
 
 
28
        # Add here commands to clean up after the build process.
 
29
        #$(MAKE) clean
 
30
        #$(MAKE) distclean
 
31
 
 
32
        dh_clean
 
33
 
 
34
install: build
 
35
        dh_testdir
 
36
        dh_testroot
 
37
        dh_prep
 
38
        dh_installdirs
 
39
 
 
40
        # Add here commands to install the package into debian/<packagename>.
 
41
        #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
 
42
 
 
43
        # Add here commands to install the indep part of the package into
 
44
        # debian/<package>-doc.
 
45
        #INSTALLDOC#
 
46
 
 
47
        mkdir -p debian/etherpad/usr/share/etherpad
 
48
 
 
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 {} +
 
54
 
 
55
        # create directory to save user data
 
56
        mkdir -p debian/etherpad/usr/share/etherpad/etherpad/data
 
57
 
 
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
 
61
 
 
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
 
65
 
 
66
        #mkdir -p debian/etherpad/etc/init.d
 
67
        #ln -s /usr/share/etherpad/bin/etherpad.init.d debian/etherpad/etc/init.d/etherpad
 
68
        dh_installinit
 
69
 
 
70
        dh_install -i
 
71
 
 
72
 
 
73
# Build architecture-independent files here.
 
74
binary-indep: build install
 
75
        dh_testdir
 
76
        dh_testroot
 
77
        dh_installchangelogs
 
78
        dh_installdocs
 
79
        # on the fly final copyright file creation:
 
80
        cat debian/copyright LICENSE > debian/etherpad/usr/share/doc/etherpad/copyright
 
81
        dh_installexamples
 
82
#       dh_installmenu
 
83
        dh_installdebconf
 
84
#       dh_installlogrotate
 
85
#       dh_installemacsen
 
86
#       dh_installcatalogs
 
87
#       dh_installpam
 
88
#       dh_installmime
 
89
#       dh_installinit
 
90
#       dh_installcron
 
91
#       dh_installinfo
 
92
#       dh_installwm
 
93
#       dh_installudev
 
94
#       dh_lintian
 
95
#       dh_bugfiles
 
96
#       dh_undocumented
 
97
        dh_installman
 
98
        dh_link
 
99
        dh_compress
 
100
        dh_fixperms
 
101
#       dh_perl
 
102
        dh_installdeb
 
103
        dh_gencontrol
 
104
        dh_md5sums
 
105
        dh_builddeb
 
106
 
 
107
# Build architecture-dependent files here.
 
108
binary-arch: build install
 
109
# We have nothing to do by default.
 
110
 
 
111
binary: binary-indep binary-arch
 
112
.PHONY: build clean binary-indep binary-arch binary install