]>
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 = 22 | |
9 | release = 0.3-svn%{svn_ver}.2 | |
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.sh %{version} %{svn_ver} | |
24 | ||
25 | build | |
26 | # Compile for release. | |
27 | make_build_targets += MODE=release | |
28 | ||
29 | install_cmds | |
30 | rm -vf %{BUILDROOT}/sbin/bridge-stp | |
31 | end | |
32 | end | |
33 | ||
34 | packages | |
35 | package %{name} | |
36 | requires = network | |
37 | ||
38 | # Replace rstp. | |
39 | provides += rstp=0.21-9 | |
40 | obsoletes += rstp<0.21-9 | |
41 | ||
42 | script postin | |
43 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
44 | /bin/systemctl --no-reload enable mstpd.service >/dev/null 2>&1 || : | |
45 | end | |
46 | ||
47 | script preun | |
48 | /bin/systemctl --no-reload disable mstpd.service >/dev/null 2>&1 || : | |
49 | /bin/systemctl stop rstp.service >/dev/null 2>&1 || : | |
50 | end | |
51 | ||
52 | script postup | |
53 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
54 | /bin/systemctl try-restart mstpd.service >/dev/null 2>&1 || : | |
55 | end | |
56 | end | |
57 | ||
58 | package %{name}-debuginfo | |
59 | template DEBUGINFO | |
60 | end | |
61 | end |