[devel] Кто размер уменьшает
Avramenko Andrew
=?iso-8859-1?q?liksx_=CE=C1_mail=2Eru?=
Ср Ноя 7 14:53:36 MSK 2007
Vitaly Ostanin пишет:
> Размер неработоспособен? ;)
Нет. Иначе бы не беспокоился.
> Напишите яснее, какой именно вариант
> не работает, покажите спек, как собирали - в hasher или в рабочей
> системе?
Собирал в рабочей системе.
Спек:
Name: ulogd
Version: 1.24
Release: alt6
%define _strip_skiplist %_libdir/%name/*.so
Summary: ulogd - The userspace logging daemon for netfilter
Url: http://www.netfilter.org/projects/ulogd/
Packager: Avramenko Andrew <liks на altlinux.ru>
License: %gpl2plus
Group: System/Servers
Source: http://www.netfilter.org/projects/ulogd/files/%name-%version.tar
Source1: %name.init
Source2: %name.logrotate
Source3: %name.8
Patch0: %name-alt-rules.make.in.patch
Patch1: %name-alt-ulogd.conf.in.patch
Patch2: %name-1.24-fopen.patch
# The code uses a deprecated way of getting its DSO initializers run
Patch3: %name-1.24-fixes-base.patch
Patch4: %name-1.24-initializers.patch
Patch5: %name-1.24-user-option.patch
Requires: libpcap
# Automatically added by buildreq on Tue Mar 20 2007
BuildRequires: libpcap-devel zlib-devel libMySQL-devel postgresql-devel
rpm-build-licenses
%description
Ulogd is an universal logging daemon for the ULOG target of netfilter,
the Linux 2.6 firewalling subsystem. Ulogd is able to log packets in
various formats to different targets (text files, databases, etc..). It
has an easy-to-use plugin interface to add new protocols and new output
targets.
%package mysql
Summary: MySQL output plugin for ulogd
Group: System/Servers
Requires: %name = %version-%release
Requires: zlib
%description mysql
ulogd-mysql is a MySQL output plugin for ulogd. It enables logging of
firewall information into a MySQL database.
%package pgsql
Summary: PostgreSQL output plugin for ulogd
Group: System/Servers
Requires: %name = %version-%release
%description pgsql
ulogd-pgsql is a PostgreSQL output plugin for ulogd. It enables logging
of firewall information into a PostgreSQL database.
%prep
%setup
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch5 -p0
%build
%configure --with-mysql=/usr/lib/mysql --with-pgsql=/usr/lib/pgsql
make DESTDIR=%buildroot
%install
mkdir -p %buildroot/%_logdir/%name
mkdir -p %buildroot/%_sysconfdir
mkdir -p %buildroot/%_libdir/%name
mkdir -p %buildroot/%_sbindir
make install DESTDIR=%buildroot
mkdir -p %buildroot/%_sysconfdir/rc.d/init.d
install %SOURCE1 %buildroot/%_sysconfdir/rc.d/init.d/%name
mkdir -p %buildroot/%_sysconfdir/logrotate.d
install %SOURCE2 %buildroot/%_sysconfdir/logrotate.d/%name
mkdir -p %buildroot/%_datadir/%name
install doc/mysql.table %buildroot/%_datadir/%name/
install doc/mysql.table.ipaddr-as-string %buildroot/%_datadir/%name/
install doc/pgsql.table %buildroot/%_datadir/%name/
# Waiting for build with sqlite
#install doc/sqlite3.table %buildroot/%_datadir/ulogd/
mkdir -p %buildroot/%_man8dir
install %SOURCE3 %buildroot/%_man8dir
subst "s|@VERSION@|%version|" %buildroot/%_man8dir/%name.8
gzip %buildroot/%_man8dir/%name.8
rm -rf %buildroot/%_includedir/libipulog
%pre
%_sbindir/groupadd -r -f %name >/dev/null 2>&1
%_sbindir/useradd -r -n -g %name -d /dev/null -s /dev/null %name
>/dev/null 2>&1 ||:
%preun
%preun_service %name
#%%post
#chown %name:%name %_logdir/%name/*
%files
%attr(0755,root,root) %_sbindir/%name
%config(noreplace) %_sysconfdir/%name.conf
%attr(0640,root,%name) %_sysconfdir/%name.conf
%_sysconfdir/rc.d/init.d/%name
%config(noreplace) %_sysconfdir/logrotate.d/%name
%dir %_libdir/%name
%attr(0750,ulogd,ulogd) %_logdir/%name
%attr(0755,root,root) %_libdir/%name/*
%exclude %_libdir/%name/ulogd_MYSQL.so
%exclude %_libdir/%name/ulogd_PGSQL.so
%doc COPYING AUTHORS README
%doc doc/%name.txt doc/%name.a4.ps doc/%name.html
%_man8dir/*
%files mysql
%_libdir/%name/ulogd_MYSQL.so
%_datadir/%name/mysql.table
%_datadir/%name/mysql.table.ipaddr-as-string
%files pgsql
%_libdir/%name/ulogd_PGSQL.so
%_datadir/%name/pgsql.table
%changelog
Подробная информация о списке рассылки Devel