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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
include /usr/share/dpatch/dpatch.make
CMAKE=cmake
TMP=$(CURDIR)/debian/tmp/
feature_set="community"
compilation_comment_release="Percona Server (GPL), Release 24.1"
server_suffix="-55"
prefix="/usr"
clean: clean-patched unpatch
clean-patched:
dh clean
rm -rf CMakeFiles
build: patch
echo "Building Percona Server 24.1"
dh_testdir
$(CMAKE) . -DBUILD_CONFIG=mysql_release \
-DINSTALL_LAYOUT=DEB \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DWITH_EMBEDDED_SERVER=OFF \
-DMYSQL_UNIX_ADDR="/var/run/mysqld/mysqld.sock" \
-DFEATURE_SET=$(feature_set) \
-DCOMPILATION_COMMENT=$(compilation_comment_release) \
-DMYSQL_SERVER_SUFFIX=$(server_suffix)
make $(MAKE_JFLAG)
# Build HandlerSocket
echo "Configuring HandlerSocket"
cd storage/HandlerSocket-Plugin-for-MySQL && \
bash -x autogen.sh && \
CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \
./configure --with-mysql-source=$(CURDIR) \
--with-mysql-bindir=$(CURDIR)/scripts \
--with-mysql-plugindir=$(prefix)/lib/mysql/plugin \
--libdir=$(prefix)/lib \
--prefix=$(prefix) && \
make $(MAKE_JFLAG)
# Build UDF
cd UDF && \
CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \
./configure --includedir=$(CURDIR)/include \
--libdir=$(prefix)/lib/mysql/plugin && \
make $(MAKE_JFLAG)
dh_auto_test
binary:
echo "Making binary"
dh --before dh_auto_install binary
dh_auto_install
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install
cd UDF && make DESTDIR=$(TMP) install
dh --after dh_auto_install --before dh_installinit binary
dh_installinit --name=mysql
dh --after dh_installinit binary
binary-arch:
echo "Making binary"
dh --before dh_auto_install binary-arch
dh_auto_install
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install
cd UDF && make DESTDIR=$(TMP) install
dh --after dh_auto_install --before dh_installinit binary-arch
dh_installinit --name=mysql
dh --after dh_installinit binary-arch
binary-indep:
echo "Making binary"
dh --before dh_auto_install binary-indep
dh_auto_install
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install
cd UDF && make DESTDIR=$(TMP) install
dh --after dh_auto_install --before dh_installinit binary-indep
dh_installinit --name=mysql
dh --after dh_installinit binary-indep
install:
echo "Making binary"
dh --before dh_auto_install install
dh_auto_install
cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install
cd UDF && make DESTDIR=$(TMP) install
dh --after dh_auto_install --before dh_installinit install
dh_installinit --name=mysql
dh --after dh_installinit install
|