Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
vpopmail
> vpopmail.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File vpopmail.spec of Package vpopmail (Revision 26)
Currently displaying revision
26
,
show latest
# needsrootforbuild # rootforbuild %define qdir /var/qmail %define VPOP_HOME /var/vpopmail # vpopmail group %define VPOPGID 89 # vpopmail user %define VPOPUID 89 Name: vpopmail Version: 5.4.26 Release: 1 Summary: virtual domains for qmail Group: Applications/Productivity License: GPL URL: http://vpopmail.sourceforge.net Source0: http://osdn.dl.sourceforge.net/sourceforge/vpopmail/%{name}-%{version}d.tar.gz Patch0: %{name}-makefile.diff Patch1: %{name}-%{version}-skel4.patch Patch2: %{name}-%{version}-skel4_copydir.patch Source1: supervise-smtp-auth.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: maildrop spamassassin netqmail maildrop mysql ucspi-tcp patch BuildRequires: maildrop spamassassin netqmail maildrop mysql-devel ucspi-tcp qmail_prepare_build >= 0.2 %description Vpopmail is a set of programs for creating and managing multiple virtual domains on a qmail server, with full support for many POP/IMAP servers. %prep %setup -q %patch1 -p1 %patch2 autoreconf -fi %patch0 %configure \ --enable-qmaildir=%{qdir} \ --enable-qmail-newu=%{qdir}/bin/qmail-newu \ --enable-qmail-inject=%{qdir}/bin/qmail-inject \ --enable-qmail-newmrh=%{qdir}/bin/qmail-newmrh \ --enable-vpopuser=vpopmail \ --enable-vpopgroup=vchkpw \ --enable-roaming-users \ --enable-tcprules-prog=%{_bindir}/tcprules \ --enable-tcpserver-file=%{_sysconfdir}/tcprules.d/tcp.smtp \ --disable-rebuild-tcpserver-file \ --enable-relay-clear-minutes=30 \ --enable-qmail-ext \ --enable-ip-alias-domains \ --enable-onchange-script \ --enable-spamassassin \ --enable-spamc-prog=%{_bindir}/spamc \ --enable-maildrop \ --enable-maildrop-prog=%{_bindir}/maildrop \ --enable-domains-dir=domains \ --enable-incdir=%{_includedir}/mysql \ --enable-libdir=%{_libdir}/mysql \ --enable-auth-module=mysql \ --enable-logging=p \ --enable-log-name=%{name} \ --enable-sql-logging \ --enable-mysql-limits \ --enable-mysql-replication \ --enable-valias \ --enable-skeleton \ --enable-non-root-build %build if [ -z "`%__grep "^vchkpw:" /etc/group 2>/dev/null`" ]; then %{_sbindir}/groupadd -r -g %{VPOPGID} vchkpw fi if [ -z "`%__grep "^vpopmail" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "vpopmail" -d %{VPOP_HOME} -g %{VPOPGID} -u %{VPOPUID} -r -s /bin/bash vpopmail fi %__make %{?_smp_mflags} %install %__make DESTDIR=$RPM_BUILD_ROOT install # create mysql default config echo "localhost|0|vpopmailuser|vpoppasswd|vpopmail" > $RPM_BUILD_ROOT/%{VPOP_HOME}/etc/vpopmail.mysql %__install -m 644 %{S:1} $RPM_BUILD_DIR/%{name}-%{version}/ %pre if [ "$1" = "1" ]; then if [ -z "`%__grep "^vchkpw:" /etc/group 2>/dev/null`" ]; then %{_sbindir}/groupadd -r -g %{VPOPGID} vchkpw fi if [ -z "`%__grep "^vpopmail" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "vpopmail" -d %{VPOP_HOME} -g %{VPOPGID} -u %{VPOPUID} -r -s /bin/bash vpopmail fi fi %post #echo "PARAM_pre: "$1 # on `rpm -ivh` PARAM is 1 # on `rpm -Uvh` PARAM is 2 if [ "$1" = "1" ]; then %if 0%{?suse_version} %__patch -d %{qdir} -p0 < %{_docdir}/%{name}/supervise-smtp-auth.diff %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} %__patch -d %{qdir} -p0 < %{_docdir}/%{name}-%{version}/supervise-smtp-auth.diff %endif fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS UPGRADE README* TODO COPYING ChangeLog supervise-smtp-auth.diff %defattr(0755,vpopmail,vchkpw) %{VPOP_HOME}/bin/* %defattr(0640,vpopmail,vchkpw) %config(noreplace) %{VPOP_HOME}/etc/%{name}.mysql %config(noreplace) %{VPOP_HOME}/etc/vlimits.default %defattr(0644,vpopmail,vchkpw) %{VPOP_HOME}/etc/inc_deps %{VPOP_HOME}/etc/lib_deps %{VPOP_HOME}/include/* %defattr(-,vpopmail,vchkpw) %{VPOP_HOME}/doc %{VPOP_HOME}/lib/libvpopmail.a %changelog * Sun Oct 19 2008 Carsten Schoene <cs@linux-administrator.com> - added skel patch * Mon Apr 28 2008 Carsten Schoene <cs@linux-administrator.com> - 5.4.26 - initial build