forked from vmware/photon
-
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.
Adding syslog and eventlog packages.
- Loading branch information
Vinay Kulkarni
committed
Jun 10, 2015
1 parent
8219c36
commit e16d583
Showing
3 changed files
with
165 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Summary: Syslog event logger library | ||
Name: eventlog | ||
Version: 0.2.12 | ||
Release: 1%{?dist} | ||
License: GPL | ||
URL: https://www.balabit.com | ||
Group: System Environment/Daemons | ||
Vendor: VMware, Inc. | ||
Distribution: Photon | ||
Source0: https://www.balabit.com/downloads/files/eventlog/0.2/eventlog_0.2.12.tar.gz | ||
BuildRequires: bison | ||
BuildRequires: flex | ||
|
||
%description | ||
The EventLog library aims to be a replacement of the simple syslog() API | ||
provided on UNIX systems. The major difference between EventLog and syslog | ||
is that EventLog tries to add structure to messages. | ||
|
||
EventLog provides an interface to build, format and output an event record. | ||
The exact format and output method can be customized by the administrator | ||
via a configuration file. | ||
|
||
This package is the runtime part of the library. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
./configure \ | ||
CFLAGS="%{optflags}" \ | ||
CXXFLAGS="%{optflags}" \ | ||
--disable-silent-rules \ | ||
--prefix=%{_prefix} \ | ||
--bindir=%{_bindir} \ | ||
--libdir=%{_libdir} \ | ||
--sysconfdir=/etc | ||
make %{?_smp_mflags} | ||
|
||
%install | ||
%makeinstall | ||
|
||
%check | ||
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} | ||
|
||
%clean | ||
rm -rf %{buildroot}/* | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_includedir}/eventlog/*.h | ||
%{_libdir}/*.a | ||
%{_libdir}/*.la | ||
%{_libdir}/*.so | ||
%{_libdir}/*.so.* | ||
%{_libdir}/pkgconfig/eventlog.pc | ||
|
||
%changelog | ||
* Fri Jun 5 2015 Vinay Kulkarni <[email protected]> 0.2.12-1 | ||
- Add eventlog library for syslog-ng to photon | ||
|
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,104 @@ | ||
Summary: Next generation system logger facilty | ||
Name: syslog-ng | ||
Version: 3.6.2 | ||
Release: 1%{dist} | ||
License: GPL + LGPL | ||
URL: https://www.balabit.com/network-security/syslog-ng/opensource-logging-system | ||
Group: System Environment/Daemons | ||
Vendor: VMware, Inc. | ||
Distribution: Photon | ||
Source0: http://my.balabit.com/downloads/syslog-ng/open-source-edition/3.6.2/source/syslog-ng_3.6.2.tar.gz | ||
Requires: glib | ||
Requires: python2 | ||
BuildRequires: eventlog | ||
BuildRequires: glib-devel | ||
BuildRequires: python2-libs | ||
BuildRequires: python2-devel | ||
|
||
%description | ||
The syslog-ng application is a flexible and highly scalable | ||
system logging tool. It is often used to manage log messages and implement | ||
centralized logging, where the aim is to collect the log messages of several | ||
devices to a single, central log server. | ||
|
||
%prep | ||
%setup -q | ||
%build | ||
./configure \ | ||
CFLAGS="%{optflags}" \ | ||
CXXFLAGS="%{optflags}" \ | ||
--disable-silent-rules \ | ||
--prefix=%{_prefix} \ | ||
--bindir=%{_bindir} \ | ||
--libdir=%{_libdir} \ | ||
--sysconfdir=/etc/syslog-ng \ | ||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ | ||
make %{?_smp_mflags} | ||
|
||
%install | ||
[ %{buildroot} != "/"] && rm -rf %{buildroot}/* | ||
make DESTDIR=%{buildroot} install | ||
mkdir -p %{buildroot}/etc/systemd/system/ | ||
cat << EOF >> %{buildroot}/etc/systemd/system/syslog-ng.service | ||
[Unit] | ||
Description=Next generation system logger facility | ||
[Service] | ||
Type=forking | ||
ExecStart=/usr/sbin/syslog-ng | ||
[Install] | ||
WantedBy=multi-user.target | ||
EOF | ||
|
||
find %{buildroot} -name "*.la" -exec rm -f {} \; | ||
rm %{buildroot}/%{_libdir}/pkgconfig/syslog-ng-test.pc | ||
rm %{buildroot}/%{_libdir}/syslog-ng/libtest/libsyslog-ng-test.a | ||
rm -rf %{buildroot}/%{_infodir} | ||
|
||
%{_fixperms} %{buildroot}/* | ||
|
||
%check | ||
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} | ||
|
||
%post | ||
mkdir -p /usr/var/ | ||
/bin/systemctl enable syslog-ng | ||
|
||
%postun | ||
/bin/systemctl disable syslog-ng | ||
|
||
%clean | ||
rm -rf %{buildroot}/* | ||
|
||
%files | ||
%defattr(-,root,root) | ||
#TODO - clean this up. split header files into -devel package | ||
/etc/* | ||
/usr/bin/* | ||
/usr/include/syslog-ng/*.h | ||
/usr/include/syslog-ng/compat/*.h | ||
/usr/include/syslog-ng/control/*.h | ||
/usr/include/syslog-ng/filter/*.h | ||
/usr/include/syslog-ng/ivykis/*.h | ||
/usr/include/syslog-ng/libtest/*.h | ||
/usr/include/syslog-ng/logproto/*.h | ||
/usr/include/syslog-ng/parser/*.h | ||
/usr/include/syslog-ng/rewrite/*.h | ||
/usr/include/syslog-ng/stats/*.h | ||
/usr/include/syslog-ng/template/*.h | ||
/usr/include/syslog-ng/transport/*.h | ||
/usr/lib/libsyslog-ng* | ||
/usr/lib/pkgconfig/syslog-ng.pc | ||
/usr/lib/syslog-ng/*.so | ||
/usr/sbin/syslog-ng | ||
/usr/sbin/syslog-ng-ctl | ||
/usr/share/include/scl/* | ||
/usr/share/man/* | ||
/usr/share/tools/* | ||
/usr/share/xsd/* | ||
|
||
%changelog | ||
* Thu Jun 4 2015 Vinay Kulkarni <[email protected]> 3.6.2-1 | ||
- Add syslog-ng support to photon. | ||
|
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