aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-01-18 06:50:51 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-01-18 06:50:51 +0800
commit37d25219ba544a6bc18e8b84a16e2e4b2d51d914 (patch)
tree9e2a4919fb9cf44d905bf532c9b20e9522d77d41 /net
parentb40158bcd57dc26b235148d0bbab685d9e8eb1b5 (diff)
downloadfreebsd-ports-gnome-37d25219ba544a6bc18e8b84a16e2e4b2d51d914.tar.gz
freebsd-ports-gnome-37d25219ba544a6bc18e8b84a16e2e4b2d51d914.tar.zst
freebsd-ports-gnome-37d25219ba544a6bc18e8b84a16e2e4b2d51d914.zip
Fix once and for all cups support in postfix.
Add BSD printing support to samba and default it to /etc/printcap Bump PORTREVISION PR: 33803 Submitted by: ports@geeksrus.net
Diffstat (limited to 'net')
-rw-r--r--net/samba/Makefile13
-rw-r--r--net/samba/files/patch-ba47
-rw-r--r--net/samba/files/patch-include-includes.h14
3 files changed, 21 insertions, 53 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 505f2a4b68ca..4471b3627e4f 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -7,7 +7,7 @@
PORTNAME= samba
PORTVERSION= 2.2.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= ftp://ftp.samba.org/pub/samba/%SUBDIR%/ \
ftp://samba.anu.edu.au/pub/samba/%SUBDIR%/ \
@@ -18,9 +18,7 @@ MASTER_SITE_SUBDIR= . old-versions old
MAINTAINER= dwcjr@FreeBSD.org
-.if defined(WITH_CUPS)
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base
-.endif
.if defined(WITH_RECYCLE)
PATCH_SITES+= http://www.amherst.edu/~bbstone/recycle_bin/2.2.2/
@@ -46,15 +44,14 @@ CONFIGURE_ARGS= --libdir=${SAMBA_CONFDIR} \
.include <bsd.port.pre.mk>
+# to find CUPS libs, includes
+CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
+ LDFLAGS=-L${LOCALBASE}/lib
+
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
CONFIGURE_ARGS+= --with-krb5=${KRB5_HOME}
.endif
-.if defined(WITH_CUPS)
-# This enables CUPS printing support in Samba.
-CONFIGURE_ARGS+= --with-cups=${LOCALBASE}
-.endif
-
.if defined(WITH_ACL_SUPPORT)
.if ${OSVERSION} < 500018
BROKEN= "Requires a recent FreeBSD 5.0-CURRENT"
diff --git a/net/samba/files/patch-ba b/net/samba/files/patch-ba
index b6f5a757140d..c721da053dff 100644
--- a/net/samba/files/patch-ba
+++ b/net/samba/files/patch-ba
@@ -1,27 +1,5 @@
---- configure.in.orig Sat Oct 13 22:09:16 2001
-+++ configure.in Tue Oct 16 17:21:21 2001
-@@ -406,21 +406,6 @@
- AC_CHECK_TYPE(ssize_t, int)
- AC_CHECK_TYPE(wchar_t, unsigned short)
-
--############################################
--# for cups support we need libcups, and a handful of header files
--
--AC_CHECK_LIB(cups,httpConnect)
--
--# I wonder if there is a nicer way of doing this?
--
--if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
-- AC_CHECK_HEADERS(cups/cups.h cups/language.h)
-- if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
-- if test x"$ac_cv_header_cups_language_h" = x"yes"; then
-- AC_DEFINE(HAVE_CUPS)
-- fi
-- fi
--fi
-
- ############################################
- # we need libdl for PAM and the new VFS code
+--- configure.in.orig Sat Oct 13 17:09:16 2001
++++ configure.in Fri Jan 11 19:58:14 2002
@@ -1622,7 +1607,7 @@
yes)
AC_MSG_RESULT(yes)
@@ -31,24 +9,3 @@
CFLAGS="$CFLAGS -I$withval/include"
LDFLAGS="$LDFLAGS -L$withval/lib"
;;
-@@ -1961,6 +1946,20 @@
- ;;
- esac ],
- AC_MSG_RESULT(no)
-+)
-+
-+#################################################
-+# check for CUPS printing support
-+AC_MSG_CHECKING(whether to use CUPS printing)
-+AC_ARG_WITH(cups,
-+[ --with-cups=base-dir Include CUPS printing support
-+ --without-cups Don't include CUPS printing support (default)],
-+[ AC_MSG_RESULT(yes)
-+ LIBS="$LIBS -lcups"
-+ CFLAGS="$CFLAGS -I$withval/include"
-+ LDFLAGS="$LDFLAGS -L$withval/lib"
-+ AC_CHECK_LIB(cups,httpConnect)],
-+ AC_MSG_RESULT(no)
- )
-
-
diff --git a/net/samba/files/patch-include-includes.h b/net/samba/files/patch-include-includes.h
new file mode 100644
index 000000000000..f426392920b2
--- /dev/null
+++ b/net/samba/files/patch-include-includes.h
@@ -0,0 +1,14 @@
+--- include/includes.h.orig Sat Oct 13 17:09:21 2001
++++ include/includes.h Fri Jan 11 22:12:06 2002
+@@ -27,6 +27,11 @@
+
+ #include "local.h"
+
++#ifdef __FreeBSD__
++#define DEFAULT_PRINTING PRINT_BSD
++#define PRINTCAP_NAME "/etc/printcap"
++#endif /* __FreeBSD__ */
++
+ #ifdef AIX
+ #define DEFAULT_PRINTING PRINT_AIX
+ #define PRINTCAP_NAME "/etc/qconfig"