-
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.
Autotools to install systemd unit files.
To simplify the spec file we should install as much using autotools and as little as possible in the spec file. Signed-off-by: Owen Synge <[email protected]>
- Loading branch information
Showing
5 changed files
with
47 additions
and
2 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 |
---|---|---|
|
@@ -54,6 +54,7 @@ release | |
stamp-h1 | ||
systemd/[email protected] | ||
systemd/ceph-rgw.tmpfiles.d | ||
systemd/Makefile | ||
vgcore.* | ||
|
||
# specific local dir files | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1197,6 +1197,7 @@ AC_ARG_WITH( | |
] | ||
) | ||
|
||
|
||
dnl rgw-user | ||
AC_SUBST(user_rgw) | ||
AC_ARG_WITH( | ||
|
@@ -1218,7 +1219,6 @@ AC_ARG_WITH( | |
] | ||
) | ||
|
||
|
||
dnl rgw-group | ||
AC_SUBST(group_rgw) | ||
AC_ARG_WITH( | ||
|
@@ -1241,6 +1241,32 @@ AC_ARG_WITH( | |
) | ||
|
||
|
||
AC_SUBST(systemd_unit_dir) | ||
AC_ARG_WITH( | ||
systemd-unit-dir, | ||
AS_HELP_STRING( | ||
[--with-systemdsystemunitdir=DIR], | ||
[systemd unit directory @<:@SYSTEMD_UNIT_DIR@:>@ | ||
Defaults to the correct value for debian /etc/systemd/system/] | ||
), | ||
[ | ||
systemd_unit_dir="$withval" | ||
], | ||
[ | ||
# default to the systemd admin unit directory | ||
which pkg-config | ||
pkg_config_exists=$? | ||
if test x"$pkg_config_exists" = x"0"; then | ||
systemd_unit_dir=`pkg-config systemd --variable=systemdsystemunitdir` | ||
else | ||
systemd_unit_dir="/etc/systemd/system/" | ||
fi | ||
] | ||
) | ||
|
||
|
||
|
||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
#AC_HEADER_STDBOOL | ||
#AC_C_CONST | ||
|
@@ -1301,6 +1327,7 @@ AC_CONFIG_FILES([Makefile | |
src/ocf/rbd | ||
src/java/Makefile | ||
src/tracing/Makefile | ||
systemd/Makefile | ||
man/Makefile | ||
doc/Makefile | ||
systemd/[email protected] | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
unitfiles = \ | ||
ceph.target \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] | ||
|
||
unitdir = $(systemd_unit_dir) | ||
|
||
unit_DATA = $(unitfiles) | ||
|
||
EXTRA_DIST = $(unitfiles) |