mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-15 04:43:01 +01:00
70 lines
2.1 KiB
Plaintext
70 lines
2.1 KiB
Plaintext
# 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=2007f
|
|
pkgrel=0
|
|
pkgdesc="An IMAP/POP server"
|
|
url="http://www.washington.edu/imap"
|
|
arch="all"
|
|
license="APACHE"
|
|
subpackages="$pkgname-dev c-client:cclient"
|
|
depends=
|
|
makedepends="openssl-dev"
|
|
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
|
|
c-client-2007e-ldflags.patch
|
|
"
|
|
|
|
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" \
|
|
EXTRALDFLAGS="$LDFLAGS" \
|
|
|| 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
|
|
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
|
|
}
|
|
|
|
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
|
|
cd "$subpkgdir"/usr/lib
|
|
ln -s libc-client.so.1.0.0 libc-client.so.1
|
|
ln -s libc-client.so.1.0.0 libc-client.so
|
|
}
|
|
md5sums="2126fd125ea26b73b20f01fcd5940369 imap-2007f.tar.gz
|
|
7f3937a871edd54203fe51f91423e204 c-client-2006k_GENTOO_amd64-so-fix.patch
|
|
c50f734aa18019ecebfc8737ca27cc22 c-client-2006k_KOLAB_Annotations.patch
|
|
d28962ed76df636ff666c09d420e1451 c-client-2007e-ldflags.patch"
|