1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Unbreak net/samba3 and japanese/samba3 on 7-current.

- Portability changes for 4.x.

Submitted by:	maintainer
This commit is contained in:
Jun Kuriyama 2005-07-20 04:17:44 +00:00
parent c413171b14
commit 3712c48039
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139642
2 changed files with 36 additions and 14 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= samba
PORTVERSION?= 3.0.14a
PORTREVISION?= 0
PORTREVISION?= 1
PORTEPOCH?= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SAMBA}
@ -60,15 +60,9 @@ CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE}
.if !defined(SAMBA_SUBPORT)
OPTIONS= LDAP "With LDAP support" on
.if defined(PACKAGE_BUILDING)
# Kerberos5 setup is very box specific, we don't
# want artificial dependencies in the packages
OPTIONS+= ADS "With Active Directory support" off
.else
OPTIONS+= ADS "With Active Directory support" on
.endif
OPTIONS+= CUPS "With CUPS printing support" on \
OPTIONS= LDAP "With LDAP support" on \
ADS "With Active Directory support" off \
CUPS "With CUPS printing support" on \
WINBIND "With WinBIND support" on \
ACL_SUPPORT "With ACL support" off \
SYSLOG "With Syslog support" off \
@ -216,6 +210,16 @@ CONFIGURE_ARGS+= --with-included-popt
.endif
# Common part
# For 4.8 - 4.11 combination of Kerberos and OpenLDAP is broken
# due the conflict between system and OpenSSL port libcrypto libraries
.if ${OSVERSION} > 470103 && ${OSVERSION} < 500000
.if defined(WITH_ADS)
IGNORE= "Broken dependency between OpenSSL, OpenLDAP and Heimdal for FreeBSD 4.x. Disable ADS support"
.endif
WITHOUT_ADS= on
.endif
.if !defined(PACKAGE_BUILDING) && !defined(WITHOUT_ADS)
WANT_LDAP= yes
WANT_KRB5= yes

View File

@ -1,6 +1,6 @@
--- configure.in.orig Fri Mar 11 14:47:05 2005
+++ configure.in Sun Mar 20 01:24:25 2005
@@ -724,7 +724,9 @@
--- configure.in.orig Thu Apr 14 08:14:26 2005
+++ configure.in Wed Jul 20 02:42:57 2005
@@ -727,7 +727,9 @@
AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h)
AC_CHECK_HEADERS(stropts.h poll.h)
AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
@ -11,7 +11,7 @@
# These faile to compile on Solaris so just check for their presence
AC_CHECK_HEADERS(security/pam_modules.h net/if.h netinet/ip.h, [], [], -)
@@ -1159,6 +1161,18 @@
@@ -1162,6 +1164,18 @@
AC_CHECK_FUNCS(setxattr lsetxattr fsetxattr)
AC_CHECK_FUNCS(attr_get attr_list attr_set attr_remove)
AC_CHECK_FUNCS(attr_getf attr_listf attr_setf attr_removef)
@ -30,3 +30,21 @@
# Assume non-shared by default and override below
BLDSHARED="false"
@@ -3974,7 +3988,7 @@
AC_DEFINE(HAVE_TRU64_ACLS,1,[Whether Tru64 ACLs are available])
ACL_LIBS="$ACL_LIBS -lpacl"
;;
- *freebsd5*|*freebsd6*)
+ *freebsd[[5-9]]*)
AC_MSG_RESULT(Using FreeBSD posix ACLs)
AC_DEFINE(HAVE_POSIX_ACLS,1,[Whether FreeBSD POSIX ACLs are available])
AC_DEFINE(HAVE_ACL_GET_PERM_NP,1,[Whether acl_get_perm_np() is available])
@@ -4322,7 +4336,7 @@
*linux*)
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
;;
- *freebsd5*|*freebsd6*)
+ *freebsd[[5-9]]*)
# FreeBSD winbind client is implemented as a wrapper around
# the Linux version.
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \