jump to navigation

Creating a Snort Package for use with Fedora 12 (default spec file) February 9, 2010

Posted by Paul Whalen in Uncategorized.
trackback

First we need to create a packaging environment. I downloaded rpm-build, rpmdevtools, rpmlint using the ‘yum’ command. Then used the “rpmdev-setuptree” command to set up the packaging environment which created a new folder in my working directory called ‘rpmbuild’ which contained the folders ‘BUILD’ ,  ‘RPMS ‘ , ‘SOURCES’ ,  ‘SPECS’ and  ‘SRPMS’. Then using the command ‘yumdownloader –source snort’ I downloaded ‘snort-2.8.5.1-1.fc12.src.rpm’,  the source package for Snort. I then ran the command ‘rpm -i snort-2.8.5.1-1.fc12.src.rpm’.

Moving to the rpmbuild directory I now find in the ‘SOURCES’ folder the files ‘snort-2.8.5.1.tar.gz’, ‘ snortd’ and ‘ sysconfig.snort’. And in the  SPEC folder there is now a file ‘snort.spec’.

Now to rebuild. I ran the command ‘rpmbuild –rebuild snort-2.8.5.1-1.fc12.src.rpm’ but received ‘Failed build dependencies’ errors with a list of packages. Installing the needed packages I ran the command again and this time was successful. The default spec file creates 10 different rpms and include snort compiled with different configuration options.

Next I will be creating my own Snort spec file and posting the results.

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: