[521] | 1 | %define name arpscan |
---|
[5647] | 2 | %define version 0.10 |
---|
| 3 | %define release 1%{?_dist_release} |
---|
[521] | 4 | |
---|
| 5 | Summary: Very simple ARP scanner |
---|
| 6 | Summary(ja): シンプルな ARP スキャナ |
---|
| 7 | Name: %{name} |
---|
| 8 | Version: %{version} |
---|
| 9 | Release: %{release} |
---|
| 10 | License: GPL |
---|
| 11 | Group: Applications/Internet |
---|
| 12 | Packager: OOI Keita <ooi.keita@gmail.com> |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | URL: http://wizard.ae.krakow.pl/~jb/arpscan/ |
---|
[5647] | 16 | Source0: http://wizard.ae.krakow.pl/~jb/arpscan/%{name}-%{version}.tar.gz |
---|
| 17 | Source1: http://standards.ieee.org/develop/regauth/oui/oui.txt |
---|
[521] | 18 | BuildRequires: gawk |
---|
| 19 | #BuildRequires: wget |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Arpscan is a utility that scans local network using ARP protocol |
---|
| 24 | and reports alive hosts. Program is designed for Linux. |
---|
| 25 | |
---|
| 26 | %description -l ja |
---|
| 27 | ARPプロトコルを使って、ローカルネットワークをスキャンし、 |
---|
| 28 | 活動中のホストを報告するユーティリティです。 |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | |
---|
[5647] | 32 | %setup -q |
---|
| 33 | cp %{SOURCE1} . |
---|
[521] | 34 | |
---|
| 35 | %build |
---|
| 36 | |
---|
| 37 | make \ |
---|
| 38 | CC=%{__cc} \ |
---|
| 39 | CFLAGS="%{optflags} -DVER=\$(VERSION) -DOUI=\$(OUI)" \ |
---|
| 40 | OUI=%{_datadir}/%{name}/oui |
---|
| 41 | |
---|
| 42 | gawk -f oui.awk oui.txt > oui |
---|
| 43 | |
---|
| 44 | %install |
---|
| 45 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 46 | |
---|
| 47 | install -d %{buildroot}%{_sbindir} |
---|
| 48 | install -d %{buildroot}%{_datadir}/%{name}/ |
---|
| 49 | |
---|
| 50 | install -m0755 %{name} %{buildroot}%{_sbindir}/%{name} |
---|
| 51 | install -m0644 oui %{buildroot}%{_datadir}/%{name}//oui |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 55 | |
---|
| 56 | %files |
---|
| 57 | %defattr(-,root,root) |
---|
| 58 | %attr(0755,root,root) %{_sbindir}/* |
---|
| 59 | %{_datadir}/%{name} |
---|
| 60 | |
---|
| 61 | %changelog |
---|
[5647] | 62 | * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10-1 |
---|
| 63 | - update to 0.10 |
---|
| 64 | - remove Patch |
---|
| 65 | |
---|
[521] | 66 | * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 0.5-2vl5 |
---|
| 67 | - applied new versioning policy, spec in utf-8 |
---|
| 68 | |
---|
| 69 | * Thu Aug 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5-1vl2 |
---|
| 70 | - rebuilt for VineSeed (4.0) |
---|
| 71 | |
---|
| 72 | * Sun May 22 2005 OOI Keita <ooi.keita@gmail.com> 0.5-1vl1 |
---|
| 73 | - based on mdk |
---|
| 74 | |
---|
| 75 | * Sat Jan 08 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.5-1mdk |
---|
| 76 | - initial pld import |
---|