ports/50519: [PATCH] net/samba: fix building with Winbind under 5.0

Sergey A.Osokin osa at FreeBSD.org.ru
Tue Apr 1 12:10:13 UTC 2003


>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:



More information about the freebsd-ports-bugs mailing list