Hi Carols, <br><br><br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It seems that the SPEC file (of older version) does some patching to
<br>the sources, you can edit the SPEC file and comment it out or delete<br>the patch part, in the end you are better of customizing the SPEC file<br>for your needs and system.<br><br>If you need more help I could look the spec file and do some RPM
<br>building, I have a CentOS 5 machine myself.</blockquote><div><br><br>By now, I have already built havp SRPM and RPM  out of tarabll.  I had to include a patch . Then, it worked. <br>Anyway, This is my first time to built and SRPM and RPM out of a tarball. SO I am new to this. So , I am sending my 
havp.spec file for you to look at. pls see below. <br><br>[root@worldnet ~]# cat /usr/src/redhat/SPECS/<span style="font-weight: bold;">havp.spec</span><br># $Id$<br># Authority: dag<br><br># Tag: test<br><br>Summary: HTTP anti-virus proxy filter
<br>Name: havp<br><span style="font-weight: bold;">Version: 0.86</span><br>Release: 1<br>License: GPL<br>Group: System Environment/Daemons<br>URL: <a href="http://www.server-side.de/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.server-side.de/</a><br><br>
Source: <a href="http://www.server-side.de/download/havp-%25%7Bversion%7D.tar.gz" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.server-side.de/download/havp-%{version}.tar.gz</a><br>Patch0: 
havp-init.patch<br>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
<br><br>#BuildRequires: httpd-devel, bzip2-devel, gmp-devel, curl-devel, clamav-devel, openssl-devel<br>BuildRequires: bzip2-devel, gmp-devel, curl-devel, clamav-devel, openssl-devel<br><br>%description<br>HAVP (HTTP AntiVirus proxy) is a proxy with an anti-virus filter.
<br>It does not cache or filter content. At the moment the complete<br>traffic is scanned. The reason for this is the chance of malicious<br>code in nearly every filetype e.g. HTML (JavaScript) or Jpeg.<br><br>I aim to stop especially dialer or browser exploits. But writing
<br>a http Anti Virus Proxy is a real dilemma! Huge downloads are<br>a problem for virus scanning proxies. A Client should not receive<br>data which is unchecked by the virus scanner, but big downloads<br>should not timeout.
<br><br>%prep<br>%setup<br>%patch0 -p0 -b .init<br><br>%{__perl} -pi.orig \<br>        -e 's|^# (TEMPLATEPATH) .+$|$1 /etc/havp/templates/en|;' \<br>        -e 's|^# (WHITELIST) .+$|$1 /etc/havp/whitelist|;' \
<br>        -e 's|^# (BLACKLIST) .+$|$1 /etc/havp/blacklist|;' \<br>        etc/havp/havp.config<br><br>%build<br>%configure \<br>        --enable-ssl-tunnel<br><br>%{__make} %{?_smp_mflags}<br><br>%install<br>%{__rm} -rf %{buildroot}
<br>%{__install} -Dp -m0755 havp/havp %{buildroot}%{_sbindir}/havp<br>%{__install} -Dp -m0755 etc/init.d/havp %{buildroot}%{_initrddir}/havp<br><br>%{__install} -d -m0755 %{buildroot}%{_sysconfdir}/havp/<br>%{__cp} -r etc/havp/*  %{buildroot}%{_sysconfdir}/havp/
<br><br>%{__install} -d -m0755 %{buildroot}%{_localstatedir}/log/havp/<br>%{__install} -d -m0755 %{buildroot}%{_localstatedir}/run/havp/<br><br>%clean<br>%{__rm} -rf %{buildroot}<br><br>%pre<br>if ! /usr/bin/id havp &>/dev/null; then
<br>        /usr/sbin/useradd -r -d %{_localstatedir}/log/havp -s /bin/sh -c "havp" havp || \<br>                %logmsg "Unexpected error adding user \"havp\". Aborting installation."<br>fi
<br>
<br>%post<br>/sbin/chkconfig --add havp<br><br>%preun<br>if [ $1 -eq 0 ]; then<br>        /sbin/service havp stop &>/dev/null || :<br>        /sbin/chkconfig --del havp<br>fi<br><br>%postun<br>if [ $1 -eq 0 ]; then
<br>        /usr/sbin/userdel havp || %logmsg "User \"havp\" could not be deleted."<br>fi<br><br>%files<br>%defattr(-, root, root, 0755)<br>%doc ChangeLog COPYING INSTALL update-conf<br>%config(noreplace) %{_sysconfdir}/havp/
<br>%config %{_initrddir}/havp<br>%{_sbindir}/havp<br><br>%defattr(-, havp, havp, 0755)<br>%{_localstatedir}/log/havp/<br>%{_localstatedir}/run/havp/<br><br>%changelog<br>* Tue Aug 22 2006 Dag Wieers <<a href="mailto:dag@wieers.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

dag@wieers.com</a>> - 0.7.9-1<br>- Cosmetic changes.<br><br>* Wed May 31 2006 Bernard 'Tux' Lheureux <tux at portalinux dot org> 0.7.9-2<br>- Corrected the specfile to make it installable on CentOS 4.x<br>

- Created and applied some patches to make it chkconfig compatible<br>- Created and applied a patch to make config reflect the correct location of the files<br><br>* Tue May 30 2006 Jim Perrin <jperrin at gmail dot com> 
0.7.9-1<br>- Initial build for CentOS,<br>- Specfile generation... still some work to do...<br><br><span style="font-weight: bold;"><span style="font-weight: bold;"><br><br></span>Pls edit the above file in a nice manner, if needed. 
</span><br><br><br>And, I would also like to know why I had to use <span style="font-weight: bold;">rpmbuild -ba</span> option instead of<span style="font-weight: bold;">
<span style="font-weight: bold;"> </span>rpmbuild -ta</span>, while building this out of a <span style="font-weight: bold;">tarball</span>. <br><br>Hope to hear from you. <br><br><br><br><br> <br><br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Good Luck!<br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.centos.org/mailman/listinfo/centos
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thank you<br>Indunil Jayasooriya<br>