--- oinkmaster-2.0.orig/debian/dirs
+++ oinkmaster-2.0/debian/dirs
@@ -0,0 +1,4 @@
+usr/sbin
+usr/share/doc/oinkmaster
+usr/share/oinkmaster
+etc/
--- oinkmaster-2.0.orig/debian/docs
+++ oinkmaster-2.0/debian/docs
@@ -0,0 +1,5 @@
+FAQ
+README
+README.gui
+README.templates
+UPGRADING
--- oinkmaster-2.0.orig/debian/rules
+++ oinkmaster-2.0/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Oinkmaster's debian/rules
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+
+build:
+ dh_testdir
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean
+ rm -f build-stamp configure-stamp
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ install -m 755 oinkmaster.pl debian/oinkmaster/usr/sbin/oinkmaster
+ install -m 640 oinkmaster.conf debian/oinkmaster/etc/
+ install -m 755 contrib/* debian/oinkmaster/usr/share/oinkmaster/
+ -rm -f debian/oinkmaster/usr/share/oinkmaster/README*
+
+binary-arch: build install
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs contrib/README.contrib
+ dh_installexamples template-examples.conf
+# dh_install
+# dh_installdebconf
+# dh_installcron
+ dh_installman oinkmaster.1
+ dh_compress
+ dh_fixperms
+ dh_perl
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- oinkmaster-2.0.orig/debian/copyright
+++ oinkmaster-2.0/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Javier Fernandez-Sanguino Pen~a
+<jfs@debian.org> on Mon, 13 Sep 2004 16:15:26 +0200.
+
+It was downloaded from http://prdownloads.sourceforge.net/oinkmaster/
+
+Upstream Author: Andreas Ostling <andreas_ostling@bredband.net>
+
+Copyright:
+
+ Copyright (c) 2001-2008 Andreas Ostling <andreas_ostling@bredband.net>
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the following
+ conditions are met:
+
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+
+ 3. Neither the name of the author nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior written
+ permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- oinkmaster-2.0.orig/debian/README.Debian
+++ oinkmaster-2.0/debian/README.Debian
@@ -0,0 +1,22 @@
+oinkmaster for Debian
+---------------------
+
+There is currently no automatic mechanism in place to update the Snort
+signatures through Cron. If you wish to enable such a mechanism you'll
+have to write it yourself.
+
+Note that oinkmaster will not auto-detect the Snort version you are using,
+since Snort rules do not specify the version you should be careful and
+review which ruleset is being downloaded before activating such a task.
+The default configuration for oinkmaster uses the latests Snort Debian
+release available.
+
+The default Debian configuration only allows root to download the rulesets
+by using /var/run/oinkmaster and restricting permissions in that directory.
+$TMP or /tmp are not used in order to avoid symlink attacks. It also avoids
+the use of external binaries so that system() calls are also avoided, you
+will need to install some additional Perl libraries (included in the
+following packages: libio-zlib-perl, libwww-perl, libarchive-tar-perl)
+
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>, Mon, 13 Sep 2004 16:15:26 +0200
--- oinkmaster-2.0.orig/debian/control
+++ oinkmaster-2.0/debian/control
@@ -0,0 +1,23 @@
+Source: oinkmaster
+Section: admin
+Priority: optional
+Maintainer: Javier Fernandez-Sanguino Pen~a <jfs@computer.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.0
+Homepage: http://oinkmaster.sourceforge.net/
+Vcs-Browser: http://oinkmaster.cvs.sourceforge.net/oinkmaster/oinkmaster/
+Vcs-Cvs: :pserver:anonymous@oinkmaster.cvs.sourceforge.net:/cvsroot/oinkmaster oinkmaster
+
+Package: oinkmaster
+Architecture: all
+Depends: perl (>= 5.6.1), libio-zlib-perl, libwww-perl, libarchive-tar-perl
+Recommends: wget
+Provides: snort-rules
+Description: Snort rules manager
+ A simple script to manage and update Snort rules with the
+ capability of disabling, modifying and enabling specific
+ rules after an update. Oinkmaster will tell you exactly what
+ has changed since your last update, giving you good
+ control of your rules. It also can be used to manage updates
+ from both the official provider (www.snort.org) and from
+ home-grown rulesets.
--- oinkmaster-2.0.orig/debian/changelog
+++ oinkmaster-2.0/debian/changelog
@@ -0,0 +1,73 @@
+oinkmaster (2.0-3) unstable; urgency=low
+
+ * Update with content from upstream's CVS:
+ - oinkmaster.conf: Remove obsolete URLs and provide urls to VRT
+ certified rules and Emerging Threats rules. (Closes: 456243)
+ - oinkmaster.pl, create-sidmap.pl: new features
+ - Update of upstream's e-mail address in several documentation.
+ * debian/rules:
+ - Do not install debian/oinkmaster.conf but install upstream's
+ instead.
+ * debian/oinkmaster.conf: removed, use upstream's instead. The
+ configuration file now ships with everything commented out as it
+ requires changes for every enviornment. The previous values sets
+ are now the default in the script.
+ * debian/dirs, debian/rules: do not create /var/run/oinkmaster
+ * With the above changes, the temporary directory used now is based
+ on the user's environment (TMPDIR, TMP) or defaults to /tmp. This is the
+ default, and has been enabled after reviewing the code of oinkmaster.pl and
+ making sure that this (hopefully) does not open up temporary race condition
+ security bugs.
+ Now /var/run/oinkmaster is no longer used, which prevents using
+ due to the use of tmpfs in /var/run (Closes: 519804) (LP: #331853)
+ * debian/control:
+ - Move homepage to header
+ - Add Vcs-Cvs and Vcs-Browse headers information
+ * Change the Debian maintainer's upstream email address in
+ debian files.
+ * debian/compat: Change to compatibility version 5
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org> Thu, 28 Oct 2010 00:03:45 +0200
+
+oinkmaster (2.0-2) unstable; urgency=low
+
+ * Added watch file provided by Raphael Geissert (Closes: #449731)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org> Sun, 02 Dec 2007 16:53:00 +0100
+
+oinkmaster (2.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org> Sun, 23 Apr 2006 23:12:30 +0200
+
+oinkmaster (1.2-1) unstable; urgency=low
+
+ * New upstream release
+ - The configuration file now provides proper URLs to download either the
+ Snort Community Rules or registered Snort rules (Closes: #305048)
+ * Package Provides: snort-rules (CloseS: #276609)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org> Sun, 24 Apr 2005 02:04:11 +0200
+
+oinkmaster (1.1-1) unstable; urgency=low
+
+ * New upstream release.
+ - Install new README.templates documentation and templates-example.conf
+ example
+ * Install the contributed scripts in /usr/share/oinkmaster
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org> Tue, 22 Feb 2005 00:04:04 +0100
+
+oinkmaster (1.0-1) unstable; urgency=low
+
+ * Initial Release (#219996). This is needed for the release since
+ there is currently no mechanism to update Snort's ruleset
+ * Provide a custom configuration file, it is somewhat restricted
+ so that only root will be able to download new rules under
+ /var/run/oinkmaster, it will use Perl's implementations of libraries
+ to avoid system calls to wget/tar/gzip
+ * Updated ruleset location to 2.2
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org> Mon, 13 Sep 2004 16:15:26 +0200
+
--- oinkmaster-2.0.orig/debian/watch
+++ oinkmaster-2.0/debian/watch
@@ -0,0 +1,4 @@
+# Watch file for oinkmaster
+# Site Directory Pattern Version Script
+version=3
+http://sf.net/oinkmaster/oinkmaster-(.*)\.tar\.gz debian uupdate
--- oinkmaster-2.0.orig/debian/compat
+++ oinkmaster-2.0/debian/compat
@@ -0,0 +1 @@
+5