]> git.pld-linux.org Git - packages/A3Com.git/blame - A3Com.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/A3Com.git] / A3Com.spec
CommitLineData
0c730958 1Summary: A3Com - manipulation of 3Com SuperStack II
68a7f964 2Summary(pl.UTF-8): A3Com - manipulacje 3Com SuperStack II
0c730958
PG
3Name: A3Com
4Version: 0.2.3
7a4ecc18 5Release: 2
0c730958
PG
6License: GPL v2
7Group: Networking/Utilities
8Source0: http://www.kernel.org/pub/software/admin/A3Com/%{name}-%{version}.tar.bz2
877d333b 9# Source0-md5: 16133ebf73fe3883b0d46ed88f03377a
0c730958
PG
10URL: http://www.kernel.org/software/A3Com/
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14A3Com is a set of Perl 5 modules which allow manipulation of 3Com
15SuperStack II 3900/9300 and CoreBuilder 3500 LAN switches. Currently
16there are modules which can use either the SNMP or telnet interface
17to:
18
285d1849 19- dump the ARP tables
20- dump bridge 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
0c730958 29
b9f81e3d
JR
30%description -l pl.UTF-8
31A3Com to zestaw modułów Perla pozwalających na konfigurowanie switchy
f69c1c3c 32LAN firmy 3Com: SuperStack II 3900/9300 i CoreBuilder 3500. Aktualnie
b9f81e3d 33moduły te mogą używać interfejsu SNMP lub telnet do:
f69c1c3c
JB
34- wypisania tablic ARP
35- wypisania tablic bridgingu
b9f81e3d
JR
36- wyszukiwania adresów MAC, IP lub nazw hostów
37- zmiany haseł administratora w trybie wsadowym
f69c1c3c 38- zapisywania i odtwarzania konfiguracji switchy po SNMP
b9f81e3d
JR
39- przesyłania nowego firmware'u po SNMP (w trybie wsadowym)
40- zbierania dotyczących poszczególnych portów informacji takich jak
f69c1c3c
JB
41 aktualny tryb autonegocjacji i duplex
42- przechowywania globalnego cache tablic ARP i bridgingu w celu
43 szybkiego przeszukiwania
b9f81e3d 44- przechowywania globalnej historii ARP jako połączonej bazy danych.
0c730958
PG
45
46%prep
47%setup -q
48
49%build
93e71273 50# Change path for perl:
0c730958 51for i in tools/*; do
93e71273 52 cat $i | sed -e "s/\/usr\/local\/bin/\%{_prefix}\/bin/" > tmp
0c730958
PG
53 mv tmp $i
54done
93e71273
PG
55# Change location of config:
56for i in A3Com/*; do
57 cat $i | sed -e "s/\/usr\/local\/etc/\/etc/" > tmp
58 mv tmp $i
59done
60
61# Make modules:
7a4ecc18 62%{__perl} Makefile.PL \
63 INSTALLDIRS=vendor
0c730958
PG
64%{__make}
65
66%install
67rm -rf $RPM_BUILD_ROOT
93e71273 68install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/A3Com,%{_sysconfdir}}
0c730958 69
ab33cbf3
PG
70%{__make} install \
71 DESTDIR=$RPM_BUILD_ROOT
0c730958
PG
72
73install tools/* $RPM_BUILD_ROOT%{_bindir}
74
93e71273
PG
75cat << EOF >$RPM_BUILD_ROOT%{_sysconfdir}/a3com.conf
76GLOBALCACHEDIR = /var/lib/A3Com
77EOF
78
0c730958
PG
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%files
83%defattr(644,root,root,755)
84%doc CHANGELOG TODO README test.pl
93e71273 85%attr(777,root,root) %dir /var/lib/A3Com
c81b6837 86%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a3com.conf
0c730958 87%attr(755,root,root) %{_bindir}/*
33101cae 88%dir %{perl_vendorlib}/A3Com
7a4ecc18 89%{perl_vendorlib}/A3Com/*.pm
This page took 0.083775 seconds and 4 git commands to generate.