OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web Date: 03-Oct-2003 23:03:56
Branch: HEAD Handle: 2003100322035402
Modified files:
openpkg-src/pine pine.spec
openpkg-web news.txt
Log:
Add optional LDAP support.
Submitted by: Dennis McRitchie <[EMAIL PROTECTED]>
Summary:
Revision Changes Path
1.4 +26 -5 openpkg-src/pine/pine.spec
1.6843 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/pine/pine.spec
============================================================================
$ cvs diff -u -r1.3 -r1.4 pine.spec
--- openpkg-src/pine/pine.spec 19 Sep 2003 13:00:54 -0000 1.3
+++ openpkg-src/pine/pine.spec 3 Oct 2003 21:03:56 -0000 1.4
@@ -29,18 +29,19 @@
# package information
Name: pine
-Summary: Pine - a Programm for Internet News & Email
+Summary: Programm for Internet News & Email (PINE)
URL: http://www.washington.edu/pine/
Vendor: University of Washington
Packager: The OpenPKG Project
-Distribution: OpenPKG [JUNK]
+Distribution: OpenPKG [EVAL]
Group: Mail
License: Free but restricted
Version: %{V_here}
-Release: 20030919
+Release: 20031003
# package options
%option with_ssl no
+%option with_ldap no
# list of sources
Source0: ftp://ftp.cac.washington.edu/pine/pine%{V_real}.tar.bz2
@@ -56,6 +57,10 @@
BuildPreReq: openssl
PreReq: openssl
%endif
+%if "%{with_ldap}" == "yes"
+BuildPreReq: openldap
+PreReq: openldap
+%endif
AutoReq: no
AutoReqProv: no
@@ -98,12 +103,28 @@
# clean up before building Pine
sh ./build clean
+ # set up LDAP build environment
+%if "%{with_ldap}" == "yes"
+ mkdir ldap
+ ln -s %{l_prefix}/include ldap/include
+ ln -s %{l_prefix}/lib ldap/libraries
+%endif
+
# build Pine
+ cflags="%{l_cflags -O}"
+ ldflags="%{l_ldflags}"
+%if "%{with_ldap}" == "yes"
+ case "%{l_platform -t}" in
+ *-sunos5.* ) ldflags="$ldflags -lresolv" ;;
+ esac
+%endif
sh ./build \
CC="%{l_cc}" \
- EXTRACFLAGS="%{l_cflags -O}" \
- EXTRALDFLAGS="%{l_ldflags}" \
+ EXTRACFLAGS="$cflags" \
+ EXTRALDFLAGS="$ldflags" \
+%if "%{with_ldap}" != "yes"
NOLDAP \
+%endif
%if "%{with_ssl}" == "yes"
SSLDIR="%{l_prefix}" \
SSLTYPE="unix" \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.6842 -r1.6843 news.txt
--- openpkg-web/news.txt 3 Oct 2003 19:12:31 -0000 1.6842
+++ openpkg-web/news.txt 3 Oct 2003 21:03:54 -0000 1.6843
@@ -1,3 +1,4 @@
+03-Oct-2003: Upgraded package: P<pine-4.58L-20031003>
03-Oct-2003: Upgraded package: P<python-2.3.2-20031003>
03-Oct-2003: Upgraded package: P<bogofilter-0.15.6-20031003>
03-Oct-2003: Upgraded package: P<nmap-3.47-20031003>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]