~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to conf/debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
INSTALL=install -Dp
 
8
 
 
9
prefix := $(CURDIR)/debian/tmp
 
10
bindir := $(prefix)/usr/bin
 
11
sbindir := $(prefix)/usr/sbin
 
12
libdir := $(prefix)/usr/lib
 
13
localstatedir := $(prefix)/var
 
14
rubylibdir := $(libdir)/ruby/1.8
 
15
sysconfdir := $(prefix)/etc
 
16
pkgconfdir := $(sysconfdir)/puppet
 
17
 
 
18
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
19
        CFLAGS += -O0
 
20
else
 
21
        CFLAGS += -O2
 
22
endif
 
23
 
 
24
configure: configure-stamp
 
25
configure-stamp:
 
26
        dh_testdir
 
27
        touch configure-stamp
 
28
 
 
29
 
 
30
build: build-stamp
 
31
build-stamp: configure-stamp 
 
32
        dh_testdir
 
33
        touch build-stamp
 
34
 
 
35
clean:
 
36
        dh_testdir
 
37
        dh_testroot
 
38
        rm -f build-stamp configure-stamp
 
39
        dh_clean 
 
40
 
 
41
install: build
 
42
        dh_testdir
 
43
        dh_testroot
 
44
        dh_clean -k 
 
45
        dh_installdirs
 
46
 
 
47
        # ripped from the redhat spec
 
48
        # this sucks, who wants to maintain this?
 
49
        # note to self, fix the install.rb to handle DESTDIR and change
 
50
        # library path
 
51
        install -d -m0755 $(sbindir)
 
52
        install -d -m0755 $(bindir)
 
53
        install -d -m0755 $(rubylibdir)
 
54
        install -d -m0755 $(pkgconfdir)/manifests
 
55
        install -d -m0755 $(localstatedir)/lib/puppet
 
56
        install -d -m0755 $(localstatedir)/run
 
57
        install -d -m0755 $(localstatedir)/log/puppet
 
58
 
 
59
        $(INSTALL) -m0755 bin/puppet bin/puppetdoc $(bindir)
 
60
        $(INSTALL) -m0755 bin/puppetd bin/puppetmasterd bin/puppetca bin/puppetrun $(sbindir)
 
61
        $(INSTALL) -m0644 lib/puppet.rb $(rubylibdir)/puppet.rb
 
62
        cp -a lib/puppet $(rubylibdir)
 
63
        find $(rubylibdir) -type f -perm +ugo+x -exec chmod a-x {} \;
 
64
 
 
65
        $(INSTALL) -m0644 debian/fileserver.conf $(pkgconfdir)/fileserver.conf
 
66
        $(INSTALL) -m0644 debian/puppet.conf $(pkgconfdir)/puppet.conf
 
67
 
 
68
        # Vim auto-syntax-highlighting stuff
 
69
        $(INSTALL) -m0644 ext/vim/syntax/puppet.vim                             \
 
70
                $(CURDIR)/debian/puppet/usr/share/vim/vim71/syntax/
 
71
        $(INSTALL) -m0644 ext/vim/ftdetect/puppet.vim                           \
 
72
                $(CURDIR)/debian/puppet/usr/share/vim/addons/ftdetect/
 
73
 
 
74
        # Emacs keeping up with the Joneses
 
75
        $(INSTALL) -m0644 ext/emacs/puppet-mode-init.el                 \
 
76
                $(CURDIR)/debian/puppet/etc/emacs/site-start.d/50puppet-mode-init.el
 
77
        $(INSTALL) -m0644 ext/emacs/puppet-mode.el                      \
 
78
                $(CURDIR)/debian/puppet/usr/share/emacs/site-lisp/puppet-mode.el
 
79
 
 
80
        dh_installexamples examples/*
 
81
 
 
82
        # Logcheck rules.  Gee I wish you could specify a file to source
 
83
        # in dh_installlogcheck.
 
84
        cp ext/logcheck/puppet debian/puppet.logcheck.ignore.server
 
85
        cp ext/logcheck/puppet debian/puppet.logcheck.ignore.workstation
 
86
        dh_installlogcheck
 
87
        rm debian/puppet.logcheck.*
 
88
 
 
89
        # Clean out any SVN cruft that may still be lingering in our
 
90
        # packages
 
91
        find debian/tmp debian/puppet debian/puppetmaster -name .svn |xargs rm -rf
 
92
 
 
93
# Build architecture-dependent files here.
 
94
binary-arch: build install
 
95
 
 
96
# Build architecture-independent files here.
 
97
binary-indep: build install
 
98
        dh_testdir
 
99
        dh_testroot
 
100
        dh_movefiles -i
 
101
        dh_installchangelogs -i CHANGELOG
 
102
        dh_installdocs -i
 
103
        dh_installinit -ppuppetmaster
 
104
        dh_installinit -ppuppet -- defaults 21
 
105
        dh_installlogrotate -i
 
106
        dh_compress -i
 
107
        dh_fixperms -i
 
108
        dh_installdeb -i
 
109
        dh_shlibdeps -i
 
110
        dh_gencontrol -i
 
111
        dh_md5sums -i
 
112
        dh_builddeb -i
 
113
 
 
114
binary: binary-indep binary-arch
 
115
.PHONY: build clean binary-indep binary-arch binary install configure