forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake,deb: set EnvironmentFile using cmake
this change also fix the EnvironmentFile specified in rbdmap.service. without this change EnvironmentFile in rbdmap.service is always /etc/sysconfig/ceph even on debian derived distros. after this change, this variable is /etc/default/ceph in rbdmap.service shipped by the deb packages. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information
Showing
10 changed files
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ export DESTDIR=$(CURDIR)/debian/tmp | |
export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) | ||
|
||
extraopts += -DUSE_CRYPTOPP=OFF -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_EMBEDDED=OFF | ||
extraopts += -DWITH_CEPHFS_JAVA=ON -DWITH_SYSTEMD=ON | ||
extraopts += -DWITH_CEPHFS_JAVA=ON | ||
extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default | ||
# assumes that ceph is exmpt from multiarch support, so we override the libdir. | ||
extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib | ||
extraopts += -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib | ||
|
@@ -83,17 +84,6 @@ override_dh_installinit: | |
install -d -m0755 debian/ceph-common/usr/lib/tmpfiles.d | ||
install -m 0644 -D systemd/ceph.tmpfiles.d debian/ceph-common/usr/lib/tmpfiles.d/ceph.conf | ||
|
||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mon/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-osd/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-osd/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-osd/lib/systemd/system/[email protected] | ||
|
||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mds/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-fuse/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mgr/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/radosgw/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/rbd-mirror/lib/systemd/system/[email protected] | ||
|
||
dh_installinit -p ceph-base --name ceph --no-start | ||
dh_installinit -p radosgw --no-start | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_LIBEXECDIR}/systemd/system" | ||
CACHE PATH "Location for systemd service files") | ||
set(CEPH_SYSTEMD_ENV_DIR "/etc/sysconf" | ||
CACHE PATH "Location for systemd service environmental variable settings files") | ||
set(SYSTEMD_ENV_FILE "${CEPH_SYSTEMD_ENV_DIR}/ceph") | ||
foreach(service | ||
ceph-fuse@ | ||
ceph-mds@ | ||
ceph-mgr@ | ||
ceph-mon@ | ||
ceph-osd@ | ||
ceph-radosgw@ | ||
ceph-rbd-mirror@ | ||
rbdmap) | ||
configure_file( | ||
${service}.service.in | ||
${service}.service | ||
@ONLY) | ||
install( | ||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${service}.service | ||
DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR}) | ||
endforeach() | ||
|
||
install(FILES | ||
ceph.target | ||
ceph-fuse.target | ||
|
@@ -9,14 +30,6 @@ install(FILES | |
ceph-mds.target | ||
ceph-radosgw.target | ||
ceph-rbd-mirror.target | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
rbdmap.service | ||
DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters