33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
1 |
#!/usr/bin/make -f
|
2 |
||
88.2.5
by Ignacio Nin
debian packaging update and testing |
3 |
#export DH_VERBOSE=1
|
33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
4 |
|
88.2.5
by Ignacio Nin
debian packaging update and testing |
5 |
include /usr/share/dpatch/dpatch.make |
33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
6 |
|
7 |
CMAKE=cmake |
|
8 |
TMP=$(CURDIR)/debian/tmp/ |
|
9 |
||
10 |
feature_set="community" |
|
214.2.1
by Ignacio Nin
Update versions to 5.5.20-24.1 |
11 |
compilation_comment_release="Percona Server (GPL), Release 24.1" |
33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
12 |
server_suffix="-55" |
88.2.5
by Ignacio Nin
debian packaging update and testing |
13 |
prefix="/usr" |
14 |
||
15 |
clean: clean-patched unpatch |
|
16 |
||
17 |
clean-patched: |
|
33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
18 |
dh clean |
19 |
rm -rf CMakeFiles |
|
20 |
||
88.2.5
by Ignacio Nin
debian packaging update and testing |
21 |
build: patch |
214.2.1
by Ignacio Nin
Update versions to 5.5.20-24.1 |
22 |
echo "Building Percona Server 24.1" |
33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
23 |
dh_testdir
|
24 |
$(CMAKE) . -DBUILD_CONFIG=mysql_release \ |
|
25 |
-DINSTALL_LAYOUT=DEB \ |
|
26 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
|
27 |
-DWITH_EMBEDDED_SERVER=OFF \ |
|
28 |
-DMYSQL_UNIX_ADDR="/var/run/mysqld/mysqld.sock" \ |
|
29 |
-DFEATURE_SET=$(feature_set) \ |
|
30 |
-DCOMPILATION_COMMENT=$(compilation_comment_release) \ |
|
31 |
-DMYSQL_SERVER_SUFFIX=$(server_suffix) |
|
140.13.1
by Ignacio Nin
Adapt debian patches to the new version |
32 |
make $(MAKE_JFLAG) |
88.2.14
by Ignacio Nin
Include HandlerSocket and UDF extensions |
33 |
|
34 |
# Build HandlerSocket
|
|
35 |
echo "Configuring HandlerSocket" |
|
36 |
cd storage/HandlerSocket-Plugin-for-MySQL && \ |
|
37 |
bash -x autogen.sh && \ |
|
38 |
CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \ |
|
39 |
./configure --with-mysql-source=$(CURDIR) \ |
|
40 |
--with-mysql-bindir=$(CURDIR)/scripts \ |
|
41 |
--with-mysql-plugindir=$(prefix)/lib/mysql/plugin \ |
|
42 |
--libdir=$(prefix)/lib \ |
|
43 |
--prefix=$(prefix) && \ |
|
140.13.1
by Ignacio Nin
Adapt debian patches to the new version |
44 |
make $(MAKE_JFLAG) |
88.2.14
by Ignacio Nin
Include HandlerSocket and UDF extensions |
45 |
|
46 |
# Build UDF
|
|
47 |
cd UDF && \ |
|
48 |
CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \ |
|
49 |
./configure --includedir=$(CURDIR)/include \ |
|
50 |
--libdir=$(prefix)/lib/mysql/plugin && \ |
|
140.13.1
by Ignacio Nin
Adapt debian patches to the new version |
51 |
make $(MAKE_JFLAG) |
88.2.14
by Ignacio Nin
Include HandlerSocket and UDF extensions |
52 |
|
33.3.5
by Aleksandr Kuzminsky
Added Debian build rules |
53 |
dh_auto_test
|
54 |
||
88.2.16
by Ignacio Nin
Remove dh overrides in favor of --before/--after |
55 |
binary: |
88.2.5
by Ignacio Nin
debian packaging update and testing |
56 |
echo "Making binary" |
88.2.16
by Ignacio Nin
Remove dh overrides in favor of --before/--after |
57 |
dh --before dh_auto_install binary |
58 |
dh_auto_install
|
|
59 |
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install |
|
60 |
cd UDF && make DESTDIR=$(TMP) install |
|
61 |
dh --after dh_auto_install --before dh_installinit binary |
|
62 |
dh_installinit --name=mysql |
|
63 |
dh --after dh_installinit binary |
|
64 |
||
88.2.5
by Ignacio Nin
debian packaging update and testing |
65 |
|
66 |
binary-arch: |
|
88.2.16
by Ignacio Nin
Remove dh overrides in favor of --before/--after |
67 |
echo "Making binary" |
68 |
dh --before dh_auto_install binary-arch |
|
69 |
dh_auto_install
|
|
70 |
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install |
|
71 |
cd UDF && make DESTDIR=$(TMP) install |
|
72 |
dh --after dh_auto_install --before dh_installinit binary-arch |
|
73 |
dh_installinit --name=mysql |
|
74 |
dh --after dh_installinit binary-arch |
|
88.2.5
by Ignacio Nin
debian packaging update and testing |
75 |
|
76 |
binary-indep: |
|
88.2.16
by Ignacio Nin
Remove dh overrides in favor of --before/--after |
77 |
echo "Making binary" |
78 |
dh --before dh_auto_install binary-indep |
|
79 |
dh_auto_install
|
|
80 |
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install |
|
81 |
cd UDF && make DESTDIR=$(TMP) install |
|
82 |
dh --after dh_auto_install --before dh_installinit binary-indep |
|
83 |
dh_installinit --name=mysql |
|
84 |
dh --after dh_installinit binary-indep |
|
88.2.5
by Ignacio Nin
debian packaging update and testing |
85 |
|
86 |
install: |
|
88.2.16
by Ignacio Nin
Remove dh overrides in favor of --before/--after |
87 |
echo "Making binary" |
88 |
dh --before dh_auto_install install |
|
88.2.14
by Ignacio Nin
Include HandlerSocket and UDF extensions |
89 |
dh_auto_install
|
90 |
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install |
|
91 |
cd UDF && make DESTDIR=$(TMP) install |
|
88.2.16
by Ignacio Nin
Remove dh overrides in favor of --before/--after |
92 |
dh --after dh_auto_install --before dh_installinit install |
93 |
dh_installinit --name=mysql |
|
94 |
dh --after dh_installinit install |