summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 0a934a82cf8aabb6d769024458925f6e874275b4 (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
#!/usr/bin/make -f


%:
	dh $@

# For a while we use binary "sources"
override_dh_auto_configure:
override_dh_auto_build:
override_dh_auto_test:
override_dh_auto_install:
	ln -sf ../root_i386 debian/tmp

override_dh_auto_clean:

override_dh_strip:

# We need man-db for this to work:
override_dh_installman:

override_dh_installmodules:

override_dh_install:
	dh_install

# Seed for ld.so
# Will be copied to /var/ld/ld.config
# and /var/ld/64/ld/config
	mkdir -p debian/libc1/usr/lib/ld/64
	debian/libc-bin/sbin/crle \
		-c debian/libc1/usr/lib/ld/ld.config \
		-l /lib/i386-illumos \
		-l /usr/lib/i386-illumos \
		-l /usr/lib32
	debian/libc-bin/sbin/crle \
		-64 \
		-c debian/libc1/usr/lib/ld/64/ld.config \
		-l /lib/x86_64-illumos \
		-l /usr/lib/x86_64-illumos \
		-l /usr/lib \

	# Add u_int*_t types:
	cd debian/libc1-dev && \
		patch -p1 < ../patches/u_int_types.patch


override_dh_installdocs:
	dh_installdocs -p smf-base
	dh_installdocs -p smf-init  --link-doc=smf-base
	dh_installdocs -p smf-utils --link-doc=smf-base

override_dh_shlibdeps:
	dh_shlibdeps -N illumos-kernel

override_dh_fixperms:
	dh_fixperms

	# ld.so.1 is an interpreter, so must be executable:
	chmod +x debian/libc1/lib/*/ld.so*
	chmod a+rwXt debian/*/tmp
	chmod a+rwXt debian/*/var/tmp

	find debian/*/lib/svc/method -type f -exec chmod +x '{}' \;