/[smecontribs]/rpms/smeserver-bridge-interface/contribs10/smeserver-bridge-interface.spec
ViewVC logotype

Contents of /rpms/smeserver-bridge-interface/contribs10/smeserver-bridge-interface.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.10 - (show annotations) (download)
Sun Dec 25 07:16:58 2022 UTC (22 months, 1 week ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-bridge-interface-0_2-9_el7_sme, HEAD
Changes since 1.9: +9 -4 lines
Error occurred while calculating annotation data.
* Sun Dec 25 2022 Terry Fage <terry@fage.id.au> 0.2-9.sme
- make bridge interface compat to e-smith-base on install [SME: 12271]

1 # $Id: smeserver-bridge-interface.spec,v 1.9 2022/12/15 19:19:21 terryfage Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4
5 %define version 0.2
6 %define release 9
7 %define name smeserver-bridge-interface
8
9
10 Summary: Configure a bridge interface
11 Name: %{name}
12 Version: %{version}
13 Release: %{release}%{?dist}
14 License: GPL
15 Group: System/Servers
16 Source: %{name}-%{version}.tar.xz
17
18 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19 URL: http://www.firewall-services.com/
20
21 BuildRequires: e-smith-devtools
22
23 Requires: bridge-utils
24 Requires: openvpn
25 Requires: e-smith-base >= 5.8.1-23
26 Buildarch: noarch
27 Conflicts: smeserver-openvpn-bridge.fws
28 Conflicts: smeserver-openvpn-bridge-fws
29 AutoReqProv: no
30
31 Patch0: smeserver-bridge-interface-0.2-Update-Createlinks-for-systemd.patch
32 Patch1: smeserver-bridge-interface-0.2-Move-exec-to-sbin-e-smith-and-add-service-file.patch
33 Patch2: smeserver-bridge-interface-0.2-Add-Restart-to-service-file.patch
34 Patch3: smeserver-bridge-interface-0.2-Change-After-in-Service-file-to-network-service-from-target.patch
35 Patch4: smeserver-bridge-interface-0.2-makeitcompatible.patch
36 Patch5: smeserver-bridge-interface.0.2-dhcp-conflict-systemd-bz12271.patch
37 Patch6: smeserver-bridge-interface.0.2-dhcp-base-compat--bz12271.patch
38
39 %description
40 This package allows you to replace the internal interface with a bridge
41 interface (and the original internal interface enslaved to it).
42 It's usefull for OpenVPN in bridge mode but can also be used for virtual host
43 configuration
44
45 %changelog
46 * Sun Dec 25 2022 Terry Fage <terry@fage.id.au> 0.2-9.sme
47 - make bridge interface compat to e-smith-base on install [SME: 12271]
48
49 * Fri Dec 16 2022 Terry Fage <terry@fage.id.au> 0.2-8.sme
50 - make bridge interface up on install [SME: 12271]
51
52 * Tue Mar 23 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-7.sme
53 - make bridge interface up on install [SME: 11485]
54 - modify support for dhcp with bridge
55
56 * Thu Jan 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-6.sme
57 - Change-After-in-Service-file-to-network-service-from-target [SME: 11324]
58
59 * Sun Jan 24 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-5.sme
60 - Add-Restart-to-service-file.patch [SME: 11324 ]
61
62 * Sat Jan 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-4.sme
63 - Move exec to /sbin/e-smith/systemd/bridge-run, add service file [SME: 11324]
64
65 * Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme
66 - Initial Import to SME10 [SME: 11324]
67 - Update-Createlinks-for-systemd.patch
68
69 * Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme
70 - Rebuild for SME9
71
72 * Tue Jun 19 2012 Daniel B. <daniel@firewall-services.com> - 0.1-6.sme
73 - Wait after physical interface config
74 (fix a random bug in serveronly mode)
75 - Ensure the bridge takes the MAC address of the physical interface
76 - Optionally set the bridge interface in promiscuous mode
77
78 * Tue Apr 19 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme
79 - Fix ifcfg templates expension on SME8 [SME: 6092]
80
81 * Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-4]
82 - Enhance init script to display what it's doing (starting/stoping etc...)
83 - Cleanup in spec file
84
85 * Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-3]
86 - Set default status to enabled
87
88 * Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-2]
89 - possibility to set multiple tap interfaces separated with commas
90
91 * Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
92 - Set the Name of InternalInterface to br0 when starting
93 - Do not set the Name of InternalInterface to br0 if service is disabled
94 (during databases initialization)
95
96 * Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-0]
97 - initial release
98
99 %prep
100
101 %setup -q -n %{name}-%{version}
102 %patch0 -p1
103 %patch1 -p1
104 %patch2 -p1
105 %patch3 -p1
106 %patch4 -p1
107 %patch5 -p1
108 %patch6 -p1
109
110 %build
111 # Build symlinks
112 perl createlinks
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
117 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
118 > %{name}-%{version}-%{release}-filelist
119
120 chmod +x %{buildroot}/sbin/e-smith/systemd/bridge-run
121
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files -f %{name}-%{version}-%{release}-filelist
127 %defattr(-,root,root)
128
129
130 %post
131
132 %preun
133 #if [ $1 = 0 ] ; then
134 # /etc/rc.d/init.d/bridge stop >& /dev/null || :
135 #fi
136
137 true

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed