From yds@dppl.com  Wed Dec 16 13:41:28 1998
Received: from paris.dppl.com (paris.dppl.com [205.230.74.150])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA16514
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 Dec 1998 13:41:25 -0800 (PST)
          (envelope-from yds@dppl.com)
Received: (qmail 21270 invoked by uid 1001); 16 Dec 1998 21:41:17 -0000
Message-Id: <19981216214117.21269.qmail@paris.dppl.com>
Date: 16 Dec 1998 21:41:17 -0000
From: yds@dppl.com
Reply-To: yds@dppl.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: imap-uw@freebsd.ady.ro
Subject: imap-uw: install mail.h rfc822.h linkage.h
X-Send-Pr-Version: 3.2

>Number:         9108
>Category:       ports
>Synopsis:       imap-uw: install mail.h rfc822.h linkage.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 16 13:50:01 PST 1998
>Closed-Date:    Thu Dec 24 18:26:34 GMT 1998
>Last-Modified:  Thu Dec 24 11:12:43 PST 1998
>Originator:     Yarema
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	Currently the imap-uw port builds libc-client4.so.4 but doesn't
install the required headers needed to link with the library. Examples of
programs which link to c-clinet are Perl's Mail::Cclient and PHP3 w/IMAP
enabled; pine uses it's own copy of c-client.

>How-To-Repeat:

	Look at the comments in imap-uw/Makefile (which my patch is deleting
since they will no longer be relevent)

>Fix:

diff -ruN imap-uw.old/Makefile imap-uw/Makefile
--- imap-uw.old/Makefile	Sat Nov 21 15:01:51 1998
+++ imap-uw/Makefile	Wed Dec 16 15:49:31 1998
@@ -32,14 +32,10 @@
 post-configure:
 	@${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}"
 
-# this rule currently isn't called or used, because it's not sufficient to
-# install just the .a file and mail.h, so we shouldn't install anything at all!
-# Remark: only the shared library version is built now !
-install-lib:
-	${INSTALL_DATA} ${WRKSRC}/c-clinet/mail.h ${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/c-client/c-client.a ${PREFIX}/lib/libc-client.a
-
 do-install:
+	${INSTALL_DATA} ${WRKSRC}/c-client/mail.h ${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/c-client/rfc822.h ${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/c-client/linkage.h ${PREFIX}/include
 	${INSTALL} ${COPY} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
 		${WRKSRC}/c-client/${SHLIBNAME} ${PREFIX}/lib
 	${LN} -sf ${SHLIBNAME} ${PREFIX}/lib/lib${SHLIBBASE}.so
diff -ruN imap-uw.old/pkg/PLIST imap-uw/pkg/PLIST
--- imap-uw.old/pkg/PLIST	Sat Nov 21 15:01:56 1998
+++ imap-uw/pkg/PLIST	Wed Dec 16 15:50:29 1998
@@ -1,4 +1,7 @@
 bin/mboxtest
+include/mail.h
+include/rfc822.h
+include/linkage.h
 lib/%%SHLIBNAME%%
 lib/lib%%SHLIBBASE%%.so
 @exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jseger
State-Changed-When: Thu Dec 24 18:26:34 GMT 1998
State-Changed-Why: 
Committed, thanks.
>Unformatted:
