summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: dfd7a8605facf1cee377aa22f1fefd3d8d929d2a (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
#! /usr/bin/make -f
export LC_ALL=C.UTF-8
%:
	dh $@

override_dh_auto_configure:
	# adjust non-standard subsection dir names to FHS:
	sed -i 's/\.so man3type/\.so man3/g' man[3,7]*/*
	sed -i 's/\.so man3const/\.so man3/g' man3*/*
	sed -i 's/\.so man3head/\.so man3/g' man3*/*

override_dh_auto_build:
# Nothing to be done here, we're using a custom installation.

override_dh_installchangelogs:
	dh_installchangelogs Changes

override_dh_installman:
	mv debian/tmp/usr/share/man/man5/proc_config.gz.5 debian/tmp/usr/share/man/man5/proc_config_gz.5
	dh_installman --language=C
	mv debian/manpages/usr/share/man/man5/proc_config_gz.5 debian/manpages/usr/share/man/man5/proc_config.gz.5
	# Prevent broken symlinks, see https://bugs.debian.org/876047
	sh debian/move_links_to_correct_package
	# Remove intro.{2,3} manpages from manpages-dev,
	# they are included in manpages
	rm -f debian/manpages-dev/usr/share/man/man2/intro.2
	rm -f debian/manpages-dev/usr/share/man/man3/intro.3
	# Do not install sk98lin.4, see https://bugs.debian.org/780544
	rm -f debian/manpages/usr/share/man/man4/sk98lin.4
	# Start of automatically added files by debian/check-conflicts
	rm -f debian/manpages/usr/share/man/man1/time.1
	rm -f debian/manpages-dev/usr/share/man/man3/crypt.3
	rm -f debian/manpages-dev/usr/share/man/man3/crypt_r.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_atfork.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_cond_init.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_condattr_init.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_key_create.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_mutex_init.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_mutexattr_destroy.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_mutexattr_init.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_mutexattr_setkind_np.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_once.3
	rm -f debian/manpages/usr/share/man/man4/fd.4
	rm -f debian/manpages/usr/share/man/man5/ftpusers.5
	rm -f debian/manpages/usr/share/man/man5/nscd.conf.5
	rm -f debian/manpages/usr/share/man/man5/passwd.5
	rm -f debian/manpages/usr/share/man/man8/nscd.8
	# End of automatically added files by debian/check-conflicts

# manpages-dev has no docs dir
override_dh_installdocs:
	dh_installdocs
	rm -rf debian/manpages-dev/usr/share/doc/manpages-dev
	ln -s manpages debian/manpages-dev/usr/share/doc/manpages-dev