%define groupid 65038 %define userid 65038 Name: htdig Version: 3.2.0b6 Release: 2mamba Summary: A complete world wide web indexing and searching system for a domain or intranet Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.htdig.org/ Source: http://downloads.sourceforge.net/project/htdig/htdig/%{version}/htdig-%{version}.tar.bz2 Patch1: %{name}-3.2.0b6-CAN_2005_0085.patch Patch2: %{name}-3.2.0b6-overflow.patch Patch3: %{name}-3.2.0b6-compile-fix.patch Patch4: %{name}-3.2.0b6-segv.patch Patch5: %{name}-3.2.0b6-CVE_2007_6110.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The ht://Dig system is a complete world wide web indexing and searching system for a domain or intranet. This system is not meant to replace the need for powerful internet-wide search systems like Lycos, Infoseek, Google and AltaVista. Instead it is meant to cover the search needs for a single company, campus, or even a particular sub section of a web site. As opposed to some WAIS-based or web-server based search engines, ht://Dig can easily span several web servers. The type of these different web servers doesn't matter as long as they understand common protocols like HTTP. %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %build %configure \ --enable-shared \ --enable-tests \ --enable-bigfile \ --with-config-dir=%{_sysconfdir}/htdig \ --with-default-config-file=%{_sysconfdir}/htdig/htdig.conf \ --with-cgi-bin-dir=/var/www/cgi-bin \ --with-image-dir=/var/www/html/htdig \ --with-search-dir=/var/www/html/htdig \ --with-common-dir=%{_datadir}/htdig \ --with-database-dir=/var/lib/htdig \ --with-apache=/usr/sbin/httpd \ --with-zlib=/usr \ --with-ssl %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} install -d %{buildroot}%{_sysconfdir}/htdig %makeinstall cp %{buildroot}/var/www/cgi-bin/htsearch %{buildroot}%{_bindir} chmod 644 %{buildroot}/var/www/html/htdig/* ln -sf ./search.html %{buildroot}/var/www/html/htdig/index.html # remove unpackaged files rm -fr %{buildroot}%{_includedir} rm -rf %{buildroot}%{_libdir}/htdig/*.a rm -rf %{buildroot}%{_libdir}/htdig/*.la rm -rf %{buildroot}%{_libdir}/htdig_db/*.a rm -rf %{buildroot}%{_libdir}/htdig_db/*.la %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %pre groupadd htdig -g %{groupid} 2>/dev/null useradd -u %{userid} -c 'Htdig user' -d /var/lib/htdig -g htdig \ -s /bin/false htdig 2>/dev/null exit 0 %preun # erase if [ $1 -eq 0 ]; then userdel htdig 2>/dev/null groupdel htdig 2>/dev/null fi exit 0 %files %defattr(-,root,root) %{_bindir}/* %dir %attr(-,htdig,root) %{_datadir}/htdig %{_datadir}/htdig/* %dir %attr(-,htdig,htdig) /var/lib/htdig %{_libdir}/htdig %{_libdir}/htdig_db %dir %{_sysconfdir}/htdig %config(noreplace) %{_sysconfdir}/htdig/htdig.conf %config(noreplace) %{_sysconfdir}/htdig/cookies.txt %{_sysconfdir}/htdig/HtFileType-magic.mime %{_sysconfdir}/htdig/mime.types /var/www/cgi-bin/* %dir /var/www/html/htdig /var/www/html/htdig/* %{_mandir}/man1/* %{_mandir}/man8/* %doc COPYING ChangeLog README %changelog * Sun Mar 13 2016 Automatic Build System 3.2.0b6-2mamba - automatic rebuild by autodist * Tue Dec 01 2009 Davide Madrisan 3.2.0b6-1mamba - update to 3.2.0b6 - security fixes * Mon Jun 26 2006 Davide Madrisan 3.1.6-3qilnx - own %{_datadir}/htdig - fixed directory and files permissions - added %%pre and %%preun scriplets * Fri Apr 01 2005 Davide Madrisan 3.1.6-2qilnx - fixed security flaw QSA-2005-034 (CAN-2005-0085) * Tue Oct 19 2004 Silvan Calarco 3.1.6-1qilnx - package created by autospec