From 07257a6ff7ad1a75daca093bfe476d0d4ff439df Mon Sep 17 00:00:00 2001 From: zbyniu Date: Thu, 25 Nov 2004 22:51:24 +0000 Subject: [PATCH] - initial Changed files: apache1-mod_access_identd.spec -> 1.1 --- apache1-mod_access_identd.spec | 71 ++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 apache1-mod_access_identd.spec diff --git a/apache1-mod_access_identd.spec b/apache1-mod_access_identd.spec new file mode 100644 index 0000000..24ef1d0 --- /dev/null +++ b/apache1-mod_access_identd.spec @@ -0,0 +1,71 @@ +%define mod_name access_identd +%define apxs %{_sbindir}/apxs1 +Summary: Apache module: access based on ident (RFC1413) +Summary(pl): Modu³ do apache: dostêp na podstawie protoko³u ident (RFC1413) +Name: apache1-mod_%{mod_name} +Version: 1.2.0 +Release: 0.1 +License: MeepZor Consulting Public Licence (MCPL) +Group: Networking/Daemons +Source0: http://meepzor.com/packages/mod_%{mod_name}/mod_%{mod_name}-%{version}.tar.gz +# Source0-md5: 67a5a1b9d5862eeaf2ba812f6dca98d9 +Source1: http://meepzor.com/packages/mod_access_identd/LICENCE.txt +URL: http://meepzor.com/packages/mod_access_identd/ +BuildRequires: apache1-devel +Requires(post,preun): %{apxs} +Requires: apache1 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _pkglibdir %(%{apxs} -q LIBEXECDIR) +%define _sysconfdir /etc/httpd + +%description +A security module for the Apache Web server, supplying mandatory +access control based upon the client username and host. The +credentials are obtained using the identd (RFC1413) mechanism, so this +is of limited usefulness if document access is through a proxy or by +clients not running an RFC1413 server daemon. As a result, this module +is best suited for intranets. + +%description -l pl +Modu³ zabezpieczj±cy dla serwera apache dostarczaj±cy obowi±zkow± +kontrolê dostêpu bazuj±c± na nazwie u¿ytkownika i ho¶cie klienta. +Listy dostêpu uzyskiwane s± przy pomocy protoko³u ident (RFC1413), +zatem u¿yteczno¶æ jest ograniczona je¶li dostêp nastêpuje przez proxy +lub klienci nie posiadaj± serwera identd. Modu³ przeznaczony jest do +u¿ytku g³ównie w intranetach. + +%prep +%setup -q -n mod_%{mod_name} + +%build +%{apxs} -c mod_%{mod_name}.c + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_pkglibdir} + +install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} +cp %{SOURCE1} . + +%clean +#rm -rf $RPM_BUILD_ROOT + +%post +%{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 + +%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 README CHANGELOG mod_access_identd.html LICENCE.txt +%attr(755,root,root) %{_pkglibdir}/* -- 2.44.0