Logoj0ke.net Open Build Service > Projects > Apache:Modules > apache2-mod_chroot > Changes
Sign Up | Log In

Changes of Revision 3

[-] Added apache2-mod_chroot.spec
x
 
1
@@ -0,0 +1,51 @@
2
+# norootforbuild
3
+
4
+%define module_name mod_chroot
5
+%define apxs               /usr/sbin/apxs2
6
+%define apache_libexecdir  %(%{apxs} -q LIBEXECDIR)
7
+%define apache_mmn         %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
8
+#
9
+Name: apache2-mod_chroot
10
+Version: 0.5
11
+Release: 1
12
+#
13
+Group: Productivity/Networking/Web/Servers
14
+License: GPL
15
+#
16
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
17
+BuildRequires: apache2-devel
18
+#
19
+URL: http://core.segfault.pl/~hobbit/mod_chroot/
20
+Source: http://core.segfault.pl/~hobbit/mod_chroot/dist/%{module_name}-%{version}.tar.bz2
21
+Patch: apache2-mod_chroot-0.5_unistd.patch
22
+#
23
+Summary: Running Apache in a secure chroot environment.
24
+%description
25
+mod_chroot makes running Apache in a secure chroot environment easy. You
26
+don't need to create a special directory hierarchy containing /dev, /lib,
27
+/etc.
28
+
29
+
30
+Authors:
31
+---------
32
+    Marek Gutkowski <hobbit@core.segfault.pl>
33
+
34
+%prep
35
+%setup -n %{module_name}-%{version}
36
+%patch
37
+
38
+%build
39
+%{apxs} -c %{module_name}.c
40
+
41
+%install
42
+%{__install} -Dd -m 0755  %{buildroot}%{apache_libexecdir}
43
+%{apxs} -i -S LIBEXECDIR="%{buildroot}%{apache_libexecdir}" \
44
+    -n %{module_name} %{module_name}.la
45
+
46
+%clean
47
+%{__rm} -rf %{buildroot}
48
+
49
+%files
50
+%defattr(-,root,root,-)
51
+%{apache_libexecdir}/%{module_name}.so
52
+%doc CAVEATS ChangeLog INSTALL LICENSE README README.Apache20
53