forked from theforeman/ovirt-node-plugin-foreman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
62 lines (57 loc) · 2.23 KB
/
configure.ac
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
# vim: ts=8:sw=8:noet
#
# Copyright (C) 2013 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
AC_INIT([ovirt-node-plugin-foreman], [0.3.1], [foreman-dev@googlegroups.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign -Wno-portability tar-pax])
AC_SUBST([ENGINENAME], ['Foreman Discovery'])
PKG_PROG_PKG_CONFIG
AC_MSG_CHECKING([whether to enable plugin debug support])
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
[turn on debug support (starts ssh daemon and sets root password)]))
if test x$enable_debug = xyes; then
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([WARNING: ssh daemon enabled and root password set to 'development'])
PLUGIN_DEBUG=1
EXTRA_FIREWALL_RULE="22,tcp"
else
AC_MSG_RESULT([no])
PLUGIN_DEBUG=0
EXTRA_FIREWALL_RULE="#22,tcp"
fi
AC_SUBST(PLUGIN_DEBUG)
AC_SUBST(EXTRA_FIREWALL_RULE)
AC_MSG_CHECKING([for systemd unit directory])
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
[Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
AC_MSG_RESULT([done])
AC_CONFIG_FILES([Makefile
src/Makefile
conf/Makefile
recipe/Makefile
src/discover-host.rb
conf/foreman-plugin.firewall
src/discovery-version-fact.rb
ovirt-node-plugin-foreman.spec])
AC_OUTPUT