Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
572faa7294 | ||
|
|
bd023778f8 | ||
|
|
3e4a3ed2d7 | ||
|
|
c33f92f685 |
5 changed files with 51 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
dropwatch-1.0.tbz2
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: dropwatch
|
||||
# $Id$
|
||||
NAME := dropwatch
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
49
dropwatch.spec
Normal file
49
dropwatch.spec
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
Summary: Kernel dropped packet monitor
|
||||
Name: dropwatch
|
||||
Version: 1.0
|
||||
Release: 2%{?dist}
|
||||
Source0: https://fedorahosted.org/releases/d/r/dropwatch/dropwatch-%{version}.tbz2
|
||||
URL: http://fedorahosted.org/dropwatch
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildRequires: kernel-devel, libnl-devel, readline-devel
|
||||
Requires: libnl, readline
|
||||
|
||||
%description
|
||||
dropwatch is an utility to interface to the kernel to monitor for dropped
|
||||
network packets.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
cd src
|
||||
export CFLAGS=$RPM_OPT_FLAGS
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
install -m0755 src/dropwatch $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m0644 doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%doc README
|
||||
%doc COPYING
|
||||
|
||||
%changelog
|
||||
* Fri Mar 20 2009 Neil Horman <nhorman@redhat.com> 1.0-2
|
||||
- Fixed up Errors found in package review (bz 491240)
|
||||
|
||||
* Tue Mar 17 2009 Neil Horman <nhorman@redhat.com> 1.0-1
|
||||
- Initial build
|
||||
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
34338735d1d2d339c92f21d9c7f1202f dropwatch-1.0.tbz2
|
||||
Loading…
Add table
Add a link
Reference in a new issue