File pulledpork.spec of Package pulledpork

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           pulledpork
Version:	0.6.1
Release:	5
Summary:	Pulled_Pork is tool written in perl for managing Snort rule sets
Group:		Productivity/Networking/Security
License:	GPL-2.0+
Url:		http://code.google.com/p/pulledpork/
Source:		http://pulledpork.googlecode.com/files/pulledpork-0.6.1.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:	perl
Requires:	perl-base
Requires:	perl(Crypt::SSLeay)
Requires:	perl(HTTP::Request::Common)
Requires:	perl(HTTP::Status)
Requires:	perl(Switch)
Requires:	perl(LWP::Protocol::https)

%description
Pulled_Pork is tool written in perl for managing Snort rule sets. Pulled_Pork features include:

    Automatic rule downloads using your Oinkcode
    MD5 verification prior to downloading new rulesets
    Full handling of Shared Object (SO) rules
    Generation of so_rule stub files
    Modification of ruleset state (disabling rules, etc)

The project is run by JJ Cummings of Sourcefire.

%prep
%setup

%build

%install
install -d -m 0755 %{buildroot}/%{_bindir}
install -d -m 0755 %{buildroot}/%{_sysconfdir}/%{name}

install -m 0755 pulledpork.pl %{buildroot}/%{_bindir}
install -m 0644 etc/disablesid.conf %{buildroot}/%{_sysconfdir}/%{name} 
install -m 0644 etc/dropsid.conf %{buildroot}/%{_sysconfdir}/%{name}
install -m 0644 etc/enablesid.conf %{buildroot}/%{_sysconfdir}/%{name}
install -m 0644 etc/modifysid.conf %{buildroot}/%{_sysconfdir}/%{name}
install -m 0644 etc/pulledpork.conf %{buildroot}/%{_sysconfdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README LICENSE contrib doc/*
%{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/disablesid.conf
%config(noreplace) %{_sysconfdir}/%{name}/dropsid.conf
%config(noreplace) %{_sysconfdir}/%{name}/enablesid.conf
%config(noreplace) %{_sysconfdir}/%{name}/modifysid.conf
%config(noreplace) %{_sysconfdir}/%{name}/pulledpork.conf
%{_bindir}/pulledpork.pl

%changelog
openSUSE Build Service is sponsored by