Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmail-scanner
> qmail-scanner.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qmail-scanner.spec of Package qmail-scanner (Revision 15)
Currently displaying revision
15
,
show latest
%define mysql_host localhost %define mysql_user vpopmailuser %define mysql_pass vpopmailpass %define mysql_db vpopmail %define qdir /var/qmail %define qspool /var/spool/qscan Name: qmail-scanner Summary: Content Scanner for Qmail Version: 2.02 Release: 1 License: GNU Group: Productivity/Networking/Email/Servers Source0: %{name}-%{version}.tgz Source1: %{name}-%{version}_sql.sql Patch0: %{name}-%{version}_sql.diff Patch1: %{name}-root-check.diff Buildroot: %{_tmppath}/%{name}-%{version}-build BuildRequires: vpopmail perl %description Qmail-Scanner is an add-on that enables a Qmail email server to scan gatewayed email for certain characteristics (i.e. a content scanner). It is typically used for its anti-virus and anti-spam protection functions, in which case it is used in conjunction with external scanners. It also enables a site (at a server/site level) to create "Policy blocks": i.e. react to email that contains specific strings in particular headers, or particular attachment filenames or types (e.g. *.VBS attachments). %prep %setup -q %patch0 %patch1 %build ./configure --mysql-db %{mysql_db} \ --mysql-user %{mysql_user} \ --mysql-pass %{mysql_pass} \ --mysql-host %{mysql_host} \ --qmaildir %{qdir} \ --bindir %{qdir}/bin \ --spooldir %{qspool} \ --qmail-queue-binary /usr/sbin/qmail-queue \ --admin hostmaster \ --notify none \ --silent-viruses auto \ --debug yes \ --unzip 1 \ --add-dscr-hdrs yes \ --archive 0 \ --redundant yes \ --log-details yes \ --log-crypto 0 \ --fix-mime 2 \ --ignore-eol-check 0 \ --scanners "auto" \ --batch \ --no-QQ-check \ --skip-setuid-test \ --qs-user vpopmail %install mkdir -p %{buildroot}%{qspool} %{buildroot}%{qdir}/bin mkdir -p %{buildroot}%{qspool}/quarantine/viruses/tmp %{buildroot}%{qspool}/quarantine/viruses/cur %{buildroot}%{qspool}/quarantine/viruses/new mkdir -p %{buildroot}%{qspool}/quarantine/spam/tmp %{buildroot}%{qspool}/quarantine/spam/cur %{buildroot}%{qspool}/quarantine/spam/new mkdir -p %{buildroot}%{qspool}/quarantine/policy/tmp %{buildroot}%{qspool}/quarantine/policy/cur %{buildroot}%{qspool}/quarantine/policy/new mkdir -p %{buildroot}%{qspool}/working/tmp %{buildroot}%{qspool}/working/cur %{buildroot}%{qspool}/working/new mkdir -p %{buildroot}%{qspool}/archive/tmp %{buildroot}%{qspool}/archive/cur %{buildroot}%{qspool}/archive/new cp quarantine-events.txt %{buildroot}%{qspool}/ ls -al cp qmail-scanner-queue.pl %{buildroot}%{qdir}/bin/qmail-scanner-queue.pl %post if [ "$1" == "1" ]; then ½{qdir}/bin/qmail-scanner-queue.pl -z %{qdir}/bin/qmail-scanner-queue.pl -g fi %clean %files %doc *.php README* CHANGES COPYING %defattr(4755,vpopmail,vchkpw) %{qdir}/bin/qmail-scanner-queue.pl %defattr(-,vpopmail,vchkpw) %{qspool} %changelog