Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f93b5a60
Commit
f93b5a60
authored
Feb 08, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make rpm packages to respect CMAKE_INSTALL_PREFIX
parent
bfd179e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
20 deletions
+25
-20
CMakeLists.txt
CMakeLists.txt
+1
-5
cmake/cpack_rpm.cmake
cmake/cpack_rpm.cmake
+17
-14
cmake/install_layout.cmake
cmake/install_layout.cmake
+7
-1
No files found.
CMakeLists.txt
View file @
f93b5a60
...
...
@@ -132,14 +132,10 @@ IF (NOT CPACK_GENERATOR)
ENDIF
(
WIN32
)
ENDIF
(
NOT CPACK_GENERATOR
)
IF
(
DEB
)
SET
(
INSTALL_LAYOUT
"DEB"
)
ENDIF
(
DEB
)
INCLUDE
(
mysql_version
)
INCLUDE
(
cpack_rpm
)
INCLUDE
(
cpack_source_ignore_files
)
INCLUDE
(
install_layout
)
INCLUDE
(
cpack_rpm
)
# Add macros
INCLUDE
(
character_sets
)
...
...
cmake/cpack_rpm.cmake
View file @
f93b5a60
...
...
@@ -2,7 +2,7 @@ IF(RPM)
SET
(
CPACK_GENERATOR
"RPM"
)
SET
(
CPACK_RPM_PACKAGE_DEBUG 1
)
SET
(
INSTALL_LAYOUT
"RPM"
)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.7
)
SET
(
CPACK_RPM_COMPONENT_INSTALL ON
)
...
...
@@ -49,9 +49,12 @@ MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
SET
(
CPACK_RPM_SPEC_MORE_DEFINE
"
%define mysql_vendor
${
CPACK_PACKAGE_VENDOR
}
%define mysqlversion
${
MYSQL_NO_DASH_VERSION
}
%define mysqldatadir
/var/lib/mysql
%define mysqldatadir
${
INSTALL_MYSQLDATADIR
}
%define mysqld_user mysql
%define mysqld_group mysql
%define _bindir
${
CMAKE_INSTALL_PREFIX
}
/
${
INSTALL_BINDIR
}
%define _sbindir
${
CMAKE_INSTALL_PREFIX
}
/
${
INSTALL_SBINDIR
}
%define _sysconfdir
${
INSTALL_SYSCONFDIR
}
"
)
# this creative hack is described here: http://www.cmake.org/pipermail/cmake/2012-January/048416.html
...
...
@@ -68,18 +71,18 @@ SET(ignored
"%ignore /etc"
"%ignore /etc/init.d"
"%ignore /etc/logrotate.d"
"%ignore
/usr
"
"%ignore
/usr
/bin"
"%ignore
/usr
/include"
"%ignore
/usr
/lib"
"%ignore
/usr
/lib64"
"%ignore
/usr
/sbin"
"%ignore
/usr
/share"
"%ignore
/usr
/share/aclocal"
"%ignore
/usr
/share/doc"
"%ignore
/usr
/share/man"
"%ignore
/usr
/share/man/man1*"
"%ignore
/usr
/share/man/man8*"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/bin"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/include"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/lib"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/lib64"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/sbin"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/aclocal"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/doc"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man/man1*"
"%ignore
${
CMAKE_INSTALL_PREFIX
}
/share/man/man8*"
)
SET
(
CPACK_RPM_server_USER_FILELIST
${
ignored
}
"%config(noreplace) /etc/my.cnf.d/*"
)
...
...
cmake/install_layout.cmake
View file @
f93b5a60
...
...
@@ -67,7 +67,13 @@
# http://forge.mysql.com/wiki/CMake#Fine-tuning_installation_paths
IF
(
NOT INSTALL_LAYOUT
)
SET
(
INSTALL_LAYOUT
"STANDALONE"
)
IF
(
DEB
)
SET
(
INSTALL_LAYOUT
"DEB"
)
ELSEIF
(
RPM
)
SET
(
INSTALL_LAYOUT
"RPM"
)
ELSE
()
SET
(
INSTALL_LAYOUT
"STANDALONE"
)
ENDIF
()
ENDIF
()
SET
(
INSTALL_LAYOUT
"
${
INSTALL_LAYOUT
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment