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 10
[-]
[+]
Changed
qmail_prepare_build.spec
@@ -47,9 +47,18 @@ %define VPOP_HOME /var/vpopmail +# sweep user +%define SWEEPUID 90 + +# sweep group +%define SWEEPGID 90 + +# sweep home +%define SWEEP_HOME /var/lib/sav + Name: qmail_prepare_build Summary: prepare build environment -Version: 0.2 +Version: 0.3 Release: 1 License: GNU Group: Productivity/Networking/Email/Servers @@ -83,6 +92,12 @@ %{_sbindir}/groupadd -r -g %{VPOPGID} vchkpw fi +# sweep +if [ -z "`%__grep "^sweep:" /etc/group 2>/dev/null`" ]; then + %{_sbindir}/groupadd -r -g %{SWEEPGID} sweep +fi + + # user qmailq qmailr qmails qmaild qmaill qmailp alias vmail if [ -z "`%__grep "^qmailq" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail queue" -d %{qdir} -g qmail -u %{QMQID} -r -s /bin/false qmailq @@ -111,6 +126,10 @@ 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 +if [ -z "`%__grep "^sweep" /etc/passwd 2>/dev/null`" ]; then + %{_sbindir}/useradd -c "sweep" -d %{SWEEP_HOME} -g %{SWEEPGID} -u %{SWEEPUID} -r -s /bin/false sweep +fi + %files