File: rules

package info (click to toggle)
puppet-agent 7.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,092 kB
  • sloc: ruby: 245,074; sh: 456; makefile: 38; xml: 33
file content (57 lines) | stat: -rwxr-xr-x 1,892 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

execute_after_dh_auto_build:
	HOME=$$(mktemp -d) LC_ALL=C.UTF-8 rake gen_manpages

#override_dh_auto_test:
#   # The puppet-agent testsuite is extensive and does not
#   # work at this time as part of the Debian build process.
#	rake spec TEST=spec/unit
#	rake spec TEST=spec/integration

override_dh_auto_install:
	./install.rb --destdir=debian/tmp \
		--codedir=/etc/puppet/code \
		--configdir=/etc/puppet \
		--vardir=/var/cache/puppet \
		--publicdir=/var/lib/puppet/public \
		--rundir=/run/puppet \
		--logdir=/var/log/puppet \
		--localedir=/usr/share/puppet/locale \
		--ruby=/usr/bin/ruby \
		--sitelibdir=/usr/lib/ruby/vendor_ruby

override_dh_install:
	dh_install -Xusr/share/man

execute_after_dh_install:
	mkdir -p $(CURDIR)/debian/puppet-agent/usr/share/rubygems-integration/all/specifications
	sed -e "s#%DEB_VERSION_UPSTREAM%#$(DEB_VERSION_UPSTREAM)#g" < debian/puppet.gemspec.in > debian/puppet.gemspec
	install -m 644 $(CURDIR/)debian/puppet.gemspec \
		$(CURDIR)/debian/puppet-agent/usr/share/rubygems-integration/all/specifications/puppet-$(DEB_VERSION_UPSTREAM).gemspec

execute_after_dh_installexamples:
	find debian/puppet-common/usr/share/doc/puppet-common/examples -type f -print0 | \
	  xargs -r -0 chmod 644

override_dh_missing:
	dh_missing --fail-missing -Xusr/share/man

override_dh_clean:
	dh_clean metadata.yml
	@rm -f debian/puppet.gemspec

override_dh_installinit:
	install -m 0755 $(CURDIR)/ext/debian/puppet.init $(CURDIR)/debian/puppet-agent.puppet.init
	install -m 0644 $(CURDIR)/ext/debian/puppet.default $(CURDIR)/debian/puppet-agent.puppet.default
	dh_installinit --name=puppet --no-enable

override_dh_installsystemd:
	install -m 0644 $(CURDIR)/ext/systemd/puppet.service $(CURDIR)/debian/puppet-agent.puppet.service
	dh_installsystemd --name=puppet --no-enable