- initial release
[packages/apache1-mod_suid.git] / apache1-mod_suid.spec
1 %define         mod_name        suid
2 %define         ver             1.1
3 %define         apxs            /usr/sbin/apxs
4 Summary:        Apache module: execution of scripts under their own uids
5 Summary(pl):    Modu³ do apache: wykonywanie skryptow pod wskazanym uidem
6 Name:           apache-mod_%{mod_name}
7 Version:        %{ver}
8 Release:        0.1
9 License:        GPL
10 Group:          Networking/Daemons
11 Source0:        http://www.jdimedia.nl/igmar/mod_%{mod_name}/files/mod_%{mod_name}-%{version}.tar.gz
12 URL:            http://www.jdimedia.nl/igmar/mod_%{mod_name}/
13 BuildRequires:  %{apxs}
14 BuildRequires:  apache-devel
15 BuildRequires:  zlib-devel
16 Requires(post,preun):   %{apxs}
17 Requires:       apache
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
21
22 %description
23 Apache module: execution of scripts under their own uids per-vhost
24
25 %description -l pl
26 Modu³ do apache: wykonywanie skryptow pod wskazanym uidem per-vhost
27
28 %prep
29 %setup -q -n mod_%{mod_name}-%{version}
30
31 %build
32 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lz
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_pkglibdir}
37
38 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
45 if [ -f /var/lock/subsys/httpd ]; then
46         /etc/rc.d/init.d/httpd restart 1>&2
47 fi
48
49 %preun
50 if [ "$1" = "0" ]; then
51         %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
52         if [ -f /var/lock/subsys/httpd ]; then
53                 /etc/rc.d/init.d/httpd restart 1>&2
54         fi
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc CHANGES.txt README
60 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.094738 seconds and 3 git commands to generate.