forked from CESNET/ipfixcol2
-
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.
Merge remote-tracking branch 'origin/devel' into netflow
- Loading branch information
Showing
58 changed files
with
3,320 additions
and
54 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
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,44 @@ | ||
# The purpose of this file is to automatically determine install directories | ||
# | ||
# If no directories are defined, use GNU install directories by default. | ||
# However, in case of RPM build, install directories are typically passed | ||
# to CMake as definitions that overwrites the default paths. | ||
# | ||
|
||
include(GNUInstallDirs) | ||
|
||
# Binary directories | ||
set(INSTALL_DIR_BIN ${CMAKE_INSTALL_FULL_BINDIR}) | ||
|
||
# Library directories | ||
if (DEFINED LIB_INSTALL_DIR) | ||
set(INSTALL_DIR_LIB ${LIB_INSTALL_DIR}) | ||
else() | ||
set(INSTALL_DIR_LIB ${CMAKE_INSTALL_FULL_LIBDIR}) | ||
endif() | ||
|
||
# Include directories | ||
if (DEFINED INCLUDE_INSTALL_DIR) | ||
set(INSTALL_DIR_INCLUDE ${INCLUDE_INSTALL_DIR}) | ||
else() | ||
set(INSTALL_DIR_INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR}) | ||
endif() | ||
|
||
# System configuration | ||
if (DEFINED SYSCONF_INSTALL_DIR) | ||
set(INSTALL_DIR_SYSCONF ${SYSCONF_INSTALL_DIR}) | ||
else() | ||
set(INSTALL_DIR_SYSCONF ${CMAKE_INSTALL_FULL_SYSCONFDIR}) | ||
endif() | ||
|
||
# Share files (architecture independend data) | ||
if (DEFINED SHARE_INSTALL_PREFIX) | ||
set(INSTALL_DIR_SHARE ${SHARE_INSTALL_PREFIX}) | ||
else() | ||
set(INSTALL_DIR_SHARE ${CMAKE_INSTALL_FULL_DATAROOTDIR}) | ||
endif() | ||
|
||
set(INSTALL_DIR_INFO "${INSTALL_DIR_SHARE}/info/") | ||
set(INSTALL_DIR_MAN "${INSTALL_DIR_SHARE}/man/") | ||
set(INSTALL_DIR_DOC "${INSTALL_DIR_SHARE}/doc/${CMAKE_PROJECT_NAME}/") | ||
|
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
44 changes: 44 additions & 0 deletions
44
extra_plugins/output/unirec/CMakeModules/install_dirs.cmake
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,44 @@ | ||
# The purpose of this file is to automatically determine install directories | ||
# | ||
# If no directories are defined, use GNU install directories by default. | ||
# However, in case of RPM build, install directories are typically passed | ||
# to CMake as definitions that overwrites the default paths. | ||
# | ||
|
||
include(GNUInstallDirs) | ||
|
||
# Binary directories | ||
set(INSTALL_DIR_BIN ${CMAKE_INSTALL_FULL_BINDIR}) | ||
|
||
# Library directories | ||
if (DEFINED LIB_INSTALL_DIR) | ||
set(INSTALL_DIR_LIB ${LIB_INSTALL_DIR}) | ||
else() | ||
set(INSTALL_DIR_LIB ${CMAKE_INSTALL_FULL_LIBDIR}) | ||
endif() | ||
|
||
# Include directories | ||
if (DEFINED INCLUDE_INSTALL_DIR) | ||
set(INSTALL_DIR_INCLUDE ${INCLUDE_INSTALL_DIR}) | ||
else() | ||
set(INSTALL_DIR_INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR}) | ||
endif() | ||
|
||
# System configuration | ||
if (DEFINED SYSCONF_INSTALL_DIR) | ||
set(INSTALL_DIR_SYSCONF ${SYSCONF_INSTALL_DIR}) | ||
else() | ||
set(INSTALL_DIR_SYSCONF ${CMAKE_INSTALL_FULL_SYSCONFDIR}) | ||
endif() | ||
|
||
# Share files (architecture independend data) | ||
if (DEFINED SHARE_INSTALL_PREFIX) | ||
set(INSTALL_DIR_SHARE ${SHARE_INSTALL_PREFIX}) | ||
else() | ||
set(INSTALL_DIR_SHARE ${CMAKE_INSTALL_FULL_DATAROOTDIR}) | ||
endif() | ||
|
||
set(INSTALL_DIR_INFO "${INSTALL_DIR_SHARE}/info/") | ||
set(INSTALL_DIR_MAN "${INSTALL_DIR_SHARE}/man/") | ||
set(INSTALL_DIR_DOC "${INSTALL_DIR_SHARE}/doc/${CMAKE_PROJECT_NAME}/") | ||
|
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
47 changes: 47 additions & 0 deletions
47
extra_plugins/output/unirec/ipfixcol2-unirec-output.spec.in
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,47 @@ | ||
Name: ipfixcol2-unirec-output | ||
Version: @UNIREC_VERSION@ | ||
Release: 1%{?dist} | ||
Summary: Plugin for converting IPFIX data to UniRec format. | ||
|
||
License: BSD | ||
URL: http://www.liberouter.org/ | ||
Source0: %{name}-%{version}.tar.gz | ||
Group: Liberouter | ||
Vendor: CESNET, z.s.p.o. | ||
Packager: | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} | ||
BuildRequires: gcc >= 4.8, cmake >= 2.8.8, make | ||
BuildRequires: ipfixcol2-devel, libfds-devel, python2-docutils | ||
BuildRequires: libtrap-devel, unirec >= 2.3.0 | ||
Requires: libtrap >= 0.12.0, ipfixcol2 >= 2.0.0, libfds >= 0.1.0 | ||
|
||
%description | ||
Plugin for converting IPFIX data to UniRec format. | ||
|
||
%prep | ||
%autosetup | ||
|
||
#%post | ||
#/sbin/ldconfig | ||
|
||
#%postun | ||
#/sbin/ldconfig | ||
|
||
# Build source code | ||
%build | ||
%cmake . | ||
make %{?_smp_mflags} | ||
|
||
# Perform installation into build directory | ||
%install | ||
make install DESTDIR=%{buildroot} | ||
|
||
%files | ||
%{_libdir}/ipfixcol2/*.so* | ||
%{_mandir}/man7/*.7.gz | ||
%config(noreplace) %{_sysconfdir}/ipfixcol2/unirec-elements.txt | ||
|
||
%changelog | ||
* Wed Nov 21 2018 Lukas Hutak <[email protected]> 2.0.0-1 | ||
- Initial RPM release |
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
Oops, something went wrong.