blob: 0c4688e9d445b4f27dc57e29d2c3cd4bca844b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
INSTALL=install -Dp
prefix := $(CURDIR)/debian/tmp
bindir := $(prefix)/usr/bin
sbindir := $(prefix)/usr/sbin
libdir := $(prefix)/usr/lib
localstatedir := $(prefix)/var
rubylibdir := $(libdir)/ruby/1.8
sysconfdir := $(prefix)/etc
pkgconfdir := $(sysconfdir)/puppet
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
configure: configure-stamp
configure-stamp:
dh_testdir
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -f debian/puppet-common.logcheck.ignore.server
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Note sbindir does nothing right now. Leaving in for future
# puppet versions where it is respected.
$(CURDIR)/install.rb --destdir=debian/tmp --bindir=/usr/bin \
--sbindir=/usr/sbin --sitelibdir=/usr/lib/ruby/1.8
# strip executable bit from all the non-executable files.
find debian/tmp/usr/lib/ruby/1.8 -type f -perm /u+x,g+x,o+x -exec chmod a-x {} \;
# fix the permissions on all of the directories
find debian/tmp/usr/lib/ruby/1.8 -type d -exec chmod 755 {} \;
# Vim auto-syntax-highlighting stuff
$(INSTALL) -m0644 ext/vim/syntax/puppet.vim \
$(CURDIR)/debian/vim-puppet/usr/share/vim/addons/syntax/
$(INSTALL) -m0644 ext/vim/ftdetect/puppet.vim \
$(CURDIR)/debian/vim-puppet/usr/share/vim/addons/ftdetect/
$(INSTALL) -m0644 debian/vim-puppet.yaml \
$(CURDIR)/debian/vim-puppet/usr/share/vim/registry/
# Emacs mode
$(INSTALL) -m0644 ext/emacs/puppet-mode.el \
$(CURDIR)/debian/puppet-el/usr/share/emacs/site-lisp/puppet-mode.el
# Install the rack README as README.rack
$(INSTALL) -m0644 ext/rack/README \
$(CURDIR)/debian/puppetmaster/usr/share/doc/puppetmaster/README.rack
# Install the config.ru and the necessary helper directories
$(INSTALL) -d -m0755 $(CURDIR)/debian/puppetmaster/usr/share/puppet/rack/puppetmasterd
$(INSTALL) -d -m0755 $(CURDIR)/debian/puppetmaster/usr/share/puppet/rack/puppetmasterd/public
$(INSTALL) -d -m0755 $(CURDIR)/debian/puppetmaster/usr/share/puppet/rack/puppetmasterd/tmp
$(INSTALL) -m0644 ext/rack/files/config.ru \
$(CURDIR)/debian/puppetmaster/usr/share/puppet/rack/puppetmasterd
dh_installexamples -p puppet-common examples/*
$(INSTALL) -d -m0775 $(pkgconfdir)/templates
$(INSTALL) -d -m0775 $(pkgconfdir)/modules
# Logcheck rules. Gee I wish you could specify a file to source
# in dh_installlogcheck.
ln ext/logcheck/puppet debian/puppet-common.logcheck.ignore.server
# Build architecture-dependent files here.
binary-arch: build install
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
dh_installchangelogs -i CHANGELOG
dh_installdocs -i
dh_installemacsen
dh_installlogcheck
dh_installman
dh_installinit -ppuppetmaster
dh_installinit --name=puppetqd
dh_installinit -ppuppet --error-handler=true -- defaults 21
dh_installlogrotate -i
dh_lintian -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|