File: rules

package info (click to toggle)
php-dapphp-radius 2.5.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 304 kB
  • sloc: php: 2,095; makefile: 15; xml: 9
file content (23 lines) | stat: -rwxr-xr-x 661 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
#!/usr/bin/make -f

UPSTREAM_GIT ?= https://github.com/dapphp/radius/
include /usr/share/openstack-pkg-tools/pkgos.make

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab --output lib/Crypt/CHAP/autoload.php lib
	phpab \
		--template debian/autoload.php.tpl \
		--output src/autoload.php \
		src
	mkdir --parent vendor Dapphp
	cp debian/autoload.php vendor
	# Mimic install path for tests
	ln -s ../src Dapphp/Radius

override_dh_auto_test:
	# Load OpenSSL legacy providers. The DES algorythm is needed in the MSCHAP tests
	# https://wiki.openssl.org/index.php/OpenSSL_3.0#Providers
	OPENSSL_CONF=debian/tests/openssl.conf phpunit --include-path lib