Commit d4eef9a7 authored by Natanael Copa's avatar Natanael Copa

main/imap: c-client subpkg

* added annotations patch
* dynamically linked .so library for c-client
parent ca0a19c1
......@@ -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"
diff -r 7c3e6c6ef2ba src/osdep/unix/Makefile
--- a/src/osdep/unix/Makefile Thu Feb 21 18:51:32 2008 +0100
+++ b/src/osdep/unix/Makefile Thu Feb 21 18:53:15 2008 +0100
@@ -962,6 +962,9 @@ onceenv:
-DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" > OSCFLAGS
echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
+ echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \
+ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \
+ >> ARCHIVE
echo $(OS) > OSTYPE
./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment