mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 12:14:44 +02:00
Updated RPM packaging scripts.
This commit is contained in:
parent
2864460419
commit
98dae64a84
@ -25,7 +25,7 @@ icinga2doc_DATA = \
|
|||||||
NEWS
|
NEWS
|
||||||
|
|
||||||
|
|
||||||
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh
|
EXTRA_DIST = $(icinga2doc_DATA) git_version.sh icinga2.spec
|
||||||
|
|
||||||
|
|
||||||
# Remove doc directory on uninstall
|
# Remove doc directory on uninstall
|
||||||
|
3
README
3
README
@ -33,6 +33,9 @@ These components are only used on the target system if your C++ compiler does
|
|||||||
not at least support TR1 and there's no other system-wide installation of the
|
not at least support TR1 and there's no other system-wide installation of the
|
||||||
Boost library.
|
Boost library.
|
||||||
|
|
||||||
|
Debian Packages
|
||||||
|
---------------
|
||||||
|
|
||||||
This program comes with its own Debian packaging scripts which may or may not
|
This program comes with its own Debian packaging scripts which may or may not
|
||||||
fully comply with the official Debian packaging requirements. These scripts can
|
fully comply with the official Debian packaging requirements. These scripts can
|
||||||
be found in the 'debian' sub-directory. Binary packages can be built using
|
be found in the 'debian' sub-directory. Binary packages can be built using
|
||||||
|
13
configure.ac
13
configure.ac
@ -24,6 +24,17 @@ AC_CONFIG_HEADERS([config.h])
|
|||||||
AM_INIT_AUTOMAKE([1.11])
|
AM_INIT_AUTOMAKE([1.11])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
|
|
||||||
|
AC_PROG_CXX
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_LANG_C
|
||||||
|
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
AX_CXX_COMPILE_STDCXX_0X
|
||||||
|
AX_CXX_GCC_ABI_DEMANGLE
|
||||||
|
AX_PTHREAD
|
||||||
|
|
||||||
LT_INIT([dlopen, disable-static])
|
LT_INIT([dlopen, disable-static])
|
||||||
LT_CONFIG_LTDL_DIR([ltdl])
|
LT_CONFIG_LTDL_DIR([ltdl])
|
||||||
LTDL_INIT
|
LTDL_INIT
|
||||||
@ -43,8 +54,6 @@ DX_INIT_DOXYGEN([icinga], [Doxyfile], [doc])
|
|||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CXX
|
|
||||||
AC_LANG_CPLUSPLUS
|
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AX_CXX_COMPILE_STDCXX_0X
|
AX_CXX_COMPILE_STDCXX_0X
|
||||||
AX_CXX_GCC_ABI_DEMANGLE
|
AX_CXX_GCC_ABI_DEMANGLE
|
||||||
|
@ -4,71 +4,35 @@ Version: @VERSION@
|
|||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: https://github.com/gunnarbeutner/strawberry/
|
Source: %{name}-%{version}.tar.gz
|
||||||
URL: http://www.icinga.org/
|
URL: http://www.icinga.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: boost
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: boost-test
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Icinga 2 is a general-purpose network monitoring application.
|
Icinga is a general-purpose network monitoring application.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --prefix=/usr
|
%configure
|
||||||
make %{?_smp_mflags} all
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||||
|
|
||||||
%define _sharedir %{_prefix}/share
|
|
||||||
%define _libdir %{_prefix}/lib
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/icinga
|
%{_bindir}/icinga
|
||||||
%dir %{_libdir}/icinga
|
%{_datadir}/doc/icinga2
|
||||||
%{_libdir}/icinga/discovery.so.0
|
%{_libdir}/icinga2
|
||||||
%{_libdir}/icinga/discovery.la
|
|
||||||
%{_libdir}/icinga/configrpc.la
|
|
||||||
%{_libdir}/icinga/demo.la
|
|
||||||
%{_libdir}/icinga/configfile.so.0
|
|
||||||
%{_libdir}/icinga/configrpc.so
|
|
||||||
%{_libdir}/icinga/discovery.so.0.0.0
|
|
||||||
%{_libdir}/icinga/libbase.so.0
|
|
||||||
%{_libdir}/icinga/libicinga.so.0.0.0
|
|
||||||
%{_libdir}/icinga/libjsonrpc.so.0
|
|
||||||
%{_libdir}/icinga/configrpc.so.0.0.0
|
|
||||||
%{_libdir}/icinga/libbase.so.0.0.0
|
|
||||||
%{_libdir}/icinga/libicinga.so.0
|
|
||||||
%{_libdir}/icinga/libbase.la
|
|
||||||
%{_libdir}/icinga/configfile.so
|
|
||||||
%{_libdir}/icinga/discovery.so
|
|
||||||
%{_libdir}/icinga/libjsonrpc.so
|
|
||||||
%{_libdir}/icinga/libbase.so
|
|
||||||
%{_libdir}/icinga/demo.so.0
|
|
||||||
%{_libdir}/icinga/configfile.la
|
|
||||||
%{_libdir}/icinga/libjsonrpc.la
|
|
||||||
%{_libdir}/icinga/demo.so.0.0.0
|
|
||||||
%{_libdir}/icinga/configrpc.so.0
|
|
||||||
%{_libdir}/icinga/libicinga.la
|
|
||||||
%{_libdir}/icinga/libjsonrpc.so.0.0.0
|
|
||||||
%{_libdir}/icinga/demo.so
|
|
||||||
%{_libdir}/icinga/configfile.so.0.0.0
|
|
||||||
%{_libdir}/icinga/libicinga.so
|
|
||||||
%dir %{_sharedir}/doc
|
|
||||||
%dir %{_sharedir}/doc/icinga2
|
|
||||||
%{_sharedir}/doc/icinga2
|
|
||||||
%{_sharedir}/doc/icinga2/ChangeLog
|
|
||||||
%{_sharedir}/doc/icinga2/AUTHORS
|
|
||||||
%{_sharedir}/doc/icinga2/INSTALL
|
|
||||||
%{_sharedir}/doc/icinga2/NEWS
|
|
||||||
%{_sharedir}/doc/icinga2/COPYING
|
|
||||||
%{_sharedir}/doc/icinga2/README
|
|
||||||
%{_sharedir}/doc/icinga2/COPYING.Exceptions
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user