Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DH_VERBOSE=1
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
8 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
9 MAKEFLAGS += -j$(NUMJOBS)
10 endif
11
12 override_dh_auto_clean:
13 [ ! -f Make.inc ] || dh_auto_clean
14
15 override_dh_auto_build:
16 # dh_auto_install does both, compilation and installation.
17
18 override_dh_auto_install:
19 VERBOSE=1 $(MAKE) install R=debian/tmp PACKAGE='debian'
20
21 override_dh_auto_test:
22 # TODO: enable testing
23
24 override_dh_install:
25 mv debian/tmp/usr/sbin/radiusd debian/tmp/usr/sbin/freeradius
26 mv debian/tmp/usr/share/man/man8/radiusd.8 debian/tmp/usr/share/man/man8/freeradius.8
27 # Not installed as we do not install the dhcpclient binary as per
28 # https://github.com/FreeRADIUS/freeradius-server/issues/1734#issuecomment-247848277
29 rm debian/tmp/usr/share/man/man1/dhcpclient.1
30 # Remove all libtool .la files, as per
31 # https://wiki.debian.org/ReleaseGoals/LAFileRemoval
32 find debian/tmp/usr/lib/freeradius -name "*.la" -delete
33 # Remove all plugin .a files (unnecessary), keep libfreeradius .a files
34 # for end-users who want to statically link against libfreeradius.
35 find debian/tmp/usr/lib/freeradius -name "*.a" -and \! -name "libfreeradius-*.a" -delete
36 # We create the {mods,sites}-enabled links in freeradius-config.postinst
37 # so that they are not re-created when users upgrade to a newer version.
38 rm debian/tmp/etc/freeradius/3.0/mods-enabled/*
39 rm debian/tmp/etc/freeradius/3.0/sites-enabled/*
40 dh_install
41
42 override_dh_installpam:
43 dh_installpam --name=radiusd
44
45 override_dh_compress:
46 dh_compress -Xexamples
47
48 override_dh_installdocs:
49 dh_installdocs -Xdebian/tmp/usr/share/doc/freeradius/ChangeLog
50
51 override_dh_gencontrol:
52 dh_gencontrol -- $(SUBSTVARS)
53
54 override_dh_auto_configure:
55 dh_auto_configure -- $(confflags) \
56 --config-cache \
57 --disable-developer \
58 --disable-openssl-version-check \
59 --exec-prefix=/usr \
60 --libdir=/usr/lib/freeradius \
61 --datadir=/usr/share \
62 --with-raddbdir=/etc/freeradius/3.0 \
63 --with-logdir=/var/log/freeradius \
64 --with-large-files \
65 --with-udpfromto \
66 --without-rlm_eap_tnc \
67 --with-rlm_sql_postgresql_lib_dir=`pg_config --libdir` \
68 --with-rlm_sql_postgresql_include_dir=`pg_config --includedir` \
69 --with-iodbc-include-dir='/usr/include/iodbc' \
70 --with-modules=rlm_python3 \
71 --without-rlm_eap_ikev2 \
72 --without-rlm_sql_oracle \
73 --without-rlm_sql_unixodbc \
74 --with-systemd \
75 --with-radlast
76
77 %:
78 dh $@