]> git.pld-linux.org Git - packages/apache-mod_apparmor.git/commitdiff
- new
authorzbyniu <zbyniu@pld-linux.org>
Sun, 10 Dec 2006 22:05:37 +0000 (22:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_apparmor.spec -> 1.1

apache-mod_apparmor.spec [new file with mode: 0644]

diff --git a/apache-mod_apparmor.spec b/apache-mod_apparmor.spec
new file mode 100644 (file)
index 0000000..704c287
--- /dev/null
@@ -0,0 +1,56 @@
+%define                mod_name        apparmor
+%define        apxs            /usr/sbin/apxs
+%define                _ver 2.0
+%define                _svnrel         64
+Summary:       Apache module: AppArmor
+Name:          apache-mod_%{mod_name}
+Version:       %{_ver}.%{_svnrel}
+Release:       0.9
+License:       GPL
+Group:         Networking/Daemons
+Source0:       http://forgeftp.novell.com/apparmor/Development%20-%20October%20Snapshot/apache2-mod-%{mod_name}-%{_ver}-%{_svnrel}.tar.gz
+# Source0-md5: f01839ada8e1c2ea12d02384b89b15b5
+URL:           http://forge.novell.com/modules/xfmod/project/?apparmor
+BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.0.52-2
+BuildRequires: libapparmor-devel
+Requires:      apache(modules-api) = %apache_modules_api
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+
+%description
+%{name} adds support to apache2 to provide AppArmor confinement to
+individual cgi scripts handled by apache modules like mod_php and
+mod_perl. This package is part of a suite of tools that used to be
+named SubDomain.
+
+%prep
+%setup -q -n apache2-mod-%{mod_name}-%{_ver}
+
+%build
+%{__make} mod_%{mod_name}.so \
+       APXS=%{apxs}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+install -D mod_%{mod_name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/00_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q httpd restart
+
+%postun
+if [ "$1" = "0" ]; then
+       %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.119006 seconds and 4 git commands to generate.