~ubuntu-branches/ubuntu/quantal/smstools/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Schoenfeld
  • Date: 2009-12-04 15:05:03 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091204150503-c1fj03yolimkgha8
Tags: 3.1.6-1
* New upstream version
  (Closes: #494274)
* Remove patch to fix modem timeouts; upstream includes changes that
  obsolete it
* Switch to debhelper 7 and minimize the rules file
* Add a file debian/manpage for manpage installation
* Add a debian/install file for files which need to be installed
* Add an ignore.d.server file for logcheck (Closes: #516158)
* [INTL:ja] Add Japanese po-debconf template translation
  (ja.po); thanks to Hideki Yamane
  (Closes: #558073)
* Change my email address at some places
* Make ucf call on purge conditional, so that purge does not fail if
  ucf is not installed.
* Fix pathname of smsd configuration in ucf call (its smsd.conf not
  smstools.conf)
* Remove the last changed header from smsd.conf because its annoying
  on every upgrade
* Fix a bug in the init script, that would cause the daemon to not
  properly run, if /var/run/smstools does not exist, because it
  wouldn't respect its user settings anymore.
* Make sure a symlink from /var/log/smsd.log to /var/log/smstools/smsd.log
  is created on upgrades, if /var/log/smsd.log exists.
* Change the logfile path in the default configuration to
  /var/log/smstools/smsd.log

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
include /usr/share/quilt/quilt.make
4
4
 
5
 
build: build-stamp
6
 
build-stamp: $(QUILT_STAMPFN)
7
 
        dh_testdir
8
 
        $(MAKE)
9
 
        touch build-stamp
 
5
build: $(QUILT_STAMPFN)
 
6
        dh $@
10
7
 
11
8
clean: unpatch
12
 
        dh_testdir
13
 
        dh_testroot
14
 
        [ ! -f Makefile ] || $(MAKE) clean
15
 
        debconf-updatepo
16
 
        rm -f build-stamp configure-stamp
17
 
        dh_clean
 
9
        dh $@
18
10
 
19
11
install: build
20
 
        dh_testdir
21
 
        dh_testroot
22
 
        dh_clean -k
23
 
        dh_installdirs
24
 
 
25
 
        # Install application
26
 
        install -D -m 755 src/smsd debian/smstools/usr/sbin/smsd
27
 
 
28
 
        # Install configuration templates
29
 
        install -D -m644 debian/smsd.conf.template \
30
 
                debian/smstools/usr/share/smstools/conf-templates/smsd.conf.template
31
 
        install -D -m644 debian/smsd.modem.template \
32
 
                debian/smstools/usr/share/smstools/conf-templates/smsd.modem.template
33
 
 
34
 
        # Install docs and examples
 
12
        dh --before dh_auto_install $@
 
13
        # Install changelogs
 
14
        dh --after dh_auto_install --before dh_installchangelogs $@
 
15
        dh_installchangelogs doc/history3.html
 
16
        dh --after dh_installchangelogs $@
 
17
        # Install docs
35
18
        dh_installdocs doc -Xhistory3.html
36
19
        mv debian/smstools/usr/share/doc/smstools/doc debian/smstools/usr/share/doc/smstools/html
 
20
        # Install examples
37
21
        dh_installexamples examples/* scripts
38
 
 
39
 
        #Fix permissions
40
 
        chmod -R 644 debian/smstools/usr/share/doc/smstools/examples
41
 
 
42
 
binary-indep: build install
43
 
 
44
 
binary-arch: build install
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        dh_installchangelogs doc/history3.html
48
 
        dh_installman debian/smsd*.8
49
 
        dh_installdebconf
50
 
        dh_installinit
51
 
        dh_link
52
 
        dh_strip
53
 
        dh_compress
54
 
        dh_fixperms
55
 
        dh_makeshlibs
56
 
        dh_installdeb
57
 
        dh_shlibdeps
58
 
        dh_gencontrol
59
 
        dh_installinit
60
 
        dh_installdebconf
61
 
        dh_md5sums
62
 
        dh_builddeb
63
 
 
64
 
binary: binary-indep binary-arch
65
 
.PHONY: build clean binary-indep binary-arch binary install
 
22
        # Fix permissions
 
23
        find debian/smstools/usr/share/doc/smstools -type f -exec chmod 644 \{\} \+
 
24
        chmod 755 debian/smstools/usr/share/doc/smstools/examples/scripts/
 
25
 
 
26
binary: build install
 
27
        dh $@
 
28
 
 
29
 
 
30
        # Install application
 
31
#       install -D -m 755 src/smsd debian/smstools/usr/sbin/smsd
 
32
#
 
33
#       # Install configuration templates
 
34
#       install -D -m644 debian/smsd.conf.template \
 
35
#               debian/smstools/usr/share/smstools/conf-templates/smsd.conf.template
 
36
#       install -D -m644 debian/smsd.modem.template \
 
37
#               debian/smstools/usr/share/smstools/conf-templates/smsd.modem.template
 
38
 
 
39
 
 
40
 
 
41
%:
 
42
        dh $@