From 634f7528aeb9a8b715164f4fde812024ce173482 Mon Sep 17 00:00:00 2001 From: miwi Date: Wed, 14 Oct 2009 14:20:27 +0000 Subject: - Update to 3.5 PR: 139513 139525 139525 Submitted by: Kuan-Chung Chiu (maintainer) --- converters/bsdconv/Makefile | 12 +++++-- converters/bsdconv/distinfo | 6 ++-- converters/bsdconv/files/extra-patch-strndup | 25 ++++++++++++++ converters/bsdconv/pkg-descr | 5 ++- converters/bsdconv/pkg-plist | 49 ++++++++++++++++++++++------ converters/p5-bsdconv/Makefile | 4 +-- converters/p5-bsdconv/distinfo | 6 ++-- converters/p5-bsdconv/pkg-descr | 2 +- converters/php5-bsdconv/Makefile | 4 +-- converters/php5-bsdconv/distinfo | 6 ++-- converters/php5-bsdconv/pkg-descr | 2 +- 11 files changed, 90 insertions(+), 31 deletions(-) create mode 100644 converters/bsdconv/files/extra-patch-strndup (limited to 'converters') diff --git a/converters/bsdconv/Makefile b/converters/bsdconv/Makefile index 16f84137780c..73d87a9a548a 100644 --- a/converters/bsdconv/Makefile +++ b/converters/bsdconv/Makefile @@ -6,10 +6,10 @@ # PORTNAME= bsdconv -PORTVERSION= 3.3 +PORTVERSION= 3.5 CATEGORIES= converters MASTER_SITES= http://security-hole.info/distfile/ -DISTNAME= buganini-bsdconv-a500cb452f12d583fd545dc901dfca89c84b987e +DISTNAME= buganini-bsdconv-c14ef1b MAINTAINER= buganini@gmail.com COMMENT= BSD licensed charset/encoding converter library @@ -18,4 +18,10 @@ USE_LDCONFIG= yes MAKE_ARGS= PREFIX=${PREFIX} -.include +.include + +#.if ${OSVERSION} < 701101 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-strndup +#.endif + +.include diff --git a/converters/bsdconv/distinfo b/converters/bsdconv/distinfo index 7102d896caf6..fdf674089c38 100644 --- a/converters/bsdconv/distinfo +++ b/converters/bsdconv/distinfo @@ -1,3 +1,3 @@ -MD5 (buganini-bsdconv-a500cb452f12d583fd545dc901dfca89c84b987e.tar.gz) = 541131dae83d8b5304912b5a62307ecc -SHA256 (buganini-bsdconv-a500cb452f12d583fd545dc901dfca89c84b987e.tar.gz) = 4e1a1c80aaf6da7051474ffa79e969dd13f4970ef225bf82d573dd18da62824d -SIZE (buganini-bsdconv-a500cb452f12d583fd545dc901dfca89c84b987e.tar.gz) = 995454 +MD5 (buganini-bsdconv-c14ef1b.tar.gz) = 2a17209dee54f03a0df5c6f465555a8d +SHA256 (buganini-bsdconv-c14ef1b.tar.gz) = 06119b773c1c9e6b1f48cd12ab568d0f3eab255544581c18a83aa98d39d2157c +SIZE (buganini-bsdconv-c14ef1b.tar.gz) = 1824149 diff --git a/converters/bsdconv/files/extra-patch-strndup b/converters/bsdconv/files/extra-patch-strndup new file mode 100644 index 000000000000..d0d6aa261950 --- /dev/null +++ b/converters/bsdconv/files/extra-patch-strndup @@ -0,0 +1,25 @@ +--- src/bsdconv_func.c.orig 2009-10-11 19:26:58.000000000 +0800 ++++ src/bsdconv_func.c 2009-10-14 21:30:50.000000000 +0800 +@@ -25,6 +25,7 @@ + #endif + #include + #include "bsdconv.h" ++#include + + int loadcodec(struct bsdconv_codec_t *cd, char *path, int maponly){ + #ifdef WIN32 +@@ -138,3 +139,14 @@ + return r; + } + #endif ++ ++char * strndup(const char *str, size_t len){ ++ size_t l=strlen(str); ++ char *r; ++ if(len