summaryrefslogtreecommitdiff
path: root/net/samba/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-19 09:03:30 +0000
committerjlam <jlam@pkgsrc.org>2001-06-19 09:03:30 +0000
commit4e45a43e1d86a13271f29109d9585aad84554887 (patch)
treefce3fae072d7f8fb4e2ced8267e9a2ad94eafadb /net/samba/patches
parent401120d634795f6d2e5f311321e760b116ca7cf7 (diff)
downloadpkgsrc-4e45a43e1d86a13271f29109d9585aad84554887.tar.gz
Convert to use buildlink.mk files and remove unnecessary config.cache
entry to prevent finding libncurses and unnecessary patches to configure script to handle SSL location and probing libcups. Also use FILES_SUBST instead of repeating a sed script throughout the Makefile.
Diffstat (limited to 'net/samba/patches')
-rw-r--r--net/samba/patches/patch-aa61
-rw-r--r--net/samba/patches/patch-ab176
2 files changed, 0 insertions, 237 deletions
diff --git a/net/samba/patches/patch-aa b/net/samba/patches/patch-aa
deleted file mode 100644
index f7174da3455..00000000000
--- a/net/samba/patches/patch-aa
+++ /dev/null
@@ -1,61 +0,0 @@
-$NetBSD: patch-aa,v 1.15 2001/05/22 21:49:29 jlam Exp $
-
---- configure.in.orig Tue Apr 17 01:44:30 2001
-+++ configure.in Tue May 22 15:58:59 2001
-@@ -392,9 +392,6 @@
- AC_CHECK_TYPE(ssize_t, int)
- AC_CHECK_TYPE(wchar_t, unsigned short)
-
--# we need libcups for CUPS support...
--AC_CHECK_LIB(cups,httpConnect)
--
- # we need libdl for PAM and the new VFS code
- AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl";
- AC_DEFINE(HAVE_LIBDL)])
-@@ -1460,6 +1457,24 @@
- fi
-
-
-+################################################
-+# check for CUPS support
-+AC_MSG_CHECKING(whether to use CUPS)
-+AC_ARG_WITH(cups,
-+[ --with-cups Include CUPS support
-+ --without-cups Don't include CUPS support (default)],
-+[ case "$withval" in
-+ yes)
-+ AC_MSG_RESULT(yes)
-+ AC_CHECK_LIB(cups, httpConnect)
-+ ;;
-+ *)
-+ AC_MSG_RESULT(no)
-+ ;;
-+ esac ],
-+ AC_MSG_RESULT(no)
-+)
-+
- #################################################
- # check for smbwrapper support
- AC_MSG_CHECKING(whether to use smbwrapper)
-@@ -1724,6 +1739,9 @@
- LIBS="-lssl -lcrypto $LIBS"
- LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
- ;;
-+ /usr)
-+ LIBS="-lssl -lcrypto $LIBS"
-+ ;;
- * )
- CFLAGS="-I${withval}/include $CFLAGS"
- LIBS="-lssl -lcrypto $LIBS"
-@@ -1738,11 +1756,6 @@
- LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
-
- fi
--
-- if test ! -d ${withval}; then
-- echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
-- exit 1
-- fi
-
- CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
-
diff --git a/net/samba/patches/patch-ab b/net/samba/patches/patch-ab
deleted file mode 100644
index 51c4d36e593..00000000000
--- a/net/samba/patches/patch-ab
+++ /dev/null
@@ -1,176 +0,0 @@
-$NetBSD: patch-ab,v 1.11 2001/05/22 21:49:29 jlam Exp $
-
---- configure.orig Tue Apr 17 01:44:24 2001
-+++ configure Tue May 22 16:07:36 2001
-@@ -40,6 +40,9 @@
- --with-readline[=DIR] Look for readline include/libs in DIR
- --without-readline Don't include readline support"
- ac_help="$ac_help
-+ --with-cups Include CUPS support
-+ --without-cups Don't include CUPS support (default)"
-+ac_help="$ac_help
- --with-smbwrapper Include SMB wrapper support
- --without-smbwrapper Don't include SMB wrapper support (default)"
- ac_help="$ac_help
-@@ -3870,58 +3873,9 @@
- fi
-
-
--# we need libcups for CUPS support...
--echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
--echo "configure:3876: checking for httpConnect in -lcups" >&5
--ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
--if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-- echo $ac_n "(cached) $ac_c" 1>&6
--else
-- ac_save_LIBS="$LIBS"
--LIBS="-lcups $LIBS"
--cat > conftest.$ac_ext <<EOF
--#line 3884 "configure"
--#include "confdefs.h"
--/* Override any gcc2 internal prototype to avoid an error. */
--/* We use char because int might match the return type of a gcc2
-- builtin and then its argument prototype would still apply. */
--char httpConnect();
--
--int main() {
--httpConnect()
--; return 0; }
--EOF
--if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-- rm -rf conftest*
-- eval "ac_cv_lib_$ac_lib_var=yes"
--else
-- echo "configure: failed program was:" >&5
-- cat conftest.$ac_ext >&5
-- rm -rf conftest*
-- eval "ac_cv_lib_$ac_lib_var=no"
--fi
--rm -f conftest*
--LIBS="$ac_save_LIBS"
--
--fi
--if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-- echo "$ac_t""yes" 1>&6
-- ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
-- cat >> confdefs.h <<EOF
--#define $ac_tr_lib 1
--EOF
--
-- LIBS="-lcups $LIBS"
--
--else
-- echo "$ac_t""no" 1>&6
--fi
--
--
- # we need libdl for PAM and the new VFS code
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
--echo "configure:3925: checking for dlopen in -ldl" >&5
-+echo "configure:3879: checking for dlopen in -ldl" >&5
- ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-@@ -11044,10 +10998,78 @@
- fi
-
-
-+################################################
-+# check for CUPS support
-+echo $ac_n "checking whether to use CUPS""... $ac_c" 1>&6
-+echo "configure:11005: checking whether to use CUPS" >&5
-+# Check whether --with-cups or --without-cups was given.
-+if test "${with_cups+set}" = set; then
-+ withval="$with_cups"
-+ case "$withval" in
-+ yes)
-+ echo "$ac_t""yes" 1>&6
-+ echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
-+echo "configure:11013: checking for httpConnect in -lcups" >&5
-+ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
-+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-+ echo $ac_n "(cached) $ac_c" 1>&6
-+else
-+ ac_save_LIBS="$LIBS"
-+LIBS="-lcups $LIBS"
-+cat > conftest.$ac_ext <<EOF
-+#line 11021 "configure"
-+#include "confdefs.h"
-+/* Override any gcc2 internal prototype to avoid an error. */
-+/* We use char because int might match the return type of a gcc2
-+ builtin and then its argument prototype would still apply. */
-+char httpConnect();
-+
-+int main() {
-+httpConnect()
-+; return 0; }
-+EOF
-+if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-+ rm -rf conftest*
-+ eval "ac_cv_lib_$ac_lib_var=yes"
-+else
-+ echo "configure: failed program was:" >&5
-+ cat conftest.$ac_ext >&5
-+ rm -rf conftest*
-+ eval "ac_cv_lib_$ac_lib_var=no"
-+fi
-+rm -f conftest*
-+LIBS="$ac_save_LIBS"
-+
-+fi
-+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-+ echo "$ac_t""yes" 1>&6
-+ ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
-+ cat >> confdefs.h <<EOF
-+#define $ac_tr_lib 1
-+EOF
-+
-+ LIBS="-lcups $LIBS"
-+
-+else
-+ echo "$ac_t""no" 1>&6
-+fi
-+
-+ ;;
-+ *)
-+ echo "$ac_t""no" 1>&6
-+ ;;
-+ esac
-+else
-+ echo "$ac_t""no" 1>&6
-+
-+fi
-+
-+
- #################################################
- # check for smbwrapper support
- echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
--echo "configure:11051: checking whether to use smbwrapper" >&5
-+echo "configure:11073: checking whether to use smbwrapper" >&5
- # Check whether --with-smbwrapper or --without-smbwrapper was given.
- if test "${with_smbwrapper+set}" = set; then
- withval="$with_smbwrapper"
-@@ -11427,6 +11449,9 @@
- LIBS="-lssl -lcrypto $LIBS"
- LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
- ;;
-+ /usr)
-+ LIBS="-lssl -lcrypto $LIBS"
-+ ;;
- * )
- CFLAGS="-I${withval}/include $CFLAGS"
- LIBS="-lssl -lcrypto $LIBS"
-@@ -11441,11 +11466,6 @@
- LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
-
- fi
--
-- if test ! -d ${withval}; then
-- echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
-- exit 1
-- fi
-
- CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
-