From 1c3646a2a654880da48246a4b6c37b87b50cf4af Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Jun 2012 18:43:31 +0200 Subject: reorg repo --- Makefile | 4 ++ mod_dnssd-0.6-httpd24.patch | 24 +++++++++++ mod_dnssd.conf-httpd | 5 +++ mod_dnssd.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+) create mode 100644 Makefile create mode 100644 mod_dnssd-0.6-httpd24.patch create mode 100644 mod_dnssd.conf-httpd create mode 100644 mod_dnssd.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/mod_dnssd-0.6-httpd24.patch b/mod_dnssd-0.6-httpd24.patch new file mode 100644 index 0000000..6eb5058 --- /dev/null +++ b/mod_dnssd-0.6-httpd24.patch @@ -0,0 +1,24 @@ +--- mod_dnssd-0.6/src/mod_dnssd.c.httpd24 ++++ mod_dnssd-0.6/src/mod_dnssd.c +@@ -26,6 +26,9 @@ + #include + #include + #include ++#if AP_MODULE_MAGIC_AT_LEAST(20090130,0) ++#include ++#endif + + #include + +@@ -576,7 +579,11 @@ static void child_process(apr_pool_t *p, + + ap_assert(d); + ++#if AP_MODULE_MAGIC_AT_LEAST(20090130,0) ++ ap_unixd_setup_child(); ++#else + unixd_setup_child(); ++#endif + + if (pipe(sigterm_pipe_fds) < 0) { + ap_log_error(APLOG_MARK, APLOG_ERR, 0, r.main_server, "pipe() failed: %s", strerror(errno)); diff --git a/mod_dnssd.conf-httpd b/mod_dnssd.conf-httpd new file mode 100644 index 0000000..a5ba079 --- /dev/null +++ b/mod_dnssd.conf-httpd @@ -0,0 +1,5 @@ +LoadModule dnssd_module modules/mod_dnssd.so + +DNSSDEnable on +#DNSSDAutoRegisterVHosts on +#DNSSDAutoRegisterUserDir on diff --git a/mod_dnssd.spec b/mod_dnssd.spec new file mode 100644 index 0000000..351883a --- /dev/null +++ b/mod_dnssd.spec @@ -0,0 +1,99 @@ +%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}} +%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} + +Name: mod_dnssd +Version: 0.6 +Release: 6%{?dist} +Summary: An Apache HTTPD module which adds Zeroconf support + +Group: System Environment/Daemons +License: ASL 2.0 +URL: http://0pointer.de/lennart/projects/mod_dnssd/ +Source0: http://0pointer.de/lennart/projects/mod_dnssd/%{name}-%{version}.tar.gz +Source1: mod_dnssd.conf-httpd +Patch0: mod_dnssd-0.6-httpd24.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: httpd-mmn = %{_httpd_mmn} +BuildRequires: httpd-devel avahi-devel e2fsprogs-devel + +%description +mod_dnssd is an Apache HTTPD module which adds Zeroconf support via DNS-SD +using Avahi. + +%prep +%setup -q +%patch0 -p1 -b .httpd24 + +%build +export APXS=%{_httpd_apxs} +%configure --disable-lynx +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +install -Dp src/.libs/mod_dnssd.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/mod_dnssd.so +%if "%{_httpd_confdir}" == "%{_httpd_modconfdir}" +install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/mod_dnssd.conf +%else +sed -n /^LoadModule/p %{SOURCE1} > 10-mod_dnssd.conf +sed /^LoadModule/d %{SOURCE1} > mod_dnssd.conf +touch -r %{SOURCE1} 10-mod_dnssd.conf mod_dnssd.conf +install -Dp -m 0644 mod_dnssd.conf $RPM_BUILD_ROOT%{_httpd_confdir}/mod_dnssd.conf +install -Dp -m 0644 10-mod_dnssd.conf $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-mod_dnssd.conf +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc LICENSE doc/README doc/README.html +%config(noreplace) %{_sysconfdir}/httpd/conf.*/*.conf +%{_libdir}/httpd/modules/mod_dnssd.so + +%changelog +* Tue Apr 17 2012 Remi Collet - 0.6-6 +- rebuild for remi repo and httpd 2.4 + +* Tue Apr 17 2012 Joe Orton - 0.6-6 +- update for httpd 2.4, fix deps etc (#803069) + +* Fri Jan 13 2012 Fedora Release Engineering - 0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 25 2009 Fedora Release Engineering - 0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Jan 28 2009 Lennart Poettering - 0.6-1 +- New upstream + +* Mon Aug 11 2008 Tom "spot" Callaway - 0.5-7 +- fix license tag + +* Sun Feb 10 2008 Ignacio Vazquez-Abrams 0.5-6 +- Rebuild for GCC 4.3 + +* Mon Sep 3 2007 Ignacio Vazquez-Abrams 0.5-5 +- Rebuild for new 32-bit APR ABI + +* Tue Aug 21 2007 Ignacio Vazquez-Abrams 0.5-4 +- Fix License tag +- Rebuild for F8t2 + +* Tue Jul 24 2007 Ignacio Vazquez-Abrams 0.5-3 +- Add upstream patch to fix UID issue + +* Mon Jun 25 2007 Ignacio Vazquez-Abrams 0.5-2 +- Add LoadModule to the config file + +* Mon Jun 18 2007 Ignacio Vazquez-Abrams 0.5-1 +- Initial RPM release -- cgit