[Midnightbsd-cvs] mports [20811] trunk/mail/libspf: fix build
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Nov 12 22:26:45 EST 2015
Revision: 20811
http://svnweb.midnightbsd.org/mports/?rev=20811
Author: laffer1
Date: 2015-11-12 22:26:45 -0500 (Thu, 12 Nov 2015)
Log Message:
-----------
fix build
Modified Paths:
--------------
trunk/mail/libspf/Makefile
Added Paths:
-----------
trunk/mail/libspf/files/patch-configure.in
Removed Paths:
-------------
trunk/mail/libspf/files/patch-respect_cflags_and_dont_create_spfmilter_Makefile
Modified: trunk/mail/libspf/Makefile
===================================================================
--- trunk/mail/libspf/Makefile 2015-11-13 03:22:31 UTC (rev 20810)
+++ trunk/mail/libspf/Makefile 2015-11-13 03:26:45 UTC (rev 20811)
@@ -6,8 +6,7 @@
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.libspf.org/files/src/ \
- ${MASTER_SITE_FREEBSD_LOCAL}
-MASTER_SITE_SUBDIR= mnag/${PORTNAME}
+ FREEBSD_LOCAL/mnag/${PORTNAME}
MAINTAINER= ports at MidnightBSD.org
COMMENT= Sender Policy Framework (SPF) library and client
@@ -17,15 +16,14 @@
MAKE_JOBS_UNSAFE=yes
+GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
-USES= tar:bzip2 libtool
-GNU_CONFIGURE= yes
-
+USES= autoreconf libtool tar:bzip2
USE_LDCONFIG= yes
PORTDOCS= *
-OPTIONS_DEFINE= RFC_RECURSION LOGFILE_STATS DEBUG DOCS
+OPTIONS_DEFINE= RFC_RECURSION LOGFILE_STATS DEBUG DOCS EXAMPLES
RFC_RECURSION_DESC= Change SPF recursion to 20 (as per RFC)
LOGFILE_STATS_DESC= Enables logfile stats
@@ -43,9 +41,8 @@
CONFIGURE_ARGS+= --enable-debug
.endif
-post-patch:
- @${REINPLACE_CMD} -e "s|CFLAGS =|CFLAGS +=|" \
- ${WRKSRC}/src/libspf/Makefile.in ${WRKSRC}/src/spfqtool/Makefile.in
+post-extract:
+ @${CHMOD} u+w ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
.if ${PORT_OPTIONS:MDOCS}
Added: trunk/mail/libspf/files/patch-configure.in
===================================================================
--- trunk/mail/libspf/files/patch-configure.in (rev 0)
+++ trunk/mail/libspf/files/patch-configure.in 2015-11-13 03:26:45 UTC (rev 20811)
@@ -0,0 +1,117 @@
+--- configure.in.orig 2006-05-08 22:06:01 UTC
++++ configure.in
+@@ -839,7 +839,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-libbind)
+ ;;
+ esac],
+-[libbind=false] AC_MSG_RESULT(no))
++[libbind=false]; AC_MSG_RESULT(no))
+
+ if test "$libbind" = "true"; then
+ LIBSPF_RESOLV_LIB="-lbind"
+@@ -927,14 +927,12 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-debug)
+ ;;
+ esac],
+-[debug=false] AC_MSG_RESULT(no))
++[debug=false]; AC_MSG_RESULT(no))
+
+-CFLAGS=""
+ if test "$debug" = "true"; then
+- CFLAGS="-ggdb -O -D_SPF_DEBUG"
++ CFLAGS="$CFLAGS -D_SPF_DEBUG"
+ else
+ AC_MSG_RESULT(Enabling GCC optimisations)
+- CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer"
+
+ if [[ "x$GCC_VERSION" = "x3" ]]; then
+ AC_MSG_RESULT(Enabling GCC v3 optimizations)
+@@ -976,7 +974,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-debug-logfile)
+ ;;
+ esac],
+- [debug_logfile=true] AC_MSG_RESULT(no))
++ [debug_logfile=true]; AC_MSG_RESULT(no))
+
+ if test "$debug_logfile" = "true"; then
+ CFLAGS="-D_SPF_DEBUG_LOGFILE $CFLAGS"
+@@ -1005,7 +1003,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-logfile-stats)
+ ;;
+ esac],
+-[logfile_stats=false] AC_MSG_RESULT(no))
++[logfile_stats=false]; AC_MSG_RESULT(no))
+
+ if test "$logfile_stats" = "true"; then
+ CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS"
+@@ -1033,7 +1031,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-rfc-recursion)
+ ;;
+ esac],
+-[rfc_recursion=false] AC_MSG_RESULT(no))
++[rfc_recursion=false]; AC_MSG_RESULT(no))
+
+ if test "$rfc_recursion" = "true"; then
+ CFLAGS="-D_RFC_RECURSION $CFLAGS"
+@@ -1079,7 +1077,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-paranoid-malloc)
+ ;;
+ esac],
+-[paranoid_malloc=true] AC_MSG_RESULT(yes))
++[paranoid_malloc=true]; AC_MSG_RESULT(yes))
+
+ if test "$paranoid_malloc" = "true"; then
+ CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS"
+@@ -1109,7 +1107,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-res_search)
+ ;;
+ esac],
+-[res_search=falsee] AC_MSG_RESULT(no))
++[res_search=falsee]; AC_MSG_RESULT(no))
+
+ if test "$res_search" = "true"; then
+ CFLAGS="-D_WITH_RES_SEARCH $CFLAGS"
+@@ -1136,7 +1134,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --disable-spfqtool)
+ ;;
+ esac],
+-[spfqtool=false] AC_MSG_RESULT(no))
++[spfqtool=false]; AC_MSG_RESULT(no))
+
+ if test "$spfqtool" = "true"; then
+ LIBSPF_BUILD_DIRS="libspf"
+@@ -1168,7 +1166,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-pthreads)
+ ;;
+ esac],
+-[pthreads=false] AC_MSG_RESULT(no))
++[pthreads=false]; AC_MSG_RESULT(no))
+
+ if test "$pthreads" = "true"; then
+
+@@ -1226,7 +1224,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-spfmilter)
+ ;;
+ esac],
+-[spfmilter=false] AC_MSG_RESULT(no))
++[spfmilter=false]; AC_MSG_RESULT(no))
+
+ if test "$pthreads" = "false"; then
+ if test "$spfmilter" = "true"; then
+@@ -1314,7 +1312,7 @@
+ AC_MSG_ERROR(bad value ${enableval} for --enable-full-optimizations)
+ ;;
+ esac],
+- [full_optimizations=false] AC_MSG_RESULT(no))
++ [full_optimizations=false]; AC_MSG_RESULT(no))
+
+ if test "$full_optimizations" = "true"; then
+ if [[ "x$GCCVER" != "xno" ]]; then
+@@ -1337,7 +1335,6 @@
+ src/spfqtool/Makefile \
+ src/libspf/spf.h \
+ src/libspf/util.c \
+- src/spfmilter/Makefile \
+ )
+ #AC_OUTPUT(src/Makefile)
+ #AC_OUTPUT(src/libspf/Makefile)
Property changes on: trunk/mail/libspf/files/patch-configure.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Deleted: trunk/mail/libspf/files/patch-respect_cflags_and_dont_create_spfmilter_Makefile
===================================================================
--- trunk/mail/libspf/files/patch-respect_cflags_and_dont_create_spfmilter_Makefile 2015-11-13 03:22:31 UTC (rev 20810)
+++ trunk/mail/libspf/files/patch-respect_cflags_and_dont_create_spfmilter_Makefile 2015-11-13 03:26:45 UTC (rev 20811)
@@ -1,36 +0,0 @@
---- configure.orig Mon May 8 19:08:57 2006
-+++ configure Mon May 8 22:45:47 2006
-@@ -23183,7 +23183,7 @@
- else
- echo "$as_me:$LINENO: result: Enabling GCC optimisations" >&5
- echo "${ECHO_T}Enabling GCC optimisations" >&6
-- CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer"
-+ CFLAGS="$CFLAGS"
-
- if [ "x$GCC_VERSION" = "x3" ]; then
- echo "$as_me:$LINENO: result: Enabling GCC v3 optimizations" >&5
-@@ -24317,7 +24317,7 @@
- # Generate Makefiles
- #-------------------------------------------------------------------------------
-
-- ac_config_files="$ac_config_files Makefile src/Makefile src/libspf/Makefile src/spfqtool/Makefile src/libspf/spf.h src/libspf/util.c src/spfmilter/Makefile"
-+ ac_config_files="$ac_config_files Makefile src/Makefile src/libspf/Makefile src/spfqtool/Makefile src/libspf/spf.h src/libspf/util.c"
- cat >confcache <<\_ACEOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
-@@ -24873,7 +24873,6 @@
- "src/spfqtool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/spfqtool/Makefile" ;;
- "src/libspf/spf.h" ) CONFIG_FILES="$CONFIG_FILES src/libspf/spf.h" ;;
- "src/libspf/util.c" ) CONFIG_FILES="$CONFIG_FILES src/libspf/util.c" ;;
-- "src/spfmilter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/spfmilter/Makefile" ;;
- "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
- "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
- *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
-@@ -25754,7 +25753,6 @@
- #AC_OUTPUT(src/spfqtool/Makefile)
- #AC_OUTPUT(src/libspf/spf.h)
- #AC_OUTPUT(src/libspf/util.c)
--#AC_OUTPUT(src/spfmilter/Makefile)
-
- echo ""
- echo ""
More information about the Midnightbsd-cvs
mailing list