switch4g: completely re-writen
[tomato.git] / release / src / router / vlan / vconfig.spec
blobc05c7b5966d38b31088261cb706ea0d99c72e045
1 Summary: Linux 802.1q VLAN configuration utility
2 Name: vconfig
3 Version: 1.6
4 Release: 4
5 License: distributable
6 Group: Applications/System
7 Source: http://scry.wanfear.com/~greear/vlan/vlan.%{version}.tar.gz
8 Source1: ifup-vlan
9 Source2: ifdown-vlan
10 Source3: vlan.sysconfig
11 Source4: README.ifup
12 Source5: ifcfg-vlan2-example
13 URL: http://scry.wanfear.com/~greear/vlan.html
14 BuildRoot: %{_tmppath}/%{name}-%{version}-root
15 Packager: Dale Bewley <dale@bewley.net>
16 BuildRequires: kernel-source >= 2.4.14
17 Requires: kernel >= 2.4.14
19 %description
20 802.1q VLAN support is now in the linux kernel as of 2.4.14.
21 This package provides the vlan configuration utility, vconfig,
22 and ifup and ifdown scripts for configuring interfaces.
24 %prep
25 %setup -q -n vlan
26 cp %SOURCE4 .
27 cp %SOURCE5 .
29 %build
30 make
32 %clean
33 rm -rf $RPM_BUILD_ROOT
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
38 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/network-scripts
39 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
40 install -o 0 -g 0 -m 755 vconfig $RPM_BUILD_ROOT/%{_sbindir}/vconfig
41 install -o 0 -g 0 -m 755 vconfig.8 $RPM_BUILD_ROOT/%{_mandir}/man8
42 install -o 0 -g 0 -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-vlan
43 install -o 0 -g 0 -m 755 %SOURCE2 $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifdown-vlan
44 install -o 0 -g 0 -m 644 %SOURCE3 $RPM_BUILD_ROOT/etc/sysconfig/vlan
46 %files
47 %defattr(-,root,root)
48 %doc CHANGELOG contrib README README.ifup vlan.html vlan_test.pl ifcfg-vlan2-example
49 %{_sbindir}/vconfig
50 %{_mandir}/man8/vconfig.8.gz
51 /etc/sysconfig/vlan
52 /etc/sysconfig/network-scripts/ifup-vlan
53 /etc/sysconfig/network-scripts/ifdown-vlan
55 %changelog
56 * Fri Apr 05 2002 Dale Bewley <dale@bewley.net>
57 - update to 1.6
58 - add ifup scripts
60 * Tue Dec 11 2001 Dale Bewley <dale@bewley.net>
61 - initial specfile