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

Annotation 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.5 - (hide annotations) (download)
Sat Jan 23 08:57:29 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-bridge-interface-0_2-4_el7_sme
Changes since 1.4: +6 -6 lines
* Sat Jan 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-4.sme
- Move exec to  /sbin/e-smith/systemd/bridge-run, add service file [SME: 11324]

1 brianr 1.5 # $Id: smeserver-bridge-interface.spec,v 1.4 2021/01/22 08:50:42 brianr Exp $
2 brianr 1.1 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5     %define version 0.2
6 brianr 1.5 %define release 4
7 brianr 1.1 %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     Buildarch: noarch
26     Conflicts: smeserver-openvpn-bridge.fws
27     Conflicts: smeserver-openvpn-bridge-fws
28     AutoReqProv: no
29    
30 brianr 1.3 Patch0:smeserver-bridge-interface-0.2-Update-Createlinks-for-systemd.patch
31 brianr 1.5 Patch1:smeserver-bridge-interface-0.2-Move-exec-to-sbin-e-smith-and-add-service-file.patch
32 brianr 1.3
33 brianr 1.1 %description
34     This package allows you to replace the internal interface with a bridge
35     interface (and the original internal interface enslaved to it).
36     It's usefull for OpenVPN in bridge mode but can also be used for virtual host
37     configuration
38    
39     %changelog
40 brianr 1.5 * Sat Jan 23 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-4.sme
41     - Move exec to /sbin/e-smith/systemd/bridge-run, add service file [SME: 11324]
42 brianr 1.4
43 brianr 1.2 * Thu Jan 14 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme
44     - Initial Import to SME10 [SME: 11324]
45 brianr 1.3 - Update-Createlinks-for-systemd.patch
46 brianr 1.2
47 brianr 1.1 * Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme
48     - Rebuild for SME9
49    
50     * Tue Jun 19 2012 Daniel B. <daniel@firewall-services.com> - 0.1-6.sme
51     - Wait after physical interface config
52     (fix a random bug in serveronly mode)
53     - Ensure the bridge takes the MAC address of the physical interface
54     - Optionally set the bridge interface in promiscuous mode
55    
56     * Tue Apr 19 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme
57     - Fix ifcfg templates expension on SME8 [SME: 6092]
58    
59     * Fri May 29 2009 Daniel B. <daniel@firewall-services.com> [0.1-4]
60     - Enhance init script to display what it's doing (starting/stoping etc...)
61     - Cleanup in spec file
62    
63     * Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-3]
64     - Set default status to enabled
65    
66     * Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-2]
67     - possibility to set multiple tap interfaces separated with commas
68    
69     * Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
70     - Set the Name of InternalInterface to br0 when starting
71     - Do not set the Name of InternalInterface to br0 if service is disabled
72     (during databases initialization)
73    
74     * Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-0]
75     - initial release
76    
77     %prep
78    
79     %setup -q -n %{name}-%{version}
80 brianr 1.3 %patch0 -p1
81 brianr 1.4 %patch1 -p1
82 brianr 1.1
83     %build
84     # Build symlinks
85     perl createlinks
86    
87     %install
88     rm -rf $RPM_BUILD_ROOT
89     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
90     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
91     > %{name}-%{version}-%{release}-filelist
92    
93 brianr 1.5 chmod +x %{buildroot}/sbin/e-smith/systemd/bridge-run
94 brianr 1.4
95    
96 brianr 1.1 %clean
97     rm -rf $RPM_BUILD_ROOT
98    
99     %files -f %{name}-%{version}-%{release}-filelist
100     %defattr(-,root,root)
101    
102    
103     %post
104    
105     %preun
106 brianr 1.3 #if [ $1 = 0 ] ; then
107     # /etc/rc.d/init.d/bridge stop >& /dev/null || :
108     #fi
109 brianr 1.1
110     true
111    

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