- initial pld release (for apache 1.3)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 9 Feb 2004 23:16:51 +0000 (23:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_become.spec -> 1.1

apache1-mod_become.spec [new file with mode: 0644]

diff --git a/apache1-mod_become.spec b/apache1-mod_become.spec
new file mode 100644 (file)
index 0000000..d5fe4ce
--- /dev/null
@@ -0,0 +1,60 @@
+%define                mod_name        become
+%define        apxs            %{_sbindir}/apxs
+Summary:       Apache module: Become Somebody
+Name:          apache-mod_%{mod_name}
+Version:       1.3
+Release:       1
+License:       ?
+Group:         Networking/Daemons
+Source0:       http://www.snert.com/Software/mod_become/mod_become103.tgz
+# Source0-md5: 7bb1607587687dabc711b3b1903947e5
+URL:           http://www.snert.com/Software/mod_become/
+BuildRequires: apache(EAPI)-devel
+Requires(post,preun):  %{apxs}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+Requires:      apache(EAPI)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define         _sysconfdir     /etc/httpd
+
+%description
+This module enables the web server to take on the access rights of a
+user & group, so that ~users can make available files to the web
+without having to make them readable by the world on the local file
+system. This can be useful for sites with a large number of users who
+want to apply file access controls among themselves. This module can
+also be applied to virtual hosts, directories, and locations.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+PATH=$PATH:%{_sbindir}
+%{__make} build-dynamic
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
+
+install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+
+%preun
+if [ "$1" = "0" ]; then
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt SECURITY.txt index.shtml notes-conf.txt
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.404082 seconds and 4 git commands to generate.