1 %include /usr/lib/rpm/macros.perl
2 Summary: A3Com - manipulation of 3Com SuperStack II
3 Summary(pl): A3Com - manipulacje 3Com SuperStack II
8 Group: Networking/Utilities
9 Source0: http://www.kernel.org/pub/software/admin/A3Com/%{name}-%{version}.tar.bz2
10 URL: http://www.kernel.org/software/A3Com/
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 A3Com is a set of Perl 5 modules which allow manipulation of 3Com
15 SuperStack II 3900/9300 and CoreBuilder 3500 LAN switches. Currently
16 there are modules which can use either the SNMP or telnet interface
19 - -dump the ARP tables
21 - -search switches for a MAC address, IP address, or hostname
22 - -change admin passwords in batch mode
23 - -save and restore switch configurations via SNMP
24 - -upload new firmware via SNMP (batch mode)
25 - -and collect per-port ethernet details like current autonegotiation
26 mode and duplex settings
27 - -keep global caches of ARP and bridge tables for fast searches
28 - -keep global ARP history as a merged ARP database from
36 # Change path for perl:
38 cat $i | sed -e "s/\/usr\/local\/bin/\%{_prefix}\/bin/" > tmp
41 # Change location of config:
43 cat $i | sed -e "s/\/usr\/local\/etc/\/etc/" > tmp
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/A3Com,%{_sysconfdir}}
55 %{__make} DESTDIR=$RPM_BUILD_ROOT install
57 install tools/* $RPM_BUILD_ROOT%{_bindir}
59 cat << EOF >$RPM_BUILD_ROOT%{_sysconfdir}/a3com.conf
60 GLOBALCACHEDIR = /var/lib/A3Com
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc CHANGELOG TODO README test.pl
69 %attr(777,root,root) %dir /var/lib/A3Com
70 %attr(644,root,root) %{_sysconfdir}/a3com.conf
71 %attr(755,root,root) %{_bindir}/*
72 %{perl_sitelib}/A3Com/*.pm