]>
Commit | Line | Data |
---|---|---|
24768628 ER |
1 | # TODO |
2 | # - module not usable under apache 2.4: | |
3 | # httpd: Syntax error on line 70 of /etc/httpd/apache.conf: | |
4 | # Syntax error on line 1 of /etc/httpd/conf.d/90_mod_dnssd.conf: | |
5 | # Cannot load modules/mod_dnssd.so into server: /etc/httpd/modules/mod_dnssd.so: undefined symbol: unixd_setup_child | |
6 | ||
b1de573b JB |
7 | %define apxs %{_sbindir}/apxs |
8 | Summary: mod_dnssd - Apache HTTPD module which adds Zeroconf support via DNS-SD using Avahi | |
9 | Summary(pl.UTF-8): mod_dnssd - moduł Apache HTTPD oddający obsługę Zeroconfa poprzez DNS-SD przy użyciu Avahi | |
10 | Name: apache-mod_dnssd | |
11 | Version: 0.6 | |
24768628 | 12 | Release: 2.1 |
b1de573b JB |
13 | License: Apache v2.0 |
14 | Group: Networking/Daemons/HTTP | |
15 | Source0: http://0pointer.de/lennart/projects/mod_dnssd/mod_dnssd-%{version}.tar.gz | |
16 | # Source0-md5: bed3d95a98168bf0515922d1c05020c5 | |
17 | URL: http://0pointer.de/lennart/projects/mod_dnssd/ | |
18 | BuildRequires: %{apxs} | |
19 | BuildRequires: apache-devel >= 2.2 | |
20 | BuildRequires: apr-devel >= 1 | |
21 | BuildRequires: avahi-devel >= 0.6 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: rpmbuild(macros) >= 1.268 | |
24 | Requires: apache(modules-api) = %apache_modules_api | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
28 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d | |
29 | ||
30 | %description | |
31 | mod_dnssd is an Apache HTTPD module which adds Zeroconf support via | |
32 | DNS-SD using Avahi. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | mod_dnssd to moduł serwera Apache HTTPD dodający obsługę Zeroconfa | |
36 | poprzez DNS-SD przy użyciu Avahi. | |
37 | ||
38 | %prep | |
39 | %setup -q -n mod_dnssd-%{version} | |
40 | ||
41 | %build | |
42 | %configure \ | |
c6e4700b | 43 | APXS="%{apxs}" |
b1de573b JB |
44 | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} | |
b1de573b JB |
50 | install -p src/.libs/mod_dnssd.so $RPM_BUILD_ROOT%{_pkglibdir} |
51 | ||
52 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_dnssd.conf <<EOF | |
53 | LoadModule dnssd_module modules/mod_dnssd.so | |
54 | DNSSDEnable On | |
55 | # enable to automatically register all mod_userdir directories | |
56 | DNSSDAutoRegisterUserDir Off | |
57 | # enable to automatically register all local virtual hosts | |
58 | DNSSDAutoRegisterVHosts Off | |
59 | EOF | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post | |
65 | %service -q httpd restart | |
66 | ||
67 | %postun | |
68 | if [ "$1" = "0" ]; then | |
69 | %service -q httpd restart | |
70 | fi | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc README | |
75 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/90_mod_dnssd.conf | |
76 | %attr(755,root,root) %{_pkglibdir}/mod_dnssd.so |