Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 PACKAGE = $(shell dh_listpackages)
4 TMP = $(CURDIR)/debian/$(PACKAGE)
5
6 include /usr/share/dpkg/architecture.mk
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 export MYSQL_DIR=$(CURDIR)/t/testdb
11 export MYSQL_UNIX_PORT=$(MYSQL_DIR)/mysql.sock
12 export MYSQL_PIDFILE=$(MYSQL_DIR)/mysql.pid
13 export MYSQL_USER=$(shell whoami)
14
15 # DBD::MariaDB test setup
16 export DBD_MARIADB_TESTDB=testdb
17 export DBD_MARIADB_TESTHOST=localhost
18 export DBD_MARIADB_TESTSOCKET=$(MYSQL_UNIX_PORT)
19 export DBD_MARIADB_TESTUSER=testuser
20 export DBD_MARIADB_TESTPASSWORD=testpassword
21
22 %:
23 dh $@
24
25 override_dh_auto_configure:
26 LC_ALL=C.UTF-8 dh_auto_configure
27
28 override_dh_auto_test:
29 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
30 # prepare mariadb/mysql server
31 sh $(CURDIR)/debian/tests/pkg-perl/smoke-setup
32
33 dh_auto_test
34
35 # tear down mariadb/mysql server
36 sh $(CURDIR)/debian/tests/pkg-perl/smoke-cleanup
37 endif
38
39 override_dh_auto_install:
40 dh_auto_install
41 find $(TMP) -type f -name "*README*" -delete
42 find $(TMP) -type f -name "*INSTALL*" -delete
43 rmdir --ignore-fail-on-non-empty --parents --verbose \
44 $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/perl5/*/DBD/MariaDB/