arpscan-vl.spec 1.9 KB

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