2 # - package split by backend
3 %define mod_name pointer
4 %define apxs %{_sbindir}/apxs1
5 Summary: Apache module for making domain redirects
6 Summary(pl.UTF-8): Moduł Apache'a do tworzenia przekierowań domen
7 Name: apache1-mod_%{mod_name}
11 Group: Networking/Daemons
12 Source0: http://stderr.net/mod_pointer/dist/mod_pointer-%{version}.tar.gz
13 # Source0-md5: 2f6529c49f1d10ecd06d3f6bc8503a5f
15 Patch0: %{name}-mysql.patch
16 URL: http://stderr.net/mod_pointer/
17 BuildRequires: apache1-devel >= 1.3.34-8.5
18 BuildRequires: gdbm-devel
19 BuildRequires: mysql-devel
20 BuildRequires: postgresql-devel
21 BuildRequires: rpmbuild(macros) >= 1.268
22 Requires: apache1(EAPI)
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
26 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
29 mod_pointer is an Apache module for making domain redirects easy - the
30 known service of many hosting providers that lets a domain point to
31 your webpage on another server.
33 The configuration part of the mappings are handled in either a MySQL
34 or PostgreSQL database or a NDBM or SDBM db file, so it's easy to
35 build a webbased interface for letting users change it on their own.
37 %description -l pl.UTF-8
38 mod_pointer to moduł Apache'a do łatwego tworzenia przekierowań domen
39 - znanej usługi wielu providerów pozwalającej domenie wskazywać na
40 stronę na innym serwerze.
42 Część konfiguracyjna odwzorowań jest obsługiwana poprzez bazę danych
43 MySQL lub PostgreSQL albo plik bazy danych NDBM lub SDBM, więc łatwo
44 stworzyć oparty na WWW interfejs umożliwiający użytkownikom
45 samodzielną zmianę przekierowań.
48 %setup -q -n mod_%{mod_name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
60 APXS="%{apxs} -S DESTDIR=$RPM_BUILD_ROOT"
62 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/40_mod_%{mod_name}.conf
65 rm -rf $RPM_BUILD_ROOT
68 %service -q apache restart
71 if [ "$1" = "0" ]; then
72 %service -q apache restart
76 %defattr(644,root,root,755)
77 %doc README CHANGES SUPPORT TODO frameset.html *.sql *.readme pointer.conf
78 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
79 %attr(755,root,root) %{_pkglibdir}/*