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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
#
# Specfile used by BalaBit internally.
#
Summary: Next generation system logging daemon
Name: syslog-ng
Version: @VERSION@
Release: 1
License: GPL
Group: System Environment/Daemons
Source: syslog-ng_%{version}.tar.gz
URL: http://www.balabit.com
Packager: Sandor Geller <wildy@balabit.com>
Vendor: Balabit IT Ltd.
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: bison, flex, gcc-c++
#BuildConflicts:
#Exclusivearch: i386
%define prefix /
%description
Syslog-ng is a next generation system logger daemon which provides more
capabilities and is has a more flexible configuration then the traditional
syslog daemon.
%prep
%setup -q -n syslog-ng-%{version}
%build
# build syslog-ng using the bundled libol
./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info \
--sysconfdir=/etc
make
%install
make install DESTDIR="$RPM_BUILD_ROOT"
# strip the binaries/ libraries
strip ${RPM_BUILD_ROOT}/sbin/syslog-ng
#if [ -r /etc/redhat-release ]; then
# if grep -q "Red Hat Enterprise Linux ES" /etc/redhat-release; then
install -D -o root -g root -m 0644 contrib/rhel-packaging/syslog-ng.conf \
${RPM_BUILD_ROOT}/etc/syslog-ng/syslog-ng.conf
install -D -o root -g root -m 0755 contrib/rhel-packaging/syslog-ng.init \
${RPM_BUILD_ROOT}/etc/rc.d/init.d/syslog-ng
install -D -o root -g root -m 0644 contrib/rhel-packaging/syslog-ng.logrotate \
${RPM_BUILD_ROOT}/etc/logrotate.d/syslog-ng
# fi
#fi
# install documentation
install -D -o root -g root -m 0644 doc/reference/syslog-ng.html.tar.gz \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/syslog-ng.html.tar.gz
install -D -o root -g root -m 0644 doc/reference/syslog-ng.txt \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/syslog-ng.txt
install -D -o root -g root -m 0644 ChangeLog \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/ChangeLog
install -D -o root -g root -m 0644 NEWS \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/NEWS
install -D -o root -g root -m 0644 README \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/README
install -D -o root -g root -m 0644 AUTHORS \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/AUTHORS
install -D -o root -g root -m 0644 COPYING \
${RPM_BUILD_ROOT}/usr/share/doc/syslog-ng-@VERSION@/COPYING
%files
%defattr(-,root,root)
/sbin/syslog-ng
/etc/rc.d/init.d/syslog-ng
/usr/share/man/*
%docdir /usr/share/doc/syslog-ng-@VERSION@
/usr/share/doc/syslog-ng-@VERSION@/*
%config /etc/syslog-ng/syslog-ng.conf
%config /etc/logrotate.d/syslog-ng
%post
chkconfig --add syslog-ng
sh /etc/rc.d/init.d/syslog-ng start || exit 0
%preun
sh /etc/rc.d/init.d/syslog-ng stop || exit 0
%postun
chkconfig --del syslog-ng
%check
%clean
[ $RPM_BUILD_ROOT == / ] || rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Jun 30 2006 Tamas Pal <folti@balabit.com>
- fixed typo in RHEL config file.
* Mon Mar 27 2006 Balazs Scheidler <bazsi@balabit.com>
- removed postscript version of the documentation
* Fri Sep 9 2005 Sandor Geller <wildy@balabit.com>
- fixed permissions of /etc/rc.d/init.d/syslog-ng
* Thu Jun 30 2005 Sandor Geller <wildy@balabit.com>
- packaging fixes, added logrotate script
* Thu Jun 23 2005 Sandor Geller <wildy@balabit.com>
- added upstream's documentation to the package
* Mon Jun 20 2005 Sandor Geller <wildy@balabit.com>
- initial RPM packaging for RHEL ES
|