Contents of /trunk/extras/dovecot/dovecot-1.2.10-r1.smage2
Parent Directory
|
Revision Log
Revision 5086 -
(show annotations)
(download)
Thu Mar 4 15:43:44 2010 UTC (14 years, 3 months ago) by niro
File size: 2502 byte(s)
Thu Mar 4 15:43:44 2010 UTC (14 years, 3 months ago) by niro
File size: 2502 byte(s)
auto added: ver bump to 1.2.10-r1
1 | # $Id$ |
2 | |
3 | PNAME="dovecot" |
4 | PVER="1.2.10" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-mail" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Dovecot is an IMAP and POP3 server written with security primarily in mind." |
11 | HOMEPAGE="http://dovecot.org/" |
12 | |
13 | DEPEND=">= net-mail/mail-base-files-0.1 |
14 | >= sys-libs/pam-1.1 |
15 | >= dev-libs/openssl-0.9.8k |
16 | >= net-nds/openldap-2.4 |
17 | >= dev-db/mysql5-5.1" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | RC_CVS_REV=1.2 |
23 | |
24 | sminclude mtools |
25 | |
26 | SRC_URI=( |
27 | http://dovecot.org/releases/${PVER%.*}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/dovecot.rc-${RC_CVS_REV} |
30 | mirror://${PNAME}/${PNAME}-${PVER}-magellan-defaults.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-config-install.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd ${HOMEPAGE}/download.html | grep -A3 'Stable' | grep 'Download' | sed 's:.*v\(.*\)\ sources.*:\1:'" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # apply our default settings |
42 | mpatch ${PNAME}-${PVER}-magellan-defaults.patch || die |
43 | |
44 | # install only devcot.conf and not any examples to /etc/dovecot |
45 | mpatch ${PNAME}-${PVER}-config-install.patch || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mconfigure \ |
53 | --sysconfdir=/etc/dovecot \ |
54 | --libexecdir=/usr/$(mlibdir)/dovecot \ |
55 | --localstatedir=/var \ |
56 | --enable-header-install \ |
57 | --enable-ipv6 \ |
58 | --disable-debug \ |
59 | --with-ioloop=best \ |
60 | --with-poll=best \ |
61 | --with-ssl=openssl \ |
62 | --with-ssldir=/etc/ssl \ |
63 | --with-ldap \ |
64 | --with-mysql \ |
65 | --with-pam \ |
66 | || die |
67 | |
68 | mmake || die |
69 | } |
70 | |
71 | src_install() |
72 | { |
73 | cd ${SRCDIR} |
74 | mmake DESTDIR=${BINDIR} install || die |
75 | |
76 | # we're using pam files (imap and pop3) provided by mailbase |
77 | sed -i '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \ |
78 | ${BINDIR}/etc/dovecot/dovecot.conf || die |
79 | |
80 | # install our initscript |
81 | minstallrc dovecot.rc-${RC_CVS_REV} dovecot || die |
82 | |
83 | # remove unwanted docs |
84 | rm -rf ${BINDIR}/usr/share/doc/dovecot || die |
85 | |
86 | minstalldocs AUTHORS ChangeLog COPYING* NEWS README TODO || die |
87 | minstalldocs dovecot-example.conf || die |
88 | } |
89 | |
90 | preinstall() |
91 | { |
92 | # adding proftpd user |
93 | ${MLIBDIR}/mgroupadd -o "-g 97" dovecot |
94 | ${MLIBDIR}/museradd -o "-u 97 -g dovecot -d /dev/null -s /bin/false" dovecot |
95 | } |
96 | |
97 | postinstall() |
98 | { |
99 | # generate a self-signed ssl-cert |
100 | if [[ ! -f /etc/ssl/certs/dovecot.pem ]] |
101 | then |
102 | /usr/sbin/openssl-make-certs dovecot &> /dev/null |
103 | fi |
104 | |
105 | # rebuild ssl-parametes |
106 | if [[ ! -f /var/run/dovecot/login/ssl-parameters.dat ]] |
107 | then |
108 | dovecot --build-ssl-parameters &> /dev/null |
109 | fi |
110 | |
111 | mstartservice dovecot |
112 | } |
113 | |
114 | postremove() |
115 | { |
116 | mstopservice dovecot |
117 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |