arpscan-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. %define name arpscan
  2. %define version 0.10
  3. %define release 1%{?_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.gz
  16. Source1: http://standards.ieee.org/develop/regauth/oui/oui.txt
  17. BuildRequires: gawk
  18. #BuildRequires: wget
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. %description
  21. Arpscan is a utility that scans local network using ARP protocol
  22. and reports alive hosts. Program is designed for Linux.
  23. %description -l ja
  24. ARPプロトコルを使って、ローカルネットワークをスキャンし、
  25. 活動中のホストを報告するユーティリティです。
  26. %prep
  27. %setup -q
  28. cp %{SOURCE1} .
  29. %build
  30. make \
  31. CC=%{__cc} \
  32. CFLAGS="%{optflags} -DVER=\$(VERSION) -DOUI=\$(OUI)" \
  33. OUI=%{_datadir}/%{name}/oui
  34. gawk -f oui.awk oui.txt > oui
  35. %install
  36. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  37. install -d %{buildroot}%{_sbindir}
  38. install -d %{buildroot}%{_datadir}/%{name}/
  39. install -m0755 %{name} %{buildroot}%{_sbindir}/%{name}
  40. install -m0644 oui %{buildroot}%{_datadir}/%{name}//oui
  41. %clean
  42. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root)
  45. %attr(0755,root,root) %{_sbindir}/*
  46. %{_datadir}/%{name}
  47. %changelog
  48. * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10-1
  49. - update to 0.10
  50. - remove Patch
  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