[123938] trunk/dports/security/authforce

jmr at macports.org jmr at macports.org
Fri Aug 15 23:57:19 PDT 2014


Revision: 123938
          https://trac.macports.org/changeset/123938
Author:   jmr at macports.org
Date:     2014-08-15 23:57:19 -0700 (Fri, 15 Aug 2014)
Log Message:
-----------
authforce: remove use of curl/types.h, replace malloc.h with stdlib.h, remove unneeded lines

Modified Paths:
--------------
    trunk/dports/security/authforce/Portfile

Added Paths:
-----------
    trunk/dports/security/authforce/files/
    trunk/dports/security/authforce/files/malloc.h.patch
    trunk/dports/security/authforce/files/src_http.c.patch

Modified: trunk/dports/security/authforce/Portfile
===================================================================
--- trunk/dports/security/authforce/Portfile	2014-08-16 05:29:50 UTC (rev 123937)
+++ trunk/dports/security/authforce/Portfile	2014-08-16 06:57:19 UTC (rev 123938)
@@ -30,13 +30,4 @@
 
 use_bzip2               yes
 
-post-patch {
-    reinplace "s|malloc.h|sys/malloc.h|g" ${worksrcpath}/configure \
-                                          ${worksrcpath}/src/extract.c \
-                                          ${worksrcpath}/src/methods.c \
-                                          ${worksrcpath}/src/misc.c
-}
-
-configure.ldflags-append -lintl
-configure.args          --mandir=${prefix}/share/man \
-                        --infodir=${prefix}/share/info
+patchfiles              src_http.c.patch malloc.h.patch

Added: trunk/dports/security/authforce/files/malloc.h.patch
===================================================================
--- trunk/dports/security/authforce/files/malloc.h.patch	                        (rev 0)
+++ trunk/dports/security/authforce/files/malloc.h.patch	2014-08-16 06:57:19 UTC (rev 123938)
@@ -0,0 +1,31 @@
+--- src/extract.c.orig	2007-05-14 08:54:20.000000000 +1000
++++ src/extract.c	2014-08-16 16:48:48.000000000 +1000
+@@ -20,7 +20,7 @@
+ #include <config.h>
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #ifdef MEMWATCH
+ #include "memwatch.h"
+ #endif /* MEMWATCH */
+--- src/methods.c.orig	2007-05-14 08:54:20.000000000 +1000
++++ src/methods.c	2014-08-16 16:45:47.000000000 +1000
+@@ -5,7 +5,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+-#include <malloc.h>
+ #ifdef MEMWATCH
+ #include "memwatch.h"
+ #endif /* MEMWATCH */
+--- src/misc.c.orig	2007-05-14 08:54:20.000000000 +1000
++++ src/misc.c	2014-08-16 16:45:29.000000000 +1000
+@@ -3,7 +3,6 @@
+ #include <config.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+ #include <string.h>
+ #include <ctype.h>
+ #ifdef MEMWATCH

Added: trunk/dports/security/authforce/files/src_http.c.patch
===================================================================
--- trunk/dports/security/authforce/files/src_http.c.patch	                        (rev 0)
+++ trunk/dports/security/authforce/files/src_http.c.patch	2014-08-16 06:57:19 UTC (rev 123938)
@@ -0,0 +1,10 @@
+--- src/http.c.orig	2007-05-14 08:54:20.000000000 +1000
++++ src/http.c	2014-08-16 16:36:07.000000000 +1000
+@@ -7,7 +7,6 @@
+ #include <time.h>
+ #ifdef USE_CURL
+ #include <curl/curl.h>
+-#include <curl/types.h>
+ #include <curl/easy.h>
+ #endif /* USE_CURL */
+ #ifdef MEMWATCH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140815/baa3a164/attachment.html>


More information about the macports-changes mailing list