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 9)
Currently displaying revision
9
,
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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: maildrop spamassassin netqmail maildrop mysql ucspi-tcp 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 %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-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/false 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 %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/false vpopmail fi fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README* ChangeLog %defattr(0755,vpopmail,vchkpw) %{VPOP_HOME}/bin/* %defattr(0640,vpopmail,vchkpw) %config(noreplace) %{VPOP_HOME}/etc/%{name}.mysql %changelog * Mon Apr 28 2008 Carsten Schoene <cs@linux-administrator.com> - 5.4.26 - initial build