File: rules

package info (click to toggle)
open-isns 0.100-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,472 kB
  • sloc: ansic: 19,959; sh: 3,211; python: 1,083; perl: 839; makefile: 213
file content (43 lines) | stat: -rwxr-xr-x 1,334 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:

	@# Don't build with SLP support for now, openslp-dfsg is
	@# orphaned (#565361), and will likely not be part of
	@# Stretch (#795428).
	dh_auto_configure -- --enable-shared --enable-static \
		--with-security --without-slp --with-rundir=/run

override_dh_auto_build:
	dh_auto_build
	dh_auto_build -- \
                SOLIB=libisns.so.0 \
                SOLIB_SONAME=libisns.so.0 \
                LIB=libisns.a \
                libisns.a libisns.so.0
 
override_dh_auto_install:
	@# We need to call make install install_hdrs install_lib,
	@# so just add install_hdrs install_lib to the argument
	@# list (install itself is handled by dh_auto_install)
	dh_auto_install -- install_hdrs install_lib
	@# Only install the libraries for the -nocrypto variant.
	make -j1 DESTDIR=$$PWD/debian/tmp \
                SOLIB=libisns.so.0 \
                SOLIB_SONAME=libisns.so.0 \
                LIB=libisns.a \
                install_lib
 
override_dh_installinit:
	dh_installinit -popen-isns-server --name=isnsd
	dh_installinit -popen-isns-discoveryd --name=isnsdd --no-start
	dh_installinit --remaining-packages

override_dh_makeshlibs:
	dh_makeshlibs -plibisns0 --add-udeb="libisns-udeb"
	dh_makeshlibs --remaining-packages