diff options
Diffstat (limited to 'net/samba')
-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 |