diff options
author | obraun <obraun@FreeBSD.org> | 2003-04-03 23:06:12 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2003-04-03 23:06:12 +0800 |
commit | 845458c061a457e772eb5275dd2cb26bf5e82a2e (patch) | |
tree | d58c7ff0111be53a361136c423a67226c00d79af | |
parent | b2524570ed600c8016ee87d15439d4bbcea86d2b (diff) | |
download | freebsd-ports-gnome-845458c061a457e772eb5275dd2cb26bf5e82a2e.tar.gz freebsd-ports-gnome-845458c061a457e772eb5275dd2cb26bf5e82a2e.tar.zst freebsd-ports-gnome-845458c061a457e772eb5275dd2cb26bf5e82a2e.zip |
Fix building with Winbind under 5.0.
PR: ports/50519
Submitted by: Sergey A.Osokin <osa@FreeBSD.org.ru>
Approved by: maintainer
-rw-r--r-- | net/samba/Makefile | 1 | ||||
-rw-r--r-- | net/samba/files/patch-source::nsswitch::pam_winbind.h | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index f04c6bc8a182..98f8dbc43b71 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -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%/ \ diff --git a/net/samba/files/patch-source::nsswitch::pam_winbind.h b/net/samba/files/patch-source::nsswitch::pam_winbind.h new file mode 100644 index 000000000000..4164f1b43dd3 --- /dev/null +++ b/net/samba/files/patch-source::nsswitch::pam_winbind.h @@ -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 |