SPECS: argus.spec (NEW) - initial PLD release

alucard alucard at pld-linux.org
Tue Feb 27 14:27:47 CET 2007


Author: alucard                      Date: Tue Feb 27 13:27:47 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial PLD release

---- Files affected:
SPECS:
   argus.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/argus.spec
diff -u /dev/null SPECS/argus.spec:1.1
--- /dev/null	Tue Feb 27 14:27:47 2007
+++ SPECS/argus.spec	Tue Feb 27 14:27:41 2007
@@ -0,0 +1,105 @@
+# $Revision$, $Date$
+#
+# TODO
+# - logrotate (or argusrotate)
+# - configure without options not working
+#
+# Conditional build:
+%bcond_without	tcp_wrappers	# build with tcp_wrappers support
+%bcond_without	sasl		# build with sasl support
+#
+Summary:	Real time network flow monitor
+Summary(pl.UTF-8):	Monitor obciążenia sieci czasu rzeczywistego
+Name:		argus
+%define		_ver_major	3.0
+%define		_ver_minor	.0
+%define		_rc		.rc.40
+Version:	%{_ver_major}%{_ver_minor}%{_rc}
+Release:	0.1
+License:	GPL v2
+Group:		Applications/Networking
+Source0:	ftp://qosient.com/dev/%{name}-%{_ver_major}/%{name}-%{version}.tar.gz
+# Source0-md5:	49047be6450c6255cceb3fb9bfe3caed
+Source1:	%{name}.conf
+Source2:	%{name}.init
+Source3:	%{name}.sysconfig
+URL:		http://www.qosient.com/argus/
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(post,preun):	/sbin/chkconfig
+BuildRequires:	libpcap-devel
+BuildRequires:	bison
+%{?with_tcp_wrappers:BuildRequires:	libwrap-devel}
+%{?with_tcp_wrappers:BuildRequires:	cyrus-sasl-devel}
+Provides:	group(argus)
+Provides:	user(argus)
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--with%{!?with_tcp_wrappers:out}-libwrap \
+	--with%{!?with_sasl:out}-sasl
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+install -d $RPM_BUILD_ROOT%{_var}/log/%{name}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+
+touch $RPM_BUILD_ROOT%{_var}/log/%{name}/%{name}.log
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -g 214 -r argus
+%useradd -M -o -r -u 214 -d /home/services/argus -s /bin/sh -g argus -c "argus daemon" argus
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q %{name} stop
+	/sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS ChangeLog README doc/{CHANGES,FAQ,HOW-TO}
+%attr(755,root,root) %{_bindir}/argusbug
+%attr(755,root,root) %{_sbindir}/argus
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%dir /etc/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/%{name}/%{name}.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%dir %{_var}/log/%{name}
+%attr(640,argus,root,) %ghost %{_var}/log/%{name}/%{name}.log
+%{_mandir}/man5/argus.conf.5.gz
+%{_mandir}/man8/argus.8.gz
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/02/27 13:27:41  alucard
+- initial PLD release
+
================================================================


More information about the pld-cvs-commit mailing list