[Snort-devel] Here's a spec file for snort 2.0.0

ofudd at ...1806... ofudd at ...1806...
Sun Jun 1 16:14:08 EDT 2003

Here is a bare-bones spec file for Snort 2.0.0.  With this, anyone can
build an rpm file for snort!

I didn't see any snort 2.0.0 rpms on the website, so I thought this
would be a good start.  The 1.9.0 spec file was too complicated for me
and didn't seem to work with 2.0.0, although I did save the changelog.

Copy snort-2.0.0.tar.gz into /usr/src/redhat/SOURCES, save this spec
file to snort.spec, and type 'rpmbuild -ba snort.spec'.  This will
create (in /usr/src/redhat/SRPMS and /usr/src/redhat/RPMS/i386):
  snort-debuginfo-2.0.0-1.i386.rpm  (on redhat 9)

Thanks for a great program!

-----8<----cut here---8<------
%define snort_version 2.0.0
Summary:        Snort, an intrusion detection system
Name:		snort
Version:        %{snort_version}
Release:	1
License:	GPL
Group:		Networking/Utilities
Source0:        http://www.snort.org/dl/%{name}-%{version}.tar.gz
Url:            http://www.snort.org
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

Snort is a libpcap-based packet sniffer/logger which
can be used as a lightweight network intrusion detection system.
It features rules based logging and can perform protocol analysis,
content searching/matching and can be used to detect a variety of
attacks and probes, such as buffer overflows, stealth port scans,
CGI attacks, SMB probes, OS fingerprinting attempts, and much more.
Snort has a real-time alerting capabilty, with alerts being sent to syslog,
a seperate "alert" file, or as a WinPopup message via Samba's smbclient

%setup -q


install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}

install src/snort $RPM_BUILD_ROOT%{_bindir}
install snort.8 $RPM_BUILD_ROOT%{_mandir}/man8


%doc ChangeLog
%attr(755,root,root) %{_bindir}/snort
%doc doc/AUTHORS doc/BUGS doc/CREDITS doc/FAQ doc/INSTALL doc/NEWS doc/README doc/README.FLEXRESP doc/README.PLUGINS doc/README.csv doc/README.database doc/RULES.todo doc/SnortUsersManual.pdf doc/TODO doc/USAGE

* Fri May 30 2003 Oscar Fudd <ofudd at ...1806...>
- updated to 2.0.0

* Wed Sep 25 2002 Chris Green <cmg at ...402...>
- updated to 1.9.0

* Tue Nov  6 2001 Chris Green <cmg at ...81...>
- merged in Hugo's changes
- updated to 1.8.3
- fixing symlinks on upgrades

* Tue Nov  6 2001 Hugo van der Kooij <hugo at ...372...>
- added libpcap to the list as configure couldn't find it on RedHat 7.2
- added several packages to the build requirements

* Fri Nov  2 2001 Chris Green <cmg at ...81...>
- updated to 1.8.2-RELEASE
- adding SQL defines
- created tons of packages so that all popular snort configs are accounted for

* Sat Aug 18 2001 Chris Green <cmg at ...81...>
- 1.8.1-RELEASE
- cleaned up enough to release to general public

* Tue May  8 2001 Chris Green <cmg at ...81...>
- moved to 1.8cvs
- changed rules files
- removed initial configuration

* Mon Nov 27 2000 Chris Green <cmg at ...81...>
- removed strip
- upgrade to cvs version
- moved /var/snort/dev/null creation to install time

* Tue Nov 21 2000 Chris Green <cmg at ...81...>
- changed to %{SnortPrefix}
- upgrade to patch2

* Mon Jul 31 2000 Wim Vandersmissen <wim at ...2009...>
- Integrated the -t (chroot) option and build a /home/snort chroot jail
- Installs a statically linked/stripped snort
- Updated /etc/rc.d/init.d/snortd to work with the chroot option

* Tue Jul 25 2000 Wim Vandersmissen <wim at ...2009...>
- Added some checks to find out if we're upgrading or removing the package

* Sat Jul 22 2000 Wim Vandersmissen <wim at ...2009...>
- Updated to version 1.6.3
- Fixed the user/group stuff (moved to %post)
- Added userdel/groupdel to %postun
- Automagically adds the right IP, nameservers to /etc/snort/rules.base

* Sat Jul 08 2000 Dave Wreski <dave at ...533...>
- Updated to version 1.6.2
- Removed references to xntpd
- Fixed minor problems with snortd init script

* Fri Jul 07 2000 Dave Wreski <dave at ...533...>
- Updated to version 1.6.1
- Added user/group snort

* Sat Jun 10 2000 Dave Wreski <dave at ...533...>
- Added snort init.d script (snortd)
- Added Dave Dittrich's snort rules header file (ruiles.base)
- Added Dave Dittrich's wget rules fetch script (check-snort)
- Fixed permissions on /var/log/snort
- Created /var/log/snort/archive for archival of snort logs
- Added post/preun to add/remove snortd to/from rc?.d directories
- Defined configuration files as %config

* Tue Mar 28 2000 William Stearns <wstearns at ...536...>
- Quick update to 1.6.
- Sanity checks before doing rm-rf in install and clean

* Fri Dec 10 1999 Henri Gomez <gomez at ...2010...>
- 1.5-0 Initial RPM release
----->8----cut here--->8------

ofudd at ...1806...

More information about the Snort-devel mailing list