3 # - package split by backend
4 %define mod_name pointer
5 %define apxs %{_sbindir}/apxs1
6 Summary: Apache module for making domain redirects
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
14 URL: http://stderr.net/mod_pointer/
15 BuildRequires: apache1-devel >= 1.3.33-2
16 BuildRequires: gdbm-devel
17 BuildRequires: mysql-devel
18 BuildRequires: postgresql-devel
19 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires: apache1 >= 1.3.33-2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
24 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
27 mod_pointer is an Apache module for making domain redirects easy - the
28 known service of many hosting providers that lets a domain point to
29 your webpage on another server.
31 The configuration part of the mappings are handled in either a MySQL
32 or Postgresql database or a NDBM or SDBM db file, so it's easy to
33 build a webbased interface for letting users change it on their own.
36 %setup -q -n mod_%{mod_name}-%{version}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
47 APXS="%{apxs} -S DESTDIR=$RPM_BUILD_ROOT"
50 rm -rf $RPM_BUILD_ROOT
53 %service -q apache restart
56 if [ "$1" = "0" ]; then
57 %service -q apache restart
61 %defattr(644,root,root,755)
63 #%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
64 %attr(755,root,root) %{_pkglibdir}/*