]> git.pld-linux.org Git - packages/cpm.git/commitdiff
- new, STBR
authorradek <radek@pld-linux.org>
Tue, 10 Sep 2002 20:08:18 +0000 (20:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cpm.spec -> 1.1

cpm.spec [new file with mode: 0644]

diff --git a/cpm.spec b/cpm.spec
new file mode 100644 (file)
index 0000000..8ff6e49
--- /dev/null
+++ b/cpm.spec
@@ -0,0 +1,46 @@
+Summary:       cpm - check for network interfaces in promiscuous mode
+Summary(pl):   cpm - znajd¼ interfejsy sieciowe w trybie promiscuous
+Name:          cpm
+Version:       1.2
+Release:       1
+License:       custom (free)
+Group:         Networking/Admin
+Source0:       ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/%{name}/%{name}.%{version}.tar.gz
+Patch0:                %{name}-include.patch
+BuildRequires: glibc-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Cpm checks whether any network interface on a host is in promiscuous
+mode.  Cpm uses standard BSD Unix socket(2) and ioctl(2) system calls to
+determine a system's configured network interfaces, and to check whether
+any of the network interfaces are currently in promiscuous mode.
+
+%description -l pl
+Cpm sprawdza, czy jaki¶ interfejs sieciowy jest w trybie promiscuous.
+U¿ywa standardowych wywo³añ systemowych socket(2) i ioctl(2) do wyszukania
+skonfigurowanych w systemie interfejsów sieciowych oraz do sprawdzenia,
+czy które¶ z nich jest aktualnie w trybie promiscuous.
+
+%prep
+%setup -q -n %{name}.%{version}
+%patch0 -p0
+
+%build
+%{__cc} cpm.c -o cpm %{rpmcflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%_bindir,%_mandir/man1}
+
+install cpm   $RPM_BUILD_ROOT%{_bindir}
+install cpm.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
This page took 0.065858 seconds and 4 git commands to generate.