Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmail_prepare_build
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Changed
qmail_prepare_build.spec
@@ -39,9 +39,17 @@ # define GID for vmail "maildirowner" %define VMGID 303 +# vpopmail group +%define VPOPGID 89 + +# vpopmail user +%define VPOPUID 89 + +%define VPOP_HOME /var/vpopmail + Name: qmail_prepare_build Summary: prepare build environment -Version: 0.1 +Version: 0.2 Release: 1 License: GNU Group: Productivity/Networking/Email/Servers @@ -70,6 +78,10 @@ %{_sbindir}/groupadd -r -g %{VMGID} vmail fi +# vpopmail : groupadd -g 89 vchkpw +if [ -z "`%__grep "^vchkpw:" /etc/group 2>/dev/null`" ]; then + %{_sbindir}/groupadd -r -g %{VPOPGID} vchkpw +fi # user qmailq qmailr qmails qmaild qmaill qmailp alias vmail if [ -z "`%__grep "^qmailq" /etc/passwd 2>/dev/null`" ]; then @@ -96,7 +108,9 @@ if [ -z "`%__grep "^vmail" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "maildirs chef" -d %{VM_HOME} -g %{VMGID} -u %{VMID} -r -s /bin/false vmail 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 %files