%define name snortsam %define version 2.70 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: SnortSAM module License: BSD Group: Networking/Other URL: http://www.snortsam.net/ Source: http://www.snortsam.net/files/snortsam/%{name}-src-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version} %description Snortsam is a daemon that interacts with snort to use a firewall. %prep %setup -q -n %{name} cat > Makefile <<EOF install: EOF %build sh ./makesnortsam.sh cd src make samtool #%make "CFLAGS=%optflags" %install install -d %{buildroot}%{_sbindir} rm -rf %{buildroot}%{_sysconfdir} install -d %{buildroot}%{_sysconfdir} install snortsam %{buildroot}%{_sbindir} install samtool %{buildroot}%{_sbindir} install conf/snortsam.conf.sample %{buildroot}%{_sysconfdir}/snortsam.conf %makeinstall #%{__rm} -rf %{buildroot} #mkdir %{buildroot}%_mandir/man1 #mv %{buildroot}%_mandir/*.1 %{buildroot}%_mandir/man1/ %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc docs/{README*,LICENSE,INSTALL,FAQ,CREDITS,BUGS,AUTHORS} %_sbindir/* %{_sysconfdir}/snortsam.conf %changelog * Mon Jan 14 2013 umeabot <umeabot> 2.70-3.mga3 + Revision: 382278 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Sep 12 2012 dlucio <dlucio> 2.70-2.mga3 + Revision: 292731 - rebuild * Wed Mar 21 2012 dlucio <dlucio> 2.70-1.mga2 + Revision: 225195 - imported package snortsam