Date: Tue, 1 Apr 2003 16:01:23 +0400 (MSD) From: "Sergey A.Osokin" <osa@FreeBSD.org.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: dwcjr@FreeBSD.org Subject: ports/50519: [PATCH] net/samba: fix building with Winbind under 5.0 Message-ID: <20030401120123.381CFBE@freebsd.org.ru> Resent-Message-ID: <200304011210.h31CABYQ086949@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 50519 >Category: ports >Synopsis: [PATCH] net/samba: fix building with Winbind under 5.0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Apr 01 04:10:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Sergey A. Osokin >Release: FreeBSD 5.0-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD 5.0-CURRENT i386 >Description: [PATCH] net/samba: fix building with Winbind under 5.0 The problem arose due to OpenPAM import. Bump PORTREVISION Spotted by Oleg Muhutdinov <mor at FreeBSD dot org dot ru> >How-To-Repeat: under FreeBSD 5.0: $ cd ports/net/samba $ make <choose winbind (With Winbind)> >Fix: Index: ports/net/samba/Makefile =================================================================== RCS file: /home/ncvs/ports/net/samba/Makefile,v retrieving revision 1.118 diff -u -r1.118 Makefile --- ports/net/samba/Makefile 25 Mar 2003 14:52:42 -0000 1.118 +++ ports/net/samba/Makefile 1 Apr 2003 11:42:48 -0000 @@ -7,6 +7,7 @@ PORTNAME= samba PORTVERSION= 2.2.8 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://us3.samba.org/samba/ftp/%SUBDIR%/ \ http://us4.samba.org/samba/ftp/%SUBDIR%/ \ --- /dev/null Tue Apr 1 14:30:34 2003 +++ ports/net/samba/files/patch-source::nsswitch::pam_winbind.h Tue Apr 1 12:58:33 2003 @@ -0,0 +1,19 @@ +--- source/nsswitch/pam_winbind.h.orig Tue Apr 1 12:57:33 2003 ++++ source/nsswitch/pam_winbind.h Tue Apr 1 12:57:41 2003 +@@ -25,7 +25,15 @@ + #define PAM_SM_ACCOUNT + #define PAM_SM_PASSWORD + +-#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) ++#if (__FreeBSD__ == 0) /* 1.0 did not define __FreeBSD__ */ ++#define __FreeBSD_version 199401 ++#elsif __FreeBSD__ == 1 /* 1.1 defined it to be 1 */ ++#define __FreeBSD_version 199405 ++#else /* 2.0 and higher define it to be 2 */ ++#include <osreldate.h> /* and this works */ ++#endif ++ ++#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || (defined (__FreeBSD_version) && (__FreeBSD_version > 500030)) + + /* Solaris always uses dynamic pam modules */ + #define PAM_EXTERN extern >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030401120123.381CFBE>