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 6)
Currently displaying revision
6
,
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 Buildroot: %{_tmppath}/%{name}-%{version}-build BuildRequires: vpopmail %prep %setup -q %patch0 %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 \ --block-password-protected 0 \ --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 \ --qs-user vpopmail %install mkdir -p %{buildroot}%{qspool} 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}/ chown -R qscand:qscand %{buildroot}%{qspool}/ 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