%define builddir $RPM_BUILD_DIR/%{name}-%{version} Name: pdumpq Version: %{version} Release: %{release} Packager: Ian Jones roux@speakeasy.org URL: http://www.speakeasy.org/~roux/dmn/ Source: %{name}-%{version}-%{release}.tgz Group: System Environment/Daemons Copyright: GPL Summary: Pcap Dump for Linux/Netfilter QUEUE %description Pcap Dump for Linux/Netfilter QUEUE Pdumpq takes packets over the netlink device which have been sent by Netfilter's QUEUE target and dumps them in Pcap format. This format is compatible with various packet sniffers such as tcpdump, snort and ethereal. %prep %setup -n %{name}-%{version}-%{release} %build make %install make make install %pre echo "Installing pdumpq..." %post echo "pdumpq installed." %preun /usr/local/sbin/pdumpq -k %postun echo "Pdumpq Uninstalled" %files -f FILES