diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-07 09:09:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-07 09:09:46 +0000 |
commit | d391668652794a0712758463eee824d365a9a9ed (patch) | |
tree | 23e8f540186cdedf8d0b49262c4008f2ff617745 /main/imap | |
parent | 935f81299d4ca3a7fa2a6bd01733ebedb99c4c15 (diff) | |
download | aports-d391668652794a0712758463eee824d365a9a9ed.tar.bz2 aports-d391668652794a0712758463eee824d365a9a9ed.tar.xz |
main/imap: new aport
An IMAP/POP server
http://www.washington.edu/imap
uses inetd/xinetd so no init.d script.
We are mostly interested in the client library which is needed by php.
Diffstat (limited to 'main/imap')
-rw-r--r-- | main/imap/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/imap/APKBUILD b/main/imap/APKBUILD new file mode 100644 index 000000000..d8dd4fe89 --- /dev/null +++ b/main/imap/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> + +# at this point its only php who wants this for imap support +# if more packages needs the c-client lib we might want to +# build it shared +pkgname=imap +pkgver=2007e +pkgrel=0 +pkgdesc="An IMAP/POP server" +url="http://www.washington.edu/imap" +license="APACHE" +subpackages="$pkgname-dev" +depends= +makedepends="openssl-dev" +source="ftp://ftp.cac.washington.edu/$pkgname/$pkgname-$pkgver.tar.gz" + +build () +{ + cd $srcdir/$pkgname-$pkgver + 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:" \ + -e "s:^CC=.*:CC=${CC:-cc}:" \ + -i src/osdep/unix/Makefile || return 1 + + export GCCCFLAGS="$CFLAGS" + make slx SPECIALAUTHENTICATORS=ssl || return 1 + + 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 +} +md5sums="7903800dc2604000016de070e0c55840 imap-2007e.tar.gz" |