]> git.pld-linux.org Git - packages/ffsearch.git/blobdiff - ffsearch.spec
- update to 1.1.11
[packages/ffsearch.git] / ffsearch.spec
index 69fbb4130b66ef21f508d580da68aafba1910f22..fdfc87201f7a33be2a98339cb94cf50265a387da 100644 (file)
@@ -2,40 +2,56 @@
 Summary:       Fast File Search
 Summary(pl):   Szybka wyszukiwarka plików
 Name:          ffsearch
-Version:       1.1.2
-Release:       0.1
+Version:       1.1.11
+Release:       1
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://dl.sourceforge.net/ffsearch/%{name}-%{version}.tar.bz2
-# Source0-md5: 27296436414f8daf8453b4deee142a29
+# Source0-md5: 8e7da919971aed48f09cd5169e7f1286
 Source1:       %{name}.crond
-URL:           http://www.phpbb.com/
+Patch0:                %{name}-config.patch
+URL:           http://ffsearch.sf.net/
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires(pre): /usr/bin/getgid
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
 Requires:      php >= 4.0.3
 Requires:      webserver
+Requires:      perl-DBD-mysql
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _phpdir         /home/services/httpd/html/ffsearch
 
 %description
-Fast File Search is a crawler for FTP servers and SMB shares that can be found
-on Windows or UNIX systems running Samba. It provides a web interface for
-searching files. It is optimized for searching files by a wildcard when there
-are some normal (not '*' or '?') chars specified in the beginning or in the end
-of the mask (for example '*.iso').
+Fast File Search is a crawler for FTP servers and SMB shares that can
+be found on Windows or UNIX systems running Samba. It provides a web
+interface for searching files. It is optimized for searching files by
+a wildcard when there are some normal (not '*' or '?') chars specified
+in the beginning or in the end of the mask (for example '*.iso').
 
 %description -l pl
-todo
+Fast File Search (szybka wyszukiwarka plików) jest skryptem
+zbieraj±cym informacje o udostêpnianych zasobach FTP i SMB. Udostêpnia
+przyjemny interfejs WWW do wyszukiwania plików. Jest zoptymalizowana
+do wyszukiwania plików przez podanie masek plików ze sta³± czê¶ci± na
+pocz±tku lub koñcu nazwy (na przyk³ad *.iso).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_phpdir},%{_sysconfdir},%{_libdir}/%{name}/bin}
+install -d $RPM_BUILD_ROOT{%{_phpdir},%{_sysconfdir},%{_libdir}/%{name}/bin,/var/{log/{,archiv/}%{name},lock/%{name}}}
+rm -rf {bin,flag,lang,htdocs/ffsearch/{,flag,lang},doc}/CVS
 
 cp -r htdocs/ffsearch/*                $RPM_BUILD_ROOT%{_phpdir}
-install bin/* makedb.pl                $RPM_BUILD_ROOT%{_libdir}/%{name}/bin
+install bin/*                  $RPM_BUILD_ROOT%{_libdir}/%{name}/bin
+install makedb.pl              $RPM_BUILD_ROOT%{_libdir}/%{name}
 install %{name}.conf           $RPM_BUILD_ROOT%{_sysconfdir}
 
 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name}
@@ -45,12 +61,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %pre
 if [ -n "`getgid ffsearch`" ]; then
-       if [ "`getgid ffsearch`" != "91" ]; then
+       if [ "`getgid ffsearch`" != "118" ]; then
                echo "Error: group ffsearch doesn't have gid=118. Correct this before installing ffsearch." 1>&2
                exit 1
        fi
 else
-       /usr/sbin/groupadd -g 118 -r -f ffsearch 1>&2 || :
+       /usr/sbin/groupadd -g 118 -r -f ffsearch 1>&2
 fi
 if [ -n "`id -u ffsearch 2>/dev/null`" ]; then
        if [ "`id -u ffsearch`" != "118" ]; then
@@ -59,7 +75,7 @@ if [ -n "`id -u ffsearch 2>/dev/null`" ]; then
        fi
 else
        /usr/sbin/useradd -M -o -r -u 118 -s /bin/false \
-               -g ffsearch -c "Fast File Search user" -d %{_phpdir} ffsearch 1>&2 || :
+               -g ffsearch -c "Fast File Search user" -d %{_libdir}/%{name} ffsearch 1>&2
 fi
 
 %postun
@@ -70,16 +86,34 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc INSTALL README MAINTAINERS UPGRADE
+%doc INSTALL README MAINTAINERS UPGRADE AUTHORS ChangeLog doc/*
 %attr(750,root,ffsearch) %dir %{_libdir}/%{name}
 %attr(750,root,ffsearch) %dir %{_libdir}/%{name}/bin
 %attr(750,root,ffsearch) %{_libdir}/%{name}/bin/*.pl
-%attr(640,ffsearch,ffsearch) %config(noreplace) %{_sysconfdir}/%{name}.conf
+%attr(750,root,ffsearch) %{_libdir}/%{name}/*.pl
+%attr(640,ffsearch,ffsearch) %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}.conf
+%attr(640,ffsearch,http) %verify(not md5 size mtime) %config(noreplace) %{_phpdir}/config.php
 %attr(750,root,http) %dir %{_phpdir}
-%attr(640,root,http) %{_phpdir}/*.php
+%attr(640,root,http) %{_phpdir}/a*.php
+%attr(640,root,http) %{_phpdir}/body.php
+%attr(640,root,http) %{_phpdir}/browse.php
+%attr(640,root,http) %{_phpdir}/colors.php
+%attr(640,root,http) %{_phpdir}/comment*.php
+%attr(640,root,http) %{_phpdir}/db.php
+%attr(640,root,http) %{_phpdir}/f*.php
+%attr(640,root,http) %{_phpdir}/h*.php
+%attr(640,root,http) %{_phpdir}/index.php
+%attr(640,root,http) %{_phpdir}/lang.php
+%attr(640,root,http) %{_phpdir}/menu*.php
+%attr(640,root,http) %{_phpdir}/s*.php
+%attr(640,root,http) %{_phpdir}/t*.php
+%attr(640,root,http) %{_phpdir}/vars.php
 %attr(640,root,http) %{_phpdir}/*.css
 %attr(640,root,http) %{_phpdir}/*.gif
 %attr(640,root,http) %{_phpdir}/*.png
-%attr(640,root,http) %{_phpdir}/flag
-%attr(640,root,http) %{_phpdir}/lang
+%attr(750,root,http) %{_phpdir}/flag
+%attr(750,root,http) %{_phpdir}/lang
 %attr(640,root,root) /etc/cron.d/%{name}
+%attr(750,ffsearch,ffsearch) %dir /var/lock/%{name}
+%attr(750,ffsearch,ffsearch) %dir /var/log/%{name}
+%attr(750,ffsearch,ffsearch) %dir /var/log/archiv/%{name}
This page took 0.090833 seconds and 4 git commands to generate.