blob: 1fc818bf12a08d944b660ab53ac0b13c7d34c9d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail-ldap/qmail-ldap-1.03-20000701-r1.ebuild,v 1.2 2000/08/16 04:38:16 drobbins Exp $
P=qmail-ldap-1.03-20000701
A="qmail-1.03.tar.gz qmail-ldap-1.03-20000701.patch.gz"
S=${WORKDIR}/qmail-1.03
DESCRIPTION="QMail with LDAP-Support"
SRC_URI="http://cr.yp.to/software/qmail-1.03.tar.gz
http://www.nrg4u.com/qmail/qmail-ldap-1.03-20000701.patch.gz"
HOMEPAGE="http://www.qmail.org http://www.nrg4u.com"
src_compile() {
cd ${WORKDIR}/qmail-1.03
cp ${O}/files/Makefile .
make it man
}
src_unpack() {
unpack qmail-1.03.tar.gz
cd ${WORKDIR}/qmail-1.03
gzip -dc ${DISTDIR}/qmail-ldap-1.03-20000701.patch.gz | patch -p1
}
doins2() {
if [ ${#} -ne 1 ]
then
echo "${0}: one argument needed"
return
fi
install $INSOPTIONS ${D}${1}
}
src_install() {
cd ${WORKDIR}/qmail-1.03
insopts -d -o root -g qmail -m 755
doins2 /var/qmail
doins2 /var/qmail/control
doins2 /var/qmail/users
doins2 /var/qmail/bin
doins2 /var/qmail/boot
doins2 /var/qmail/alias
insopts -d -o qmailq -g qmail -m 750
doins2 /var/qmail/queue
doins2 /var/qmail/queue/todo
insopts -d -o qmailq -g qmail -m 700
doins2 /var/qmail/queue/pid
doins2 /var/qmail/queue/intd
insopts -d -o qmails -g qmail -m 700
doins2 /var/qmail/queue/bounce
insopts -d -o qmailq -g qmail -m 750
doins2 /var/qmail/queue/mess
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
do
doins2 /var/qmail/queue/mess/$i
done
insopts -d -o qmails -g qmail -m 700
doins2 /var/qmail/queue/info
doins2 /var/qmail/queue/local
doins2 /var/qmail/queue/remote
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
do
doins2 /var/qmail/queue/info/$i
doins2 /var/qmail/queue/local/$i
doins2 /var/qmail/queue/remote/$i
done
insopts -d -o qmailq -g qmail -m 750
doins2 /var/qmail/queue/lock
dd if=/dev/zero of=${D}/var/qmail/queue/lock/tcpto bs=1024 count=1
fperms 644 /var/qmail/queue/lock/tcpto
fowners qmailr.qmail /var/qmail/queue/lock/tcpto
touch ${D}/var/qmail/queue/lock/sendmutex
fperms 600 /var/qmail/queue/lock/sendmutex
fowners qmails.qmail /var/qmail/queue/lock/sendmutex
mkfifo ${D}/var/qmail/queue/lock/trigger
fperms 622 /var/qmail/queue/lock/trigger
fowners qmails.qmail /var/qmail/queue/lock/trigger
insopts -o root -g qmail -m 755
insinto /var/qmail/boot
for i in home home+df proc proc+df binm1 binm1+df binm2 binm2+df binm3 binm3+df
do
doins $i $i
done
into /usr
dodoc FAQ UPGRADE SENDMAIL INSTALL* TEST* REMOVE* PIC* QLDAP* SECURITY
dodoc SYSDEPS TARGETS THANKS THOUGHTS TODO VERSION
docinto html
dodoc ${O}/files/index.html
insopts -o qmailq -g qmail -m 4711
insinto /var/qmail/bin
doins qmail-queue qmail-queue
insopts -o root -g qmail -m 700
for i in qmail-lspawn qmail-start qmail-newu qmail-newmrh auth_imap auth_pop
do
doins $i $i
done
insopts -o root -g qmail -m 711
for i in qmail-getpw qmail-local qmail-remote qmail-rspawn qmail-clean qmail-send splogger qmail-pw2u
do
doins $i $i
done
insopts -o root -g qmail -m 755
for i in qmail-inject predate datemail mailsubj qmail-showctl \
qmail-qread qmail-qstat qmail-tcpto qmail-tcpok qmail-pop3d \
qmail-popup qmail-qmqpc qmail-qmqpd qmail-qmtpd qmail-smtpd \
sendmail tcp-env qreceipt qsmhook qbiff forward preline \
condredirect bouncesaying except maildirmake maildir2mbox \
maildirwatch qail elq pinq config-fast qmail-reply qmail-quotawarn
do
doins $i $i
done
insopts -o root -g qmail -m 000
doins qmail-ldaplookup
into /usr
for i in addresses envelopes maildir mbox dot-qmail qmail-control \
qmail-header qmail-log qmail-users tcp-environ
do
doman $i.5
done
for i in forward condredirect bouncesaying except maildirmake \
maildir2mbox maildirwatch mailsubj qreceipt qbiff preline tcp-env
do
doman $i.1
done
doman splogger.8
for i in local lspawn getpw remote rspawn clean send start queue \
inject showctl newmrh newu pw2u qread qstat tcpok tcpto pop3d \
popup qmqpc qmqpd qmtpd smtpd command
do
doman qmail-$i.8
done
insinto /etc/rc.d/init.d
insopts -m755
doins ${O}/files/qmail
}
|