File havp.spec of Package havp

#
# spec file for havp HTTP Anti Virus Proxy
#

# norootforbuild
# usedforbuild    aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc libnscd libstdc++ libtool libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel clamav


Name:         havp
License:      GPL
Group:        Productivity/Networking/Security
Autoreqprov:  on
Version:      0.92a
Release:      22.1
Summary:      HTTP Anti Virus Proxy
Source:       http://www.bemberg.de/server-side/download/%{name}-%{version}.tar.gz
Source1:      havp.conf-suse
Source2:      rchavp-suse
Source3:      havp-slovene-templates.tgz
Packager:     danny
URL:          http://www.server-side.de/
Requires:     clamav > 0.94
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Patch:        %{name}-0.89-config.patch
Patch1:       %{name}-0.89-install.patch
Patch2:       %{name}-unusedvar.patch
%if 0%{?rhel_version} >= 600
BuildRequires: clamav-scanner > 0.94
%else
BuildRequires:     clamav > 0.94
%endif
BuildRequires:     gcc-c++
BuildRequires:     gcc

%description
HAVP (HTTP Anti Virus Proxy) is a virus filtering http proxy which
uses clamav as its scan engine



Authors:
--------
    Christian Hilgers <christian@hilgers.ag>


%prep
%setup -q -n havp-%{version}
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1

./configure --prefix=/usr --sysconfdir=/etc


%build
make

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT make install
install -d -m 0750 $RPM_BUILD_ROOT/var/spool/havp
install -d -m 0750 $RPM_BUILD_ROOT/var/log/havp
install -d -m 0750 $RPM_BUILD_ROOT/var/run/havp
#install -d -m 0755 $RPM_BUILD_ROOT/etc/havp/templates
#install -d -m 0755 $RPM_BUILD_ROOT/etc/havp/templates/de

#install -D -s -m 755 havp/%{name} %{buildroot}%{_bindir}/%{name}

install -D -m 0755 %{SOURCE2} %{buildroot}/etc/init.d/havp

ln -sf /etc/init.d/havp %{buildroot}/usr/sbin/rchavp

#install -D -m 0644 etc/havp/templates/* %{buildroot}/etc/havp/templates/
#install -D -m 0644 etc/havp/templates/de/* %{buildroot}/etc/havp/templates/de/
install -D -m 0644 %{SOURCE1} %{buildroot}/etc/havp/havp.config
#install -D -m 0644 etc/havp/whitelist %{buildroot}/etc/havp/whitelist
#install -D -m 0644 etc/havp/blacklist %{buildroot}/etc/havp/blacklist

cd %{buildroot}/etc/havp/templates
tar -xzvf %{SOURCE3}

exit 0

%clean
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/%{name}-%{version}

%files
%defattr(-,root,root)
%attr(-,vscan,vscan) %dir /var/spool/havp
%attr(-,vscan,vscan) %dir /var/log/havp
%attr(-,vscan,vscan) %dir /var/run/havp
%doc ChangeLog COPYING INSTALL
#%doc authors
#%doc havp/docs/en/*.html
#%doc havp/docs/en/*.sgml 
/etc/init.d/havp
%{_sbindir}/%{name}
%{_sbindir}/rchavp

%dir /etc/havp
%config /etc/havp/*

%post
cat << EOF

In order to use HAVP you should mount a partition (/var/spool/havp) with 
hard lock enabled, use mount with the mand option.
You also can use a ramdisk to improve performance.

EOF

%changelog -n havp
* Wed Mar 16 2005 Danny <danny@tweegy.demon.nl>
- created spec file 
openSUSE Build Service is sponsored by