diff options
Diffstat (limited to 'main/imap/APKBUILD')
-rw-r--r-- | main/imap/APKBUILD | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/main/imap/APKBUILD b/main/imap/APKBUILD index 14c1ac72f6..c117421eff 100644 --- a/main/imap/APKBUILD +++ b/main/imap/APKBUILD @@ -5,28 +5,41 @@ # build it shared pkgname=imap pkgver=2007e -pkgrel=1 +pkgrel=2 pkgdesc="An IMAP/POP server" url="http://www.washington.edu/imap" license="APACHE" -subpackages="$pkgname-dev" +subpackages="$pkgname-dev c-client:cclient" depends= makedepends="openssl-dev" -source="ftp://ftp.cac.washington.edu/$pkgname/$pkgname-$pkgver.tar.gz" +source="ftp://ftp.cac.washington.edu/$pkgname/$pkgname-$pkgver.tar.gz + c-client-2006k_GENTOO_amd64-so-fix.patch + c-client-2006k_KOLAB_Annotations.patch + " -build () -{ +prepare() { cd $srcdir/$pkgname-$pkgver + for i in ../*.patch; do + msg "Applying $i" + patch -p1 -i $i || return 1 + done 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 +} + +build() { + cd $srcdir/$pkgname-$pkgver export GCCCFLAGS="$CFLAGS" make slx SPECIALAUTHENTICATORS=ssl EXTRACFLAGS="$CFLAGS -fPIC" \ || return 1 - +} + +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 @@ -39,4 +52,15 @@ build () 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" + +cclient() { + pkgdesc="UW IMAP c-client library" + cd "$srcdir"/$pkgname-$pkgver + install -Dm755 c-client/libc-client.so.1.0.0 \ + "$subpkgdir"/usr/lib/libc-client.so.1.0.0 + # generate symlinks + ldconfig -r "$subpkgdir" -N -n usr/lib +} +md5sums="7903800dc2604000016de070e0c55840 imap-2007e.tar.gz +7f3937a871edd54203fe51f91423e204 c-client-2006k_GENTOO_amd64-so-fix.patch +c50f734aa18019ecebfc8737ca27cc22 c-client-2006k_KOLAB_Annotations.patch" |