File: rules

package info (click to toggle)
sysfsutils 2.1.0+repack-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,120 kB
  • sloc: sh: 8,685; ansic: 8,035; makefile: 58
file content (31 lines) | stat: -rwxr-xr-x 899 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- --libdir=/lib/$(DEB_HOST_MULTIARCH)

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install
	mkdir -p debian/libsysfs-dev/usr/lib/$(DEB_HOST_MULTIARCH)
	ln -s /lib/$(DEB_HOST_MULTIARCH)/libsysfs.so.2 debian/libsysfs-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libsysfs.so
	cp debian/tmp/lib/*/libsysfs.a debian/libsysfs-dev/usr/lib/$(DEB_HOST_MULTIARCH)
	cp -L debian/tmp/lib/*/libsysfs.so.2 debian/libsysfs2-udeb/lib
	chrpath -d debian/sysfsutils/usr/bin/*

override_dh_missing:
	dh_missing --list-missing

override_dh_installinit:
	dh_installinit -- start 20 2 3 4 5 .

override_dh_makeshlibs:
	dh_makeshlibs --add-udeb="libsysfs2-udeb" -V