Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
ulogd2
ulogd2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ulogd2.spec of Package ulogd2
# # spec file for package ulogd2 # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: ulogd2 Version: 2.0.0 Release: 0 %define pkname ulogd Summary: Userspace logging for Netfilter License: GPL-2.0 Group: Productivity/Networking/Security Url: http://netfilter.org/projects/ulogd/ #Git-Clone: git://git.netfilter.org/ulogd2 Source: ulogd-%version.tar.bz2 Source2: etc-init.d-ulogd Source3: ulogd.service Patch4: ulogd-conf.diff #BuildRequires: autoconf >= 2.50 #BuildRequires: automake >= 1.11 BuildRequires: libpcap-devel BuildRequires: libtool BuildRequires: lksctp-tools-devel BuildRequires: pkgconfig >= 0.21 BuildRequires: postgresql-devel BuildRequires: pkgconfig(libmnl) >= 1.0.0 BuildRequires: pkgconfig(libnetfilter_acct) >= 1.0.0 BuildRequires: pkgconfig(libnetfilter_conntrack) >= 1.0.0 BuildRequires: pkgconfig(libnetfilter_log) >= 1.0.0 BuildRequires: pkgconfig(libnfnetlink) >= 1.0.0 %if 0%{?suse_version} BuildRequires: libmysqlclient-devel BuildRequires: sqlite3-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1210 BuildRequires: systemd %systemd_requires %endif %if 0%{?suse_version} Requires(postun): %insserv_prereq %endif Requires(pre): /usr/sbin/useradd %description ulogd is a userspace logging daemon for netfilter/iptables related logging. This includes per-packet logging of security violations, per-packet logging for accounting purpose as well as per-flow logging. %package mysql Summary: MySQL output target for ulogd2 Group: Productivity/Networking/Security Requires: %name = %version-%release %description mysql MySQL output target for ulogd2. %package pcap Summary: pcap output target for ulogd2 Group: Productivity/Networking/Security Requires: %name = %version-%release %description pcap pcap output target for ulogd2. %package pgsql Summary: PostgreSQL output target for ulogd2 Group: Productivity/Networking/Security Requires: %name = %version-%release %description pgsql PostgreSQL output target for ulogd2. %package sqlite3 Summary: SQLite3 output target for ulogd2 Group: Productivity/Networking/Security Requires: %name = %version-%release %description sqlite3 SQLite3 output target for ulogd2. %prep %setup -qn ulogd-%version %patch -P 4 -p1 %build %configure --disable-static make %{?_smp_mflags}; %install b="%buildroot"; make install DESTDIR="$b"; find "$b" -type f -iname "*.la" -delete; mkdir -p "$b/var/log/ulogd"; mkdir -p "$b/%_sysconfdir"; install -pm0644 ulogd.conf "$b/%_sysconfdir/"; mkdir -p "$b/%_initrddir" "$b/%_sbindir"; install -pm0755 "%{S:2}" "$b/%_initrddir/%name"; ln -s "%_initrddir/%name" "$b/%_sbindir/rc%name"; %if 0%{?_unitdir:1} mkdir -p "$b/%_unitdir"; install -pm0644 "%{S:3}" "$b/%_unitdir"; %endif %pre /usr/bin/getent passwd ulogd >/dev/null || \ /usr/sbin/useradd -c "Userspace logging daemon for Netfilter" -r ulogd || : %if 0%{?_unitdir:1} %service_add_pre ulogd.service %endif %if 0%{?_unitdir:1} %post %service_add_post ulogd.service %endif %preun %if 0%{?suse_version} %stop_on_removal ulogd %endif %if 0%{?_unitdir:1} %service_del_preun ulogd.service %endif %postun %if 0%{?suse_version} %insserv_cleanup %endif %if 0%{?_unitdir:1} %service_del_postun ulogd.service %endif %files %defattr(-,root,root) %config(noreplace) %_sysconfdir/ulogd.conf %_initddir/ulogd2 %_sbindir/ulogd %_sbindir/rculogd2 %dir %_libdir/%pkname %_libdir/%pkname/ulogd_[fir]*.so* %_libdir/%pkname/ulogd_output_GPRINT.so* %_libdir/%pkname/ulogd_output_LOGEMU.so* %_libdir/%pkname/ulogd_output_NACCT.so* %_libdir/%pkname/ulogd_output_OPRINT.so* %_libdir/%pkname/ulogd_output_SYSLOG.so* %_libdir/%pkname/ulogd_output_XML.so* %_mandir/*/* %attr(0750,ulogd,root) /var/log/ulogd %if 0%{?_unitdir:1} %_unitdir/ulogd.service %endif # These are the dependency-heavy things: %files mysql %defattr(-,root,root) %_libdir/%pkname/ulogd_output_MYSQL.so* %files pcap %defattr(-,root,root) %_libdir/%pkname/ulogd_output_PCAP.so* %files pgsql %defattr(-,root,root) %_libdir/%pkname/ulogd_output_PGSQL.so* %files sqlite3 %defattr(-,root,root) %_libdir/%pkname/ulogd_output_SQLITE3.so* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor