|
|
@@ -31,11 +31,12 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [REL]
|
|
|
Group: Mail
|
|
|
License: BSD
|
|
|
-Version: 2.0.16
|
|
|
-Release: 20011201
|
|
|
+Version: 2.1.1
|
|
|
+Release: 20020206
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-%{version}.tar.gz
|
|
|
+Patch0: imapd.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -50,15 +51,16 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n cyrus-imapd-%{version}
|
|
|
+ %patch -p0
|
|
|
|
|
|
%build
|
|
|
PATH="%{l_prefix}/bin:$PATH"; export PATH
|
|
|
cflags="-I%{l_prefix}/include"
|
|
|
- ldflags=""
|
|
|
+ ldflags="-L%{l_prefix}/lib"
|
|
|
case "%{l_target}" in
|
|
|
- *-freebsd* ) ldflags="-lpam -lcrypt" ;;
|
|
|
- *-solaris* ) ldflags="-lpam" ;;
|
|
|
- *-linux* ) ldflags="-lpam -lcrypt" ;;
|
|
|
+ *-freebsd* ) ldflags="$ldflags -lpam -lcrypt" ;;
|
|
|
+ *-solaris* ) ldflags="$ldflags -lpam" ;;
|
|
|
+ *-linux* ) ldflags="$ldflags -lpam -lcrypt" ;;
|
|
|
esac
|
|
|
CC="%{l_cc}" \
|
|
|
CPPFLAGS="$cflags" \
|