Author: adamg Date: Mon Sep 5 13:40:28 2005 GMT Module: SPECS Tag: HEAD ---- Log message: - new (cp from php-pecl-crack.spec)
---- Files affected: SPECS: php4-pecl-crack.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/php4-pecl-crack.spec diff -u /dev/null SPECS/php4-pecl-crack.spec:1.1 --- /dev/null Mon Sep 5 15:40:28 2005 +++ SPECS/php4-pecl-crack.spec Mon Sep 5 15:40:22 2005 @@ -0,0 +1,92 @@ +# $Revision$, $Date$ +%define _modname crack +%define _status beta +%define _sysconfdir /etc/php4 +%define extensionsdir %(php-config --extension-dir 2>/dev/null) + +Summary: %{_modname} - checks if password is vulnerable to dictionary attacks +Summary(pl): %{_modname} - sprawdzanie czy hasło jest podatne na ataki słownikowe +Name: php4-pecl-%{_modname} +Version: 0.3 +Release: 1 +License: PHP +Group: Development/Languages/PHP +Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz +# Source0-md5: 43a3dc3e4f2d16bf1e30ccea0d384183 +Patch0: %{name}-m4_fixes.patch +URL: http://pecl.php.net/package/crack/ +BuildRequires: cracklib-devel +BuildRequires: libtool +BuildRequires: php4-devel +BuildRequires: rpmbuild(macros) >= 1.230 +%requires_eq_to php4-common php4-devel +Obsoletes: php-crack +Obsoletes: php-pear-%{_modname} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This package provides an interface to the cracklib (libcrack) +libraries that come standard on most unix-like distributions. This +allows you to check passwords against dictionaries of words to ensure +some minimal level of password security. + +In PECL status of this extension is: %{_status}. + +%description -l pl +Ten pakiet dostarcza interfejsu do bibliotek cracklib (libcrack), +dostarczanych z większością dystrybucji uniksopodobnych. Pozwala to +na porównanie haseł względem słowników celem zapewnienia minimalnego +poziomu bezpieczeństwa. + +To rozszerzenie ma w PECL status: %{_status}. + +%prep +%setup -q -c +%patch0 -p0 + +%build +cd %{_modname}-%{version} +phpize +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}} + +install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir} + +install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir} +cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini +; Enable %{_modname} extension module +extension=%{_modname}.so +EOF + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart +[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart + +%postun +if [ "$1" = 0 ]; then + [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart + [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart +fi + +%files +%defattr(644,root,root,755) +%doc %{_modname}-%{version}/{CREDITS,EXPERIMENTAL} +%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/%{_modname}.ini +%attr(755,root,root) %{extensionsdir}/%{_modname}.so + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2005/09/05 13:40:22 adamg +- new (cp from php-pecl-crack.spec) + ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit