~ubuntu-branches/ubuntu/lucid/ntp/lucid

2 by Bdale Garbee
move to US main! Yippee!
1
#!/usr/bin/make -f
2
32 by Kees Cook
debian/{control,rules}: add and enable hardened build for PIE
3
export DEB_BUILD_HARDENING=1
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
4
5
# hacks to avoid running these things during the build
6
export ACLOCAL    = : aclocal
7
export AUTOCONF   = : autoconf
8
export AUTOMAKE   = : automake
9
export AUTOHEADER = : autoheader
10
4.2.2 by Kurt Roeckx
* Use uname -s instead of dpkg-architecture to found the kernel we're
11
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
12
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
13
CFLAGS = -g -fno-strict-aliasing
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15
CFLAGS += -O0
16
else
17
CFLAGS += -O2
18
endif
19
4.2.2 by Kurt Roeckx
* Use uname -s instead of dpkg-architecture to found the kernel we're
20
config.status:
3 by Matt Zimmerman
Use ntp.ubuntulinux.org instead of pool.ntp.org
21
	dh_testdir
4.2.2 by Kurt Roeckx
* Use uname -s instead of dpkg-architecture to found the kernel we're
22
ifeq (hurd, $(DEB_HOST_ARCH_OS))
23
	# hurd does not provided the system calls needed for ntpd to work.
24
	exit 1
25
endif
4.2.1 by Peter Eisentraut
* Fixed typo in ntpdate man page (closes: #526086)
26
	cp /usr/share/misc/config.guess /usr/share/misc/config.sub .
38 by Chuck Short, Chuck Short
* Merge from debian testing, remaining changes:
27
4.1.2 by Peter Eisentraut
* New upstream release
28
	./configure CFLAGS='$(CFLAGS)' CPPFLAGS='-D_GNU_SOURCE' \
22 by Mathias Gug
* Merge from debian unstable, remaining changes:
29
		ac_cv_var_tick=no ac_cv_var_tickadj=no \
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
30
		--prefix=/usr \
3 by Matt Zimmerman
Use ntp.ubuntulinux.org instead of pool.ntp.org
31
		--enable-all-clocks --enable-parse-clocks --enable-SHM \
35 by Chuck Short
* debian/rules: enable debugging (LP: #47683)
32
		--enable-debugging --sysconfdir=/var/lib/ntp \
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
33
		--with-sntp=no \
34
		--disable-dependency-tracking
35
4.2.2 by Kurt Roeckx
* Use uname -s instead of dpkg-architecture to found the kernel we're
36
build: build-stamp
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
37
build-stamp: config.status
2 by Bdale Garbee
move to US main! Yippee!
38
	dh_testdir
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
39
	$(MAKE)
40
	touch $@
41
4.2.2 by Kurt Roeckx
* Use uname -s instead of dpkg-architecture to found the kernel we're
42
clean:
2 by Bdale Garbee
move to US main! Yippee!
43
	dh_testdir
44
	dh_testroot
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
45
	rm -f build-stamp 
19 by Mathias Gug
* Merge from debian unstable, remaining changes:
46
	[ ! -f Makefile ] || $(MAKE) -k distclean
4.2.1 by Peter Eisentraut
* Fixed typo in ntpdate man page (closes: #526086)
47
	rm -f config.guess config.sub
2 by Bdale Garbee
move to US main! Yippee!
48
	dh_clean
49
3 by Matt Zimmerman
Use ntp.ubuntulinux.org instead of pool.ntp.org
50
install: build-stamp
2 by Bdale Garbee
move to US main! Yippee!
51
	dh_testdir
52
	dh_testroot
53
	dh_clean -k
54
	dh_installdirs
55
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
56
	$(MAKE) install DESTDIR=$(CURDIR)/debian/ntp
57
58
	# move the administrator programs from /usr/bin to /usr/sbin
22 by Mathias Gug
* Merge from debian unstable, remaining changes:
59
	for file in ntpdate ntp-wait ntpd ntptime ntp-keygen; do \
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
60
		mv debian/ntp/usr/bin/$$file debian/ntp/usr/sbin/$$file || exit; \
61
	done
62
63
	install -D -m 0755 scripts/ntpsweep debian/ntp/usr/bin/ntpsweep
20 by Scott Kitterman
* Merge from debian unstable, remaining changes:
64
	install -D -m 0644 debian/ntp.dhcp debian/ntp/etc/dhcp3/dhclient-exit-hooks.d/ntp
65
	install -D -m 0644 debian/ntpdate.dhcp debian/ntpdate/etc/dhcp3/dhclient-exit-hooks.d/ntpdate
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
66
	install -D -m 0755 debian/ntpdate-debian debian/ntpdate/usr/sbin/ntpdate-debian
67
68
	install -D -m 0644 debian/ntp.conf debian/ntp/etc/ntp.conf
4.1.1 by Kurt Roeckx
It did not properly check the return value of EVP_VerifyFinal
69
17 by Steve Kowalik
* Merge from Debian unstable.
70
	# remove upstream man pages, which are currently not as nice as ours
71
	rm $(addprefix debian/ntp/usr/share/man/man1/,ntpd.1 ntpdc.1 ntpdsim.1 ntp-keygen.1 ntpq.1)
72
19 by Mathias Gug
* Merge from debian unstable, remaining changes:
73
	rmdir debian/ntp/usr/lib/
74
31 by Jamie Strandboge
* Add enforcing AppArmor profile (LP: #382905)
75
	# install apparmor profile
76
	install -D -m 0644 debian/apparmor-profile debian/ntp/etc/apparmor.d/usr.sbin.ntpd
77
	install -D -m 0644 debian/apparmor-profile.tunable debian/ntp/etc/apparmor.d/tunables/ntpd
37 by Kees Cook
debian/rules: install symlink for early loading of per-interface
78
	dh_link -pntp etc/apparmor.d/usr.sbin.ntpd etc/apparmor/init/network-interface-security/usr.sbin.ntpd
31 by Jamie Strandboge
* Add enforcing AppArmor profile (LP: #382905)
79
38 by Chuck Short, Chuck Short
* Merge from debian testing, remaining changes:
80
	# install apport hook
81
	install -D -m 644 debian/source_ntp.py debian/ntp/usr/share/apport/package-hooks/source_ntp.py
82
2 by Bdale Garbee
move to US main! Yippee!
83
	dh_movefiles --sourcedir=debian/ntp
84
85
binary-indep: build install
86
	dh_testdir -i
87
	dh_testroot -i
88
	dh_installdocs -i html
89
	rm -f debian/ntp-doc/usr/share/doc/ntp-doc/html/hints/solaris*
90
	dh_installexamples -i
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
91
	dh_installman -i
2 by Bdale Garbee
move to US main! Yippee!
92
	dh_installcron -i
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
93
	dh_installlogcheck -i
2 by Bdale Garbee
move to US main! Yippee!
94
	dh_installchangelogs -i
22 by Mathias Gug
* Merge from debian unstable, remaining changes:
95
	dh_installifupdown -i
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
96
	dh_perl -i
97
	dh_compress -i
2 by Bdale Garbee
move to US main! Yippee!
98
	dh_fixperms -i
99
	dh_installdeb -i
100
	dh_gencontrol -i
101
	dh_md5sums -i
102
	dh_builddeb -i
103
104
binary-arch: build install
105
	dh_testdir -a
106
	dh_testroot -a
107
	dh_installdocs -a
108
	dh_installexamples -a
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
109
	dh_installman -a
22 by Mathias Gug
* Merge from debian unstable, remaining changes:
110
	dh_installinit -pntp --update-rcd-params="start 23 2 3 4 5 . stop 77 1 ." --error-handler=installinit_error
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
111
	dh_installinit -pntpdate
2 by Bdale Garbee
move to US main! Yippee!
112
	dh_installcron -a
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
113
	dh_installlogcheck -a
3 by Matt Zimmerman
Use ntp.ubuntulinux.org instead of pool.ntp.org
114
	dh_installchangelogs -a
22 by Mathias Gug
* Merge from debian unstable, remaining changes:
115
	dh_installifupdown -a
14 by Scott James Remnant
* Merge from debian unstable, remaining changes:
116
	dh_perl -a
2 by Bdale Garbee
move to US main! Yippee!
117
	dh_strip -a
118
	dh_compress -a
119
	dh_fixperms -a
120
	dh_installdeb -a
121
	dh_shlibdeps -a
122
	dh_gencontrol -a
123
	dh_md5sums -a
124
	dh_builddeb -a
125
126
binary: binary-indep binary-arch
4.2.2 by Kurt Roeckx
* Use uname -s instead of dpkg-architecture to found the kernel we're
127
.PHONY: build clean binary-indep binary-arch binary install