File: rules

package info (click to toggle)
mysql-defaults 1.0.5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 92 kB
  • sloc: sh: 60; makefile: 27
file content (34 lines) | stat: -rwxr-xr-x 1,192 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
32
33
34
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

ifeq (Ubuntu,$(shell dpkg-vendor --derives-from Ubuntu && echo Ubuntu))
default-mysql-client-core	 = mysql-client-core-5.7
default-mysql-client		 = mysql-client-5.7
default-mysql-server-core	 = mysql-server-core-5.7
default-mysql-server		 = mysql-server-5.7
default-libmysqlclient-dev	 = libmysqlclient-dev
default-libmysqld-dev		 = libmysqld-dev
else
default-mysql-client-core	 = mariadb-client-core-10.3
default-mysql-client		 = mariadb-client-10.3
default-mysql-server-core	 = mariadb-server-core-10.3
default-mysql-server		 = mariadb-server-10.3
default-libmysqlclient-dev	 = libmariadb-dev-compat
default-libmysqld-dev		 = libmariadbd-dev
endif

%:
	dh $@

override_dh_gencontrol:
	dh_gencontrol -pmysql-common -- -v5.8+$(DEB_VERSION)
	dh_gencontrol -Nmysql-common -- \
		-Vdefault:mysql-client-core=$(default-mysql-client-core) \
		-Vdefault:mysql-client=$(default-mysql-client) \
		-Vdefault:mysql-server-core=$(default-mysql-server-core) \
		-Vdefault:mysql-server=$(default-mysql-server) \
		-Vdefault:libmysqlclient-dev=$(default-libmysqlclient-dev) \
		-Vdefault:libmysqld-dev=$(default-libmysqld-dev)