]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = mstpd | |
7 | version = 0.01 | |
8 | svn_ver = 16 | |
9 | release = 0.2-svn%{svn_ver}.4 | |
10 | thisapp = %{name}-%{version}-svn%{svn_ver} | |
11 | ||
12 | groups = Networking/Tools | |
13 | url = http://sourceforge.net/projects/mstpd/ | |
14 | license = GPLv2+ | |
15 | summary = The Multiple Spanning Tree Protocol Daemon. | |
16 | ||
17 | description | |
18 | A daemon that implements the Multiple Spanning Tree Protocol | |
19 | running upon the Linux ethernet bridge. | |
20 | end | |
21 | ||
22 | # Tarballs are created as follows: | |
23 | # svn export http://svn.code.sf.net/p/mstpd/code/trunk mstpd-%{version}-svn%{svn_ver} | |
24 | # tar cvfz mstpd-%{version}-svn%{svn_ver}.tar.gz mstpd-%{version}-svn%{svn_ver} | |
25 | ||
26 | build | |
27 | # Compile for release. | |
28 | make_build_targets += MODE=release | |
29 | ||
30 | install_cmds | |
31 | rm -vf %{BUILDROOT}/sbin/bridge-stp | |
32 | end | |
33 | end | |
34 | ||
35 | packages | |
36 | package %{name} | |
37 | requires = network | |
38 | ||
39 | # A regression in the Linux kernel causes that no port | |
40 | # was brought up. It was fixed in 3.0.4-11. | |
41 | conflicts += kernel<3.0.4-11 | |
42 | ||
43 | # Replace rstp. | |
44 | provides += rstp=0.21-9 | |
45 | obsoletes += rstp<0.21-9 | |
46 | ||
47 | script postin | |
48 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
49 | /bin/systemctl --no-reload enable mstpd.service >/dev/null 2>&1 || : | |
50 | end | |
51 | ||
52 | script preun | |
53 | /bin/systemctl --no-reload disable mstpd.service >/dev/null 2>&1 || : | |
54 | /bin/systemctl stop rstp.service >/dev/null 2>&1 || : | |
55 | end | |
56 | ||
57 | script postup | |
58 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
59 | /bin/systemctl try-restart mstpd.service >/dev/null 2>&1 || : | |
60 | end | |
61 | end | |
62 | end |