]>
Commit | Line | Data |
---|---|---|
2767b51a | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
2767b51a BS |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = avahi |
7 | version = 0.6.30 | |
5aa11a47 | 8 | release = 3 |
2767b51a | 9 | |
802ea3af MT |
10 | groups = Networking/Zeroconf |
11 | url = http://avahi.org/ | |
12 | license = LGPLv2+ | |
13 | summary = Local network service discovery | |
2767b51a | 14 | |
802ea3af | 15 | description |
2767b51a BS |
16 | Avahi is a system which facilitates service discovery on \ |
17 | a local network -- this means that you can plug your laptop or \ | |
18 | computer into a network and instantly be able to view other people who \ | |
19 | you can chat with, find printers to print to or find files being \ | |
20 | shared. This kind of technology is already found in MacOS X (branded \ | |
21 | 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very \ | |
f0b55c28 | 22 | convenient. |
802ea3af | 23 | end |
2767b51a | 24 | |
802ea3af | 25 | source_dl = http://avahi.org/download/ |
2767b51a | 26 | |
802ea3af MT |
27 | build |
28 | requires | |
29 | dbus-devel | |
30 | dbus-glib-devel | |
31 | expat-devel | |
32 | gcc-c++ | |
33 | gettext | |
34 | libdaemon-devel>=0.14 | |
35 | intltool | |
36 | perl | |
37 | perl-XML-Parser | |
38 | pkg-config | |
39 | python-devel | |
40 | python-dbus | |
5aa11a47 | 41 | systemd-units |
802ea3af | 42 | end |
2767b51a | 43 | |
802ea3af | 44 | configure_options += \ |
802ea3af | 45 | --with-distro=none \ |
5aa11a47 | 46 | --with-systemdsystemunitdir=%{unitdir} \ |
802ea3af MT |
47 | --disable-gdbm \ |
48 | --disable-qt3 \ | |
49 | --disable-qt4 \ | |
50 | --disable-gtk \ | |
51 | --disable-gtk3 \ | |
52 | --disable-pygtk \ | |
53 | --disable-mono | |
54 | end | |
38829578 | 55 | |
802ea3af MT |
56 | packages |
57 | package %{name} | |
5aa11a47 SS |
58 | requires |
59 | libdaemon>=0.14 | |
60 | end | |
61 | ||
62 | # Just search for new unit files that were just installed. | |
63 | script postin | |
64 | systemctl daemon-reload >/dev/null 2>&1 || : | |
65 | end | |
66 | ||
67 | # Disable the service that is to be removed and stop it if it is still running. | |
68 | script preun | |
69 | systemctl --no-reload disable avahi-daemon.service >/dev/null 2>&1 || : | |
70 | systemctl stop avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || : | |
71 | end | |
72 | ||
73 | # Just tell systemd that unitfiles have been removed. | |
74 | script postun | |
75 | systemctl daemon-reload >/dev/null 2>&1 || : | |
76 | end | |
77 | ||
78 | # Try to restart the service if it is running. | |
79 | script postup | |
80 | systemctl daemon-reload >/dev/null 2>&1 || : | |
81 | systemctl try-restart avahi-daemon.service avahi-dnsconfd.service >/dev/null 2>&1 || : | |
82 | end | |
802ea3af | 83 | end |
1f9bc2f0 | 84 | |
802ea3af MT |
85 | package %{name}-devel |
86 | template DEVEL | |
87 | end | |
1f9bc2f0 | 88 | |
802ea3af MT |
89 | package %{name}-libs |
90 | template LIBS | |
91 | end | |
1f9bc2f0 MT |
92 | |
93 | package %{name}-debuginfo | |
94 | template DEBUGINFO | |
95 | end | |
802ea3af | 96 | end |