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 8
[-]
[+]
Changed
qmail_prepare_build.spec
@@ -30,6 +30,15 @@ # define UID for alias %define QALID 206 +# vmail home-dir +%define VM_HOME /srv/maildirs + +# define UID for vmail "maildirowner" +%define VMID 303 + +# define GID for vmail "maildirowner" +%define VMGID 303 + Name: qmail_prepare_build Summary: prepare build environment Version: 0.1 @@ -57,6 +66,10 @@ if [ -z "`%__grep "^nofiles:" /etc/group 2>/dev/null`" ]; then %{_sbindir}/groupadd -r -g %{NFGID} nofiles fi +if [ -z "`%__grep "^vmail:" /etc/group 2>/dev/null`" ]; then + %{_sbindir}/groupadd -r -g %{VMGID} vmail +fi + # user qmailq qmailr qmails qmaild qmaill qmailp alias vmail if [ -z "`%__grep "^qmailq" /etc/passwd 2>/dev/null`" ]; then @@ -80,6 +93,9 @@ if [ -z "`%__grep "^alias" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail alias" -d %{qdir}/alias -g nofiles -u %{QALID} -r -s /bin/false alias fi +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 %files