Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
snort29
> snort.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File snort.spec of Package snort29 (Revision 21)
Currently displaying revision
21
,
show latest
# $Id$ # Snort.org's SPEC file for Snort #!BuildIgnore: post-build-checks ################################################################ # rpmbuild Package Options # ======================== # # See README.build_rpms for more details. # # --with flexresp # Add flexresp capability to whatever package(s) you are # building. # # --with inline # Add inline capability to whatever package(s) you are # building. This will create its own inline package. # # --with mysql # Builds a binary/package with support for MySQL. # # --with postgresql # Builds a binary/package with support for PostgreSQL. # # --with unixODBC # Build a binary/package with support for unixODBC # # --with oracle # Builds a binary/package with support for Oracle. # # See pg 399 of _Red_Hat_RPM_Guide_ for rpmbuild --with and --without options. ################################################################ # Other useful bits %define OracleHome /opt/oracle/OraHome1 %define SnortRulesDir %{_sysconfdir}/snort/rules %define noShell /bin/false # Handle the options noted above. # Default of no flexresp, but --with flexresp will enable it %define flexresp 0 %{?_with_flexresp:%define flexresp 1} # Default of no MySQL, but --with mysql will enable it %define mysql 0 %{?_with_mysql:%define mysql 1} # Default of no PostgreSQL, but --with postgresql will enable it %define postgresql 0 %{?_with_postgresql:%define postgresql 1} # Default of no unixODBC, but --with unixODBC will enable it %define unixODBC 0 %{?_with_unixODBC:%define unixODBC 1} # Default of no Oracle, but --with oracle will enable it %define oracle 0 %{?_with_oracle:%define oracle 1} # If not inline then we'll conflict with it %define conflicts snort-inline # Default of no Inline, but --with inline will enable it %define inline 0 %define inlinetext %{nil} %{?_with_inline:%define inline 1} %{?_with_inline:%define inlinetext -inline } %{?_with_inline:%define conflicts snort } %define vendor Snort.org %define for_distro RPMs %define release 1 %define realname snort # Look for a directory to see if we're building under cAos # Exit status is usually 0 if the dir exists, 1 if not, so # we reverse that with the '!' %define caos %([ ! -d /usr/lib/rpm/caos ]; echo $?) %if %{caos} # We are building for cAos (www.caosity.org) and the autobuilder doesn't # have command line options so we have to fake the options for whatever # packages we actually want here, in addition to tweaking the package # info. %define vendor cAos Linux %define for_distro RPMs for cAos Linux %define mysql 1 %define postgresql 1 %define release 1.caos %endif %if 0%{?opensuse_bs} %define vendor Linux-Adminstrator Networks %define for_distro RPMs for (open)SuSE(Enterprise)/CentOS/RHEL/Fedora Linux %define mysql 1 %define postgresql 1 %define release 1 %endif %if 0%{?suse_version} PreReq: %fillup_prereq %endif Name: %{realname}%{inlinetext} %{?_with_inline:%define Name: %{realname}-inline } Version: 2.9.0.5 Epoch: 1 Release: %{release} Summary: An open source Network Intrusion Detection System (NIDS) Group: Applications/Internet License: GPL Url: http://www.snort.org/ Source0: http://www.snort.org/dl/2.9.0/%{realname}-%{version}.tar.bz2 Source2: snortd.suse.init Source3: snort-rpmlintrc Patch0: snortsam-2.9.0.3.diff.gz Patch1: autojunk.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Packager: Official Snort.org %{for_distro} Vendor: %{vendor} Requires: logrotate BuildRequires: autoconf, automake, pcre-devel, libpcap-devel zlib-devel flex bison libdnet-devel daq-devel Conflicts: %{conflicts} %if %{flexresp} BuildRequires: libnet %define EnableFlexresp --enable-flexresp %endif # Itables-devel removed from BuildReq as RH does not supply that package. # Will replace iptables-devel buildreq with a scripted solution. --jh %if %{inline} BuildRequires: libnet %define EnableInline --enable-inline %endif %package mysql Summary: Snort with MySQL support Group: Applications/Internet Requires: %{name} = %{epoch}:%{version}-%{release} %if %{mysql} BuildRequires: mysql-devel %endif %description mysql Snort binary compiled with mysql support. %package postgresql Summary: Snort with PostgreSQL support Group: Applications/Internet Requires: %{name} = %{epoch}:%{version}-%{release} %if %{postgresql} BuildRequires: postgresql-devel %endif %description postgresql Snort binary compiled with postgresql support. %package unixODBC Summary: Snort with unixODBC support Group: Applications/Internet Requires: %{name} = %{epoch}:%{version}-%{release} %if %{unixODBC} BuildRequires: unixODBC-devel %endif %description unixODBC Snort binary compiled with unixODBC support. %package oracle Summary: Snort with Oracle support Group: Applications/Internet Requires: %{name} = %{epoch}:%{version}-%{release} %description oracle Snort binary compiled with Oracle support. EXPERIMENTAL!! I don't have a way to test this, so let me know if it works! ORACLE_HOME=%{OracleHome} %description Snort is an open source network intrusion detection system, capable of performing real-time traffic analysis and packet logging on IP networks. It 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 three primary uses. It can be used as a straight packet sniffer like tcpdump(1), a packet logger (useful for network traffic debugging, etc), or as a full blown network intrusion detection system. You MUST edit /etc/snort/snort.conf to configure snort before it will work! There are 5 different packages available. All of them require the base snort rpm (this one). Additionally, you may need to chose a different binary to install if you want database support. If you install a different binary package %{_sbindir}/snort should end up being a symlink to a binary in one of the following configurations: plain Snort (this package, required) mysql Snort with mysql (optional) postgresql Snort with postgresql (optional) unixODBC Snort with unixODBC (optional) oracle Snort with oracle (optional, not official) inline Snort with inline support (optional) Please see the documentation in %{_docdir}/%{realname}-%{version} for more information on snort features and configuration. %prep %setup -q -n %{realname}-%{version} %patch0 -p1 %patch1 -p0 ## start: needed for snortsam patch chmod +x autojunk.sh if [ -s configure ] ; then mv configure configure.bak fi ## end: needed for snortsam patch # When building from a Snort.org CVS snapshot tarball, you have to run # autojunk before you can build. if [ \( ! -s configure \) -a \( -x autojunk.sh \) ]; then ./autojunk.sh fi # Make sure it worked, or die with a useful error message. if [ ! -s configure ]; then echo "Can't find ./configure. ./autojunk.sh not present or not executable?" exit 2 fi %build BuildSnort() { %__mkdir "$1" cd "$1" %__ln_s ../configure ./configure if [ "$1" = "plain" ] ; then ./configure $SNORT_BASE_CONFIG \ --without-mysql \ --without-postgresql \ --without-oracle \ --without-odbc \ %{?EnableFlexresp} %{?EnableFlexresp2} \ %{?EnableInline} fi if [ "$1" = "mysql" ]; then ./configure $SNORT_BASE_CONFIG \ --with-mysql \ --with-mysql-includes=%{_includedir}/mysql \ --with-mysql-libraries=%{_libdir}/mysql \ --without-postgresql \ --without-oracle \ --without-odbc \ %{?EnableFlexresp} %{?EnableFlexresp2} \ %{?EnableInline} fi if [ "$1" = "postgresql" ]; then ./configure $SNORT_BASE_CONFIG \ --without-mysql \ --with-postgresql \ --with-postgresql-includes=%{_includedir}/pgsql \ --with-postgresql-libraries=%{_libdir}/pgsql \ --without-odbc \ --without-oracle \ %{?EnableFlexresp} %{?EnableFlexresp2} \ %{?EnableInline} fi if [ "$1" = "unixODBC" ]; then ./configure $SNORT_BASE_CONFIG \ --without-mysql \ --without-postgresql \ --with-odbc \ --without-oracle \ %{?EnableFlexresp} %{?EnableFlexresp2} \ %{?EnableInline} fi if [ "$1" = "oracle" ]; then export ORACLE_HOME=%{OracleHome} ./configure $SNORT_BASE_CONFIG \ --without-mysql \ --without-postgresql \ --without-odbc \ --with-oracle=$ORACLE_HOME \ %{?EnableFlexresp} %{?EnableFlexresp2} \ %{?EnableInline} fi %__make %__mv src/snort ../%{name}-"$1" cd .. } CFLAGS="$RPM_OPT_FLAGS" export AM_CFLAGS="-g -O2" SNORT_BASE_CONFIG="--prefix=%{_prefix} \ --bindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir}/snort \ --with-libpcap-includes=%{_includedir} \ --enable-decoder-preprocessor-rules --enable-targetbased --enable-zlib --enable-ipv6 --enable-normalizer --enable-reload \ " # Always build snort-plain BuildSnort plain # Maybe build the others %if %{mysql} BuildSnort mysql %endif %if %{postgresql} BuildSnort postgresql %endif %if %{oracle} BuildSnort oracle %endif %if %{unixODBC} BuildSnort unixODBC %endif %install # Remove leftover CVS files in the tarball, if any... find . -type 'd' -name "CVS" -print | xargs %{__rm} -rf InstallSnort() { if [ "$1" = "mysql" ]; then %__install -p -m 0755 %{name}-mysql $RPM_BUILD_ROOT%{_sbindir}/%{name}-mysql fi if [ "$1" = "postgresql" ]; then %__install -p -m 0755 %{name}-postgresql $RPM_BUILD_ROOT%{_sbindir}/%{name}-postgresql fi if [ "$1" = "unixODBC" ]; then %__install -p -m 0755 %{name}-unixODBC $RPM_BUILD_ROOT%{_sbindir}/%{name}-unixODBC fi if [ "$1" = "oracle" ]; then %__install -p -m 0755 %{name}-oracle $RPM_BUILD_ROOT%{_sbindir}/%{name}-oracle fi if [ "$1" = "plain" ]; then %__rm -rf $RPM_BUILD_ROOT %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sbindir} %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{SnortRulesDir} %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/snort %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_var}/log/snort %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_initrddir} %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_mandir}/man8 %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{realname}-%{version} %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{realname}-%{version}/schemas %__install -p -m 0755 %{name}-plain $RPM_BUILD_ROOT%{_sbindir}/%{name}-plain %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicengine %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicrules %__install -p -m 0755 plain/src/dynamic-plugins/sf_engine/.libs/libsf_engine.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicengine %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicengine/libsf_engine.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicengine/libsf_engine.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_smtp_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_smtp_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_smtp_preproc.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_ftptelnet_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ftptelnet_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ftptelnet_preproc.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_dns_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dns_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dns_preproc.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_ssh_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ssh_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ssh_preproc.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_ssl_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ssl_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ssl_preproc.so # %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_dcerpc_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor # %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dcerpc_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dcerpc_preproc.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_dce2_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dce2_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dce2_preproc.so %__install -p -m 0755 plain/src/dynamic-preprocessors/build/%{_prefix}/lib/snort_dynamicpreprocessor/libsf_sdf_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor %__ln_s -f %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_sdf_preproc.so.0 $RPM_BUILD_ROOT%{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_sdf_preproc.so %__install -p -m 0644 snort.8 $RPM_BUILD_ROOT%{_mandir}/man8 %__gzip $RPM_BUILD_ROOT%{_mandir}/man8/snort.8 %if 0%{?suse_version} %__install -p -m 0755 %{S:2} $RPM_BUILD_ROOT%{_initrddir}/snortd %else %__install -p -m 0755 rpm/snortd $RPM_BUILD_ROOT%{_initrddir} %endif %if 0%{?suse_version} %__install -D -p -m 0644 rpm/snort.sysconfig $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.snort %else %__install -p -m 0644 rpm/snort.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{realname} %endif %__install -p -m 0644 rpm/snort.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/snort %__install -p -m 0644 etc/reference.config etc/classification.config \ etc/unicode.map etc/gen-msg.map \ etc/threshold.conf etc/snort.conf \ $RPM_BUILD_ROOT/%{_sysconfdir}/snort find doc -maxdepth 1 -type f -not -name 'Makefile*' -exec %__install -p -m 0644 {} $RPM_BUILD_ROOT%{_docdir}/%{realname}-%{version} \; %__rm -f $RPM_BUILD_ROOT%{_docdir}/%{realname}-%{version}/Makefile.* %__install -p -m 0644 schemas/create_* $RPM_BUILD_ROOT%{_datadir}/%{realname}-%{version}/schemas fi } # Fix the RULE_PATH %__sed -e 's;var RULE_PATH ../rules;var RULE_PATH %{SnortRulesDir};' \ < etc/snort.conf > etc/snort.conf.new %__rm -f etc/snort.conf %__mv etc/snort.conf.new etc/snort.conf # Fix dynamic-preproc paths %__sed -e 's;dynamicpreprocessor directory \/usr\/local/lib\/snort_dynamicpreprocessor;dynamicpreprocessor directory %{_libdir}\/%{realname}-%{version}_dynamicpreprocessor;' < etc/snort.conf > etc/snort.conf.new %__rm -f etc/snort.conf %__mv etc/snort.conf.new etc/snort.conf # Fix dynamic-engine paths %__sed -e 's;dynamicengine \/usr\/local/lib\/snort_dynamicengine;dynamicengine %{_libdir}\/%{realname}-%{version}_dynamicengine;' < etc/snort.conf > etc/snort.conf.new %__rm -f etc/snort.conf %__mv etc/snort.conf.new etc/snort.conf # Fix dynamic-modules paths %__sed -e 's;dynamicdetection directory \/usr\/local\/lib\/snort_dynamicrules;dynamicdetection directory %{_libdir}\/%{realname}-%{version}_dynamicrules;' < etc/snort.conf > etc/snort.conf.new %__rm -f etc/snort.conf %__mv etc/snort.conf.new etc/snort.conf # Always install snort-plain InstallSnort plain # Maybe install the others %if %{mysql} InstallSnort mysql %endif %if %{postgresql} InstallSnort postgresql %endif %if %{unixODBC} InstallSnort unixODBC %endif %if %{oracle} InstallSnort oracle %endif %clean %__rm -rf $RPM_BUILD_ROOT %pre # Don't do all this stuff if we are upgrading if [ $1 = 1 ] ; then /usr/sbin/groupadd snort 2> /dev/null || true /usr/sbin/useradd -M -d %{_var}/log/snort -s %{noShell} -c "Snort" -g snort snort 2>/dev/null || true fi %post mysql if [ -L %{_sbindir}/snort ] || [ ! -e %{_sbindir}/snort ] ; then %__rm -f %{_sbindir}/snort; %__ln_s -f %{_sbindir}/%{name}-mysql %{_sbindir}/snort fi %post postgresql if [ -L %{_sbindir}/snort ] || [ ! -e %{_sbindir}/snort ] ; then %__rm -f %{_sbindir}/snort; %__ln_s -f %{_sbindir}/%{name}-postgresql %{_sbindir}/snort fi %post unixODBC if [ -L %{_sbindir}/snort ] || [ ! -e %{_sbindir}/snort ] ; then %__rm -f %{_sbindir}/snort; %__ln_s -f %{_sbindir}/%{name}-unixODBC %{_sbindir}/snort fi %post oracle if [ -L %{_sbindir}/snort ] || [ ! -e %{_sbindir}/snort ] ; then %__rm -f %{_sbindir}/snort; %__ln_s %{_sbindir}/%{name}-oracle %{_sbindir}/snort fi %post %if 0%{?suse_version} %{fillup_only} %endif # only on install, not upgrade if [ "$1" == "1" ] ; then # Make a symlink if there is no link for snort-plain if [ -L %{_sbindir}/snort ] || [ ! -e %{_sbindir}/snort ] ; then \ %__rm -f %{_sbindir}/snort; %__ln_s %{_sbindir}/%{name}-plain %{_sbindir}/snort fi fi # We should restart it to activate the new binary if it was upgraded %{_initrddir}/snortd condrestart 1>/dev/null 2>/dev/null # Don't do all this stuff if we are upgrading if [ $1 = 1 ] ; then %__chown -R snort.snort %{_var}/log/snort /sbin/chkconfig --add snortd || : fi %preun if [ $1 = 0 ] ; then # We get errors about not running, but we don't care %{_initrddir}/snortd stop 2>/dev/null 1>/dev/null /sbin/chkconfig --del snortd || : fi %postun # Try and restart, but don't bail if it fails if [ $1 -ge 1 ] ; then %{_initrddir}/snortd condrestart 1>/dev/null 2>/dev/null || : fi # Only do this if we are actually removing snort if [ $1 = 0 ] ; then %if 0%{?suse_version} %insserv_cleanup %endif if [ -L %{_sbindir}/snort ]; then %__rm -f %{_sbindir}/snort fi /usr/sbin/userdel snort 2>/dev/null fi %postun mysql if [ -L %{_sbindir}/snort ]; then %__rm -f %{_sbindir}/snort %__ln_s -f %{_sbindir}/%{name}-plain %{_sbindir}/snort fi %postun postgresql if [ -L %{_sbindir}/snort ]; then %__rm -f %{_sbindir}/snort %__ln_s -f %{_sbindir}/%{name}-plain %{_sbindir}/snort fi %postun unixODBC if [ -L %{_sbindir}/snort ]; then %__rm -f %{_sbindir}/snort %__ln_s -f %{_sbindir}/%{name}-plain %{_sbindir}/snort fi %postun oracle if [ -L %{_sbindir}/snort ]; then %__rm -f %{_sbindir}/snort %__ln_s -f %{_sbindir}/%{name}-plain %{_sbindir}/snort fi %files %defattr(-,root,root) %attr(0755,root,root) %{_sbindir}/%{name}-plain %attr(0644,root,root) %{_mandir}/man8/snort.8.* %attr(0755,root,root) %dir %{SnortRulesDir} %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/classification.config %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/reference.config %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/threshold.conf %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/*.map %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/snort %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/snort.conf %if 0%{?suse_version} %attr(0644,root,root) /var/adm/fillup-templates/sysconfig.snort %else %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/snort %endif %attr(0755,root,root) %config(noreplace) %{_initrddir}/snortd %attr(0755,snort,snort) %dir %{_var}/log/snort %attr(0755,root,root) %dir %{_sysconfdir}/snort %attr(0755,root,root) %dir %{_datadir}/%{realname}-%{version} %attr(0755,root,root) %dir %{_datadir}/%{realname}-%{version}/schemas %attr(0644,root,root) %{_datadir}/%{realname}-%{version}/schemas/create_* %attr(0644,root,root) %{_docdir}/%{realname}-%{version}/* %attr(0755,root,root) %dir %{_libdir}/%{realname}-%{version}_dynamicengine %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicengine/libsf_engine.* %attr(0755,root,root) %dir %{_libdir}/%{realname}-%{version}_dynamicpreprocessor %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_smtp_preproc.* %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ftptelnet_preproc.* %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dns_preproc.* %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ssh_preproc.* %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_ssl_preproc.* ##%attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dcerpc_preproc.* %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_dce2_preproc.* %attr(0755,root,root) %{_libdir}/%{realname}-%{version}_dynamicpreprocessor/libsf_sdf_preproc.* %dir %{_docdir}/%{realname}-%{version} %docdir %{_docdir}/%{realname}-%{version} %if %{mysql} %files mysql %attr(0755,root,root) %{_sbindir}/%{name}-mysql %endif %if %{postgresql} %files postgresql %attr(0755,root,root) %{_sbindir}/%{name}-postgresql %endif %if %{unixODBC} %files unixODBC %attr(0755,root,root) %{_sbindir}/%{name}-unixODBC %endif %if %{oracle} %files oracle %attr(0755,root,root) %{_sbindir}/%{name}-oracle %endif ################################################################ # Thanks to the following for contributions to the Snort.org SPEC file: # Henri Gomez <gomez@slib.fr> # Chris Green <cmg@sourcefire.com> # Karsten Hopp <karsten@redhat.de> # Tim Powers <timp@redhat.com> # William Stearns <wstearns@pobox.com> # Hugo van der Kooij <hugo@vanderkooij.org> # Wim Vandersmissen <wim@bofh.be> # Dave Wreski <dave@linuxsecurity.com> # JP Vossen <jp@jpsdomain.org> # Daniel Wittenberg <daniel-wittenberg@starken.com> # Jeremy Hewlett <jh@sourcefire.com> # Vlatko Kosturjak <kost@linux.hr> %changelog * Sat Apr 09 2011 Carsten Schoene <cs@linux-administrator.com> - 2.9.0.5-1 - update to release 2.9.0.5 * Sun Mar 27 2011 Carsten Schoene <cs@linux-administrator.com> - 2.9.0.4-2 - added snortsam 2.9.0.3 patch * Fri Feb 11 2011 Carsten Schoene <cs@linux-administrator.com> - 2.9.0.4-1 - update to release 2.9.0.4 * Wed Dec 22 2010 Carsten Schoene <cs@linux-administrator.com> - 2.9.0.3-1 - update to release 2.9.0.3 * Sat Dec 04 2010 Carsten Schoene <cs@linux-administrator.com> - 2.9.0.2-1 - update to release 2.9.0.2 * Wed Nov 03 2010 Carsten Schoene <cs@linux-administrator.com> - 2.9.0.1-1 - update to release 2.9.0.1 * Mon Oct 18 2010 Carsten Schoene <cs@linux-administrator.com> - 2.9.0-2 - added zlib-devel to BuildRequires - added --enable-zlib to configure * Tue Oct 05 2010 Carsten Schoene <cs@linux-administrator.com> - 2.9.0-1 - update to release 2.9.0 * Sun Sep 12 2010 Carsten Schoene <cs@linux-administrator.com> - 2.8.6.1-2 - fix pid file location in suse init scrpt - enable flexresp * Mon Sep 06 2010 Carsten Schoene <cs@linux-administrator.com> - 2.8.6.1-1 - build version 2.8.6.1 * Wed Apr 02 2008 Steve Sturges <ssturges@sourcefire.com> 2.8.3 - Added --enable-targetbased --enable-decoder-preprocessor-rules by default. * Wed Apr 02 2008 Steve Sturges <ssturges@sourcefire.com> 2.8.1 - Added ssl * Fri Aug 03 2007 Russ Combs <rcombs@sourcefire.com> 2.8.0 - Removed README.build_rpms from description - Removed 2nd "doc/" component from doc install path - Changed doc/ file attributes to mode 0644 - Moved schemas/ from doc to data dir - Added installation of schemas/create_* - Removed redundant '/'s from mkdir path specs - Eliminated find warning by moving -maxdepth ahead of -type - Fixed "warning: File listed twice: ..." for libsf so files * Wed Feb 28 2007 Steve Sturges <ssturges@sourcefire.com> 2.7.0 - Removed smp flags to make command * Wed Jan 17 2007 Steve Sturges <ssturges@sourcefire.com> 2.7.0 - Updated version to 2.7.0 * Tue Nov 07 2006 Steve Sturges <ssturges@sourcefire.com> 2.6.0 - Updated version to 2.6.1 * Thu Aug 31 2006 Steve Sturges <ssturges@sourcefire.com> 2.6.0 - Added dynamic DNS preprocessor * Wed May 24 2006 Steve Sturges <ssturges@sourcefire.com> 2.6.0 - Updated to version 2.6.0 * Fri Apr 14 2006 Justin Heath <justin.heath@sourcefire.com> 2.6.0RC1 - Added conf fix for dynamic engine paths - Added conf fix for dynamic preprocessors paths - Added dynamic attributes in file list - Added epoch to Requires for postgres, oracle and unixodbc - Removed rule/signature references as these are not distributed with this tarball * Thu Apr 13 2006 Steve Sturges <ssturges@sourcefire.com> 2.6.0RC1 - Updated to 2.6.0RC1 - Added targets for dynamic engine - Added targets for dynamic preprocessors * Sun Dec 11 2005 Vlatko Kosturjak <kost@linux.hr> 2.6.0RC1 - Added unixODBC support * Sun Oct 16 2005 Marc Norton <mnorton@sourcefire.com> 2.4.3 - Fixed buffer overflow in bo preprocessor - Added alert for potential buffer overflow attack against snort - Added noalert and drop options for all bo preprocessor events * Fri Jul 22 2005 Martin Roesch <roesch@sourcefire.com> 2.4.0 - Modified to reflect rules not being distributed with Snort distros * Tue May 03 2005 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.4.0RC1 - Removed more Fedora-specific options - Renamed spec from snort.org.spec to snort.spec - Removed CHANGES.rpms file since we have a changelog here no sense - in maintaining two of them - Replaced a ton of program names with macros to make more portable - Removed all references to rpms@snort.org since it just gets used - for spam so the address is being nuked - Updates to inline support for 2.4.0 Release and fedora changes - Replaced initDir with system-provided _initdir macro for more portability - Added Epoch back in so that way upgrades will work correctly. It will be - removed at some point breaking upgrades for that version * Tue Mar 29 2005 Jeremy Hewlett <jh@sourcefire.com> - Added Inline capability to RPMs. Thanks Matt Brannigan - for helping with the RPM foo. * Fri Mar 25 2005 Jeremy Hewlett <jh@sourcefire.com> - Add schemas to rpm distro - Add sharedscripts to logrotate - Remove installing unnecessary contrib remnants * Sun Mar 13 2005 Daniel Wittenberg <daniel-wittenberg@starken.com> - Updates to conform to new Fedora Packageing guidelines * Wed Dec 1 2004 Jeff Ball <zeffie@zeffie.com> - Added initDir and noShell for more building compatibility. * Thu Nov 17 2004 Brian Caswell <bmc@snort.org> 2.3.0RC1 - handle the moving of RPM and the axing of contrib * Sat Jun 03 2004 JP Vossen <jp@jpsdomain.org> - Bugfix for 'snortd condrestart' redirect to /dev/null in %postun * Wed May 12 2004 JP Vossen <jp@jpsdomain.org> - Added code for cAos autobuilder - Added buildrequires and requires for libpcap * Thu May 06 2004 Daniel Wittenberg <daniel-wittenberg@starken.com> - Added JP's stats option to the standard rc script * Sat Mar 06 2004 JP Vossen <jp@jpsdomain.org> - Added gen-msg.map and sid-msg.map to /etc/snort * Sat Feb 07 2004 Daniel Wittenberg <daniel-wittenberg@starken.com> - Applied postun/snortd patches from Nick Urbanik <nicku@vtc.edu.hk * Mon Dec 22 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Added threshold.conf, unicode.map and generators to /etc/snort thanks - to notes from Nick Urbanik <nicku@vtc.edu.hk> * Sat Dec 20 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.1.0-2 - Added condrestart option to rc script from patch by - Nick Urbanik <nicku@vtc.edu.hk> - Fixed condrestart bug for installs - Fixed gzip bug that happens on some builds * Tue Dec 10 2003 JP Vossen <jp@jpsdomain.org> - Removed flexresp from plain rpm package description - Added a line about pcre to the package description - Trivial tweaks to package description * Sat Nov 29 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.1.0-1 - Applied some updates from rh0212ms@arcor.de - Applied some updates from Torsten Schuetze <torsten.schuetze@siemens.com> - Applied some updates from Nick Urbanik <nicku@vtc.edu.hk> - Fixed ALERTMODE rc script error reported by DFarino@Stamps.com - Fixed CONF rc script error reported by ?? - Gzip signature files to save some space - Added BuildRequires pcre-devel and Requires pcre - Re-did %post <package> sections so the links are added and removed - correctly when you add/remove various packages * Fri Nov 07 2003 Daniel WIttenberg <daniel-wittenberg@starken.com> - Updated snort.logrotate * Thu Nov 06 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.0.4 - Minor updates for 2.0.4 * Tue Nov 04 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.0.3 - Updated for 2.0.3 - Removed 2.0.2 patch - Remove flexresp2 as it caused too many build problems and doesn't work - cleanly with 2.0.3 anyway - Minor documentation updated for 2.0.3 * Mon Oct 20 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.0.2-6 - New release version - Changed /etc/rc.d/init.d to /etc/init.d for more compatibility * Fri Oct 17 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Changed as many hard-coded references to programs and paths to use - standard defined macros * Fri Oct 10 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Include SnortRulesDir in %%files section - Added classification.config and reference.config in %%files section - Minor cleanup of the for_fedora macro * Sat Oct 04 2003 Dainel Wittenberg <daniel-wittenberg@starken.com> - Nuked post-install message as it caused too many problems - Changed default ruledir to /etc/snort/rules - Fixed problem with non-snort-plain symlinks getting created * Fri Oct 03 2003 Dainel Wittenberg <daniel-wittenberg@starken.com> - Somehow the snort.logrotate cvs file got copied into the build tree - and the wrong file got pushed out - snort.logrotate wasn't included in the %%files section, so added - it as a config(noreplace) file * Thu Oct 02 2003 Dainel Wittenberg <daniel-wittenberg@starken.com> 2.0.2-5 - Added --with fedora for building Fedora RPM's - Removed references to old snort config patch - Added noreplace option to /etc/rc.d/init.d/snortd just in case - Gzip the man page to save (a small tiny) amount of space and make it - more "standard" - Added version number to changelog entries to denote when packages were - released * Wed Oct 01 2003 Dainel Wittenberg <daniel-wittenberg@starken.com> - Fixed permission problem with /etc/snort being 644 - Added noreplace option to /etc/sysconfig/snort * Fri Sep 26 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Fixed incorrect Version string in cvs version of the spec - Added snort logrotate file - Removed |more from output as it confuses some package managers * Fri Sep 23 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.0.2-4 - Released 2.0.2-3 and then 2.0.2-4 * Sat Sep 20 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Added --with flexresp2 build option * Fri Sep 19 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.0.2-2 - Gave into JP and changed version back to stable :) * Fri Sep 19 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Fixed problems in snortd with "ALL" interfaces working correctly - Removed history from individual files as they will get too big - and unreadable quickly * Thu Sep 18 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> 2.0.2-1 - Updated for 2.0.2 and release 2.0.2-1 * Tue Aug 26 2003 JP Vossen <jp@jpsdomain.org> - Added code to run autojunk.sh for CVS tarball builds * Mon Aug 25 2003 JP Vossen <jp@jpsdomain.org> - Added missing comments to changelog * Sun Aug 20 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Moved snortd and snortd.sysconfig to contrib/rpm - Changed contrib install to a cp -a so the build stops complaining * Mon Aug 11 2003 JP Vossen <jp@jpsdomain.org> - Removed the commented patch clutter and a TO DO note - Fussed with white space * Sun Aug 10 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - Fixed a couple minor install complaints - userdel/groupdel added back into %%postun - useradd/groupadd added to %%pre * Sat Aug 9 2003 JP Vossen <jp@jpsdomain.org> - Doubled all percent signs in this changelog due to crazy RH9 RPM bug. - http://www.fedora.us/pipermail/fedora-devel/2003-June/001561.html - http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=88620 - Turn off rpm debug due to RH9 RPM issue - http://www.cs.helsinki.fi/linux/linux-kernel/2003-15/0763.html - Removed unnecessary SourceX: since they will be in the tarball * Thu Aug 7 2003 JP Vossen <jp@jpsdomain.org> - Changed perms from 755 to 644 for %%{_mandir}/man8/snort.8* * Sun Aug 3 2003 JP Vossen <jp@jpsdomain.org> - Removed the conf patch (again) as we moved the funcationality - Added sed to buildrequires and sed it to fix RULE_PATH - Removed Dan's SPEC code that made a default sysconfig/snort file. * Sun Aug 3 2003 JP Vossen <jp@jpsdomain.org> - Trivial changes and additions to documentation and references - Added --with flexresp option - Changed libnet buildrequires per Chris - Added docs and contrib back in, and moved sig docs out of doc. - Moved CSV and signature 'fixes' into %%install where they should have - been. Also fixed them. - Added Dan's new snortd and snort.sysconfig - Commented out alternate method of creating /etc/sysconfig/snort - Created %%{OracleHome} - Added BuildRequires: findutils - Uncommented the patch and added the patch file * Fri Jul 26 2003 Daniel Wittenberg <daniel-wittenberg@starken.com> - commented out the patch for now since it doesn't exist - if doing a new install echo "INTERFACE=eth0" > /etc/sysconfig/snort - changed --with-libpcap-includes=/usr/include/pcap to /usr/include since - that is where the libpcap-snort rpm Chris sent puts things - added missing " at the end of the SNORT_BASE_CONFIG - minor change to the ./configure for plain so it actually works - during an rpm -e of snort do a rm -f to make it a little more quiet in - case of problems - massive re-write of multi-package build system - initial support for compiling with Oracle * Sun Jul 20 2003 JP Vossen <jp@jpsdomain.org> - Took over maintenance of Snort.org RPM releases just before v2.0.1 - Various cleanup of SPEC file and changes to support building from tarball - Removed some old packages (like SNMP and Bloat), per Chris - First attempt at using --with option for multi-package build system - Added a patch to snort.conf for $RULE_PATH and default output plugins * Wed Sep 25 2002 Chris Green <cmg@sourcefire.com> - updated to 1.9.0 * Tue Nov 6 2001 Chris Green <cmg@uab.edu> - merged in Hugo's changes - updated to 1.8.3 - fixing symlinks on upgrades * Tue Nov 6 2001 Hugo van der Kooij <hugo@vanderkooij.org> - 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@uab.edu> - 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@uab.edu> - 1.8.1-RELEASE - cleaned up enough to release to general public * Tue May 8 2001 Chris Green <cmg@uab.edu> - moved to 1.8cvs - changed rules files - removed initial configuration * Mon Nov 27 2000 Chris Green <cmg@uab.edu> - removed strip - upgrade to cvs version - moved /var/snort/dev/null creation to install time * Tue Nov 21 2000 Chris Green <cmg@uab.edu> - changed to %%{SnortPrefix} - upgrade to patch2 * Mon Jul 31 2000 Wim Vandersmissen <wim@bofh.st> - 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@bofh.st> - Added some checks to find out if we're upgrading or removing the package * Sat Jul 22 2000 Wim Vandersmissen <wim@bofh.st> - 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@linuxsecurity.com> - Updated to version 1.6.2 - Removed references to xntpd - Fixed minor problems with snortd init script * Fri Jul 07 2000 Dave Wreski <dave@linuxsecurity.com> - Updated to version 1.6.1 - Added user/group snort * Sat Jun 10 2000 Dave Wreski <dave@linuxsecurity.com> - 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@pobox.com> - Quick update to 1.6. - Sanity checks before doing rm-rf in install and clean * Fri Dec 10 1999 Henri Gomez <gomez@slib.fr> - 1.5-0 Initial RPM release