Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmail_prepare_build
> qmail_prepare_build.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qmail_prepare_build.spec of Package qmail_prepare_build (Revision 4)
Currently displaying revision
4
,
show latest
# defining Group-ID's # define GID for qmail-Group %define QMGID 200 # define GID for nofiles-Group %define NFGID 201 # defining USER-ID's # define UID for qmailq %define QMQID 200 # define UID for qmailr %define QMRID 201 # define UID for qmails %define QMSID 202 # define UID for qmaild %define QMDID 203 # define UID for qmaill %define QMLID 204 # define UID for qmailp %define QMPID 205 # define UID for alias %define QALID 206 Name: qmail_prepare_build Summary: prepare build environment Version: 0.1 Release: 1 License: GNU Group: Productivity/Networking/Email/Servers URL: none Buildroot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch BuildRequires: openldap2-client %if 0%{?suse_version} >= 1030 BuildRequires: pwdutils %endif %description this package prepares build environment for qmail packages %post if [ -z "`%__grep "^qmail:" /etc/group 2>/dev/null`" ]; then %{_sbindir}/groupadd -r -g %{QMGID} qmail fi if [ -z "`%__grep "^nofiles:" /etc/group 2>/dev/null`" ]; then %{_sbindir}/groupadd -r -g %{NFGID} nofiles 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 fi if [ -z "`%__grep "^qmailr" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail remote" -d %{qdir} -g qmail -u %{QMRID} -r -s /bin/false qmailr fi if [ -z "`%__grep "^qmails" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail send" -d %{qdir} -g qmail -u %{QMSID} -r -s /bin/false qmails fi if [ -z "`%__grep "^qmaild" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail daemon" -d %{qdir} -g nofiles -u %{QMDID} -r -s /bin/false qmaild fi if [ -z "`%__grep "^qmaill" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail logger" -d %{qdir} -g nofiles -u %{QMLID} -r -s /bin/false qmaill fi if [ -z "`%__grep "^qmailp" /etc/passwd 2>/dev/null`" ]; then %{_sbindir}/useradd -c "qmail passwd" -d %{qdir} -g nofiles -u %{QMPID} -r -s /bin/false qmailp fi 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 %files %changelog * Mon Apr 28 2008 Carsten Schoene <cs@linux-administrator.com> - initial package