summaryrefslogtreecommitdiff
path: root/extra/imap
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-25 23:17:16 +0000
committerroot <root@rshg047.dnsready.net>2011-07-25 23:17:16 +0000
commit1173ff2dba7d0fd3c45f170a5e353a76b7a5da2f (patch)
treecb6d8e0d281eb0244b2f40ea9513a312584b43bc /extra/imap
parentc52a1a6eb4ad278a7b6d9eeeb9c7c88f73ca8d8c (diff)
Mon Jul 25 23:17:16 UTC 2011
Diffstat (limited to 'extra/imap')
-rw-r--r--extra/imap/PKGBUILD65
1 files changed, 30 insertions, 35 deletions
diff --git a/extra/imap/PKGBUILD b/extra/imap/PKGBUILD
index 2aed4adbb..7e001061d 100644
--- a/extra/imap/PKGBUILD
+++ b/extra/imap/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 75284 2010-04-01 07:07:12Z pierre $
-# Maintainer: judd <jvinet@zeroflux.org>
+# $Id: PKGBUILD 132404 2011-07-24 11:35:43Z pierre $
+
pkgname=imap
-pkgver=2007e
-pkgrel=2
+pkgver=2007f
+pkgrel=1
pkgdesc="An IMAP/POP server"
arch=('i686' 'x86_64')
license=('APACHE')
@@ -13,21 +13,17 @@ conflicts=('courier-mta' 'courier-imap')
source=("ftp://ftp.cac.washington.edu/imap/${pkgname}-${pkgver}.tar.gz"
'imap' 'ipop2' 'ipop3')
backup=(etc/xinetd.d/{imap,ipop2,ipop3} etc/ssl/certs/{imapd,ipop3d}.pem)
-md5sums=('7903800dc2604000016de070e0c55840'
+md5sums=('2126fd125ea26b73b20f01fcd5940369'
'e77dedb80c2fec9bf2ef784ed5f976fb'
- 'cc3eba6453242aa0b1bc8881160b2136'
- '0a5e27183a9b7e8ec5f6703125371e0a')
-
+ 'cc3eba6453242aa0b1bc8881160b2136'
+ '0a5e27183a9b7e8ec5f6703125371e0a')
build() {
- # fix Makefile
- cd $srcdir/$pkgname-$pkgver/src/osdep/unix
- cp Makefile Makefile.orig
sed \
-e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \
-e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \
-e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \
- < Makefile.orig > Makefile
+ -i $srcdir/$pkgname-$pkgver/src/osdep/unix/Makefile
cd $srcdir/$pkgname-$pkgver
# NOTE: if you wish to enforce SSL, use SSLTYPE=unix.nopwd
@@ -36,28 +32,13 @@ build() {
yes "y" | make lnp SPECIALAUTHENTICATORS=ssl SSLTYPE=unix EXTRACFLAGS="${CFLAGS} -fPIC" || return 1
else yes "y" | make lnp SPECIALAUTHENTICATORS=ssl SSLTYPE=unix || return 1
fi
-}
-
-package() {
- cd $srcdir/$pkgname-$pkgver
- mkdir -p $pkgdir/usr/sbin
- install -D -m755 imapd/imapd $pkgdir/usr/sbin/imapd
- install -D -m755 ipopd/ipop2d $pkgdir/usr/sbin/ipop2d
- install -D -m755 ipopd/ipop3d $pkgdir/usr/sbin/ipop3d
- for i in c-client mail imap4r1 rfc822 linkage misc smtp nntp \
- osdep env_unix env fs ftl nl tcp sslio utf8 utf8aux; do
- install -D -m644 c-client/${i}.h $pkgdir/usr/include/imap/${i}.h
- done
- install -D -m644 c-client/c-client.a $pkgdir/usr/lib/c-client.a
- ln -sf c-client.a $pkgdir/usr/lib/libc-client.a
# create ssl certs for secure imap
for i in imapd ipop3d; do
- umask 077
- PEM1=`/usr/bin/mktemp /tmp/openssl.XXXXXX`
- PEM2=`/usr/bin/mktemp /tmp/openssl.XXXXXX`
- /usr/bin/openssl req -newkey rsa:1024 -keyout $$PEM1 \
- -nodes -x509 -days 365 -out $$PEM2 << EOF
+ PEM1=$srcdir/pem1
+ PEM2=$srcdir/pem2
+ /usr/bin/openssl req -newkey rsa:1024 -keyout $PEM1 \
+ -nodes -x509 -days 365 -out $PEM2 << EOF
--
SomeState
SomeCity
@@ -67,14 +48,28 @@ localhost.localdomain
root@localhost.localdomain
EOF
- cat $$PEM1 > ${i}.pem
+ cat $PEM1 > ${i}.pem
echo "" >> ${i}.pem
- cat $$PEM2 >> ${i}.pem
- rm $$PEM1 $$PEM2
+ cat $PEM2 >> ${i}.pem
+ rm $PEM1 $PEM2
umask 022
done
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ install -d $pkgdir/usr/sbin
+ install -D -m755 imapd/imapd $pkgdir/usr/sbin/imapd
+ install -D -m755 ipopd/ipop2d $pkgdir/usr/sbin/ipop2d
+ install -D -m755 ipopd/ipop3d $pkgdir/usr/sbin/ipop3d
+ for i in c-client mail imap4r1 rfc822 linkage misc smtp nntp \
+ osdep env_unix env fs ftl nl tcp sslio utf8 utf8aux; do
+ install -D -m644 c-client/${i}.h $pkgdir/usr/include/imap/${i}.h
+ done
+ install -D -m644 c-client/c-client.a $pkgdir/usr/lib/c-client.a
+ ln -sf c-client.a $pkgdir/usr/lib/libc-client.a
- # install 'em
+ # install certs
install -D -m600 imapd.pem $pkgdir/etc/ssl/certs/imapd.pem
install -D -m600 ipop3d.pem $pkgdir/etc/ssl/certs/ipop3d.pem