Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net/cyphesis/Makefile,v retrieving revision 1.35 diff -u -r1.35 Makefile --- Makefile 12 May 2009 16:56:57 -0000 1.35 +++ Makefile 29 May 2009 12:41:36 -0000 @@ -31,6 +31,8 @@ USE_PGSQL= yes USE_PYTHON= yes +CFLAGS+= -I${LOCALBASE}/include + MAN1= cyclient.1 cycmd.1 cyphesis.1 cyphesis-tools.1 cyaddrules.1 \ cyconvertrules.1 cydumprules.1 cyloadrules.1 cypasswd.1 @@ -43,6 +45,7 @@ @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \ ${REINPLACE_CMD} -e 's|$$(datadir)/cyphesis|${DATADIR}|g' @${REINPLACE_CMD} -e 's|/bash|/sh|' ${WRKSRC}/scripts/extract_revision.sh + @${REINPLACE_CMD} -e '1s|python|${LOCALBASE}/bin/${PYTHON_VERSION}|' ${WRKSRC}/scripts/gen_buildid.py post-install: .if !defined(NOPORTDOCS) Index: files/patch-configure =================================================================== RCS file: files/patch-configure diff -N files/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-configure 28 May 2009 13:26:08 -0000 @@ -0,0 +1,178 @@ +--- configure.orig 2009-05-11 14:24:00.000000000 +0200 ++++ configure 2009-05-28 15:25:34.000000000 +0200 +@@ -4565,8 +4565,9 @@ + fi + + +- +-python_prefix=/usr ++# GAHR ++#python_prefix=/usr ++python_prefix=/usr/local + + # Check whether --with-python was given. + if test "${with_python+set}" = set; then +@@ -6196,6 +6197,153 @@ + + + ++ ++if test "${ac_cv_header_python2_6_Python_h+set}" = set; then ++ { echo "$as_me:$LINENO: checking for python2.6/Python.h" >&5 ++echo $ECHO_N "checking for python2.6/Python.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_python2_6_Python_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_python2_6_Python_h" >&5 ++echo "${ECHO_T}$ac_cv_header_python2_6_Python_h" >&6; } ++else ++ # Is the header compilable? ++{ echo "$as_me:$LINENO: checking python2.6/Python.h usability" >&5 ++echo $ECHO_N "checking python2.6/Python.h usability... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++$ac_includes_default ++#include ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_header_compiler=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_compiler=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ++echo "${ECHO_T}$ac_header_compiler" >&6; } ++ ++# Is the header present? ++{ echo "$as_me:$LINENO: checking python2.6/Python.h presence" >&5 ++echo $ECHO_N "checking python2.6/Python.h presence... $ECHO_C" >&6; } ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#include ++_ACEOF ++if { (ac_try="$ac_cpp conftest.$ac_ext" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } >/dev/null && { ++ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || ++ test ! -s conftest.err ++ }; then ++ ac_header_preproc=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_header_preproc=no ++fi ++ ++rm -f conftest.err conftest.$ac_ext ++{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ++echo "${ECHO_T}$ac_header_preproc" >&6; } ++ ++# So? What about this header? ++case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in ++ yes:no: ) ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: accepted by the compiler, rejected by the preprocessor!" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;} ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: proceeding with the compiler's result" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: proceeding with the compiler's result" >&2;} ++ ac_header_preproc=yes ++ ;; ++ no:yes:* ) ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: present but cannot be compiled" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: present but cannot be compiled" >&2;} ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: check for missing prerequisite headers?" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: check for missing prerequisite headers?" >&2;} ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: see the Autoconf documentation" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: see the Autoconf documentation" >&2;} ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: section \"Present But Cannot Be Compiled\"" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: section \"Present But Cannot Be Compiled\"" >&2;} ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: proceeding with the preprocessor's result" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: proceeding with the preprocessor's result" >&2;} ++ { echo "$as_me:$LINENO: WARNING: python2.6/Python.h: in the future, the compiler will take precedence" >&5 ++echo "$as_me: WARNING: python2.6/Python.h: in the future, the compiler will take precedence" >&2;} ++ ( cat <<\_ASBOX ++## --------------------------------------- ## ++## Report this to alriddoch@googlemail.com ## ++## --------------------------------------- ## ++_ASBOX ++ ) | sed "s/^/$as_me: WARNING: /" >&2 ++ ;; ++esac ++{ echo "$as_me:$LINENO: checking for python2.6/Python.h" >&5 ++echo $ECHO_N "checking for python2.6/Python.h... $ECHO_C" >&6; } ++if test "${ac_cv_header_python2_6_Python_h+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_header_python2_6_Python_h=$ac_header_preproc ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_header_python2_6_Python_h" >&5 ++echo "${ECHO_T}$ac_cv_header_python2_6_Python_h" >&6; } ++ ++fi ++if test $ac_cv_header_python2_6_Python_h = yes; then ++ ++ python_include_path=-I${python_prefix}/include/python2.6 ++ python_version=2.6 ++ ++else ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + if test "${ac_cv_header_python2_5_Python_h+set}" = set; then + { echo "$as_me:$LINENO: checking for python2.5/Python.h" >&5 + echo $ECHO_N "checking for python2.5/Python.h... $ECHO_C" >&6; } +@@ -6771,6 +6919,9 @@ + fi + + ++fi ++ ++ + + PYTHON_VERSION=${python_version} + PYTHON_INCLUDES=${python_include_path}