diff options
-rw-r--r-- | x11/xdg-user-dirs/Makefile | 4 | ||||
-rw-r--r-- | x11/xdg-user-dirs/distinfo | 3 | ||||
-rw-r--r-- | x11/xdg-user-dirs/patches/patch-xdg-user-dirs-update.c | 31 |
3 files changed, 35 insertions, 3 deletions
diff --git a/x11/xdg-user-dirs/Makefile b/x11/xdg-user-dirs/Makefile index c3bc479a908..0cedfe1ee1d 100644 --- a/x11/xdg-user-dirs/Makefile +++ b/x11/xdg-user-dirs/Makefile @@ -1,5 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2012/10/29 05:07:01 asau Exp $ -# +# $NetBSD: Makefile,v 1.6 2015/06/17 17:31:38 tron Exp $ DISTNAME= xdg-user-dirs-0.10 PKGREVISION= 1 @@ -9,6 +8,7 @@ MASTER_SITES= http://user-dirs.freedesktop.org/releases/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.freedesktop.org/wiki/Software/xdg-user-dirs COMMENT= Tool to manage "well known" user directories +LICENSE= gnu-gpl-v2 GNU_CONFIGURE= yes USE_PKGLOCALEDIR= yes diff --git a/x11/xdg-user-dirs/distinfo b/x11/xdg-user-dirs/distinfo index bd6425692e0..2113f24d24d 100644 --- a/x11/xdg-user-dirs/distinfo +++ b/x11/xdg-user-dirs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $ +$NetBSD: distinfo,v 1.2 2015/06/17 17:31:38 tron Exp $ SHA1 (xdg-user-dirs-0.10.tar.gz) = 824ab2ccdbea30d4cdc29bbec3b80250297e363b RMD160 (xdg-user-dirs-0.10.tar.gz) = 6069cff49918dc0393bc86bde1a95268e8c6de51 @@ -6,3 +6,4 @@ Size (xdg-user-dirs-0.10.tar.gz) = 242835 bytes SHA1 (patch-aa) = 133a075c749ec27c46688c0ff9894d3689ea6d80 SHA1 (patch-ab) = 2a699ce58d526684c53c0e989b95de588908e324 SHA1 (patch-ac) = da06f94f98f6d9ad8fb219c0d6708868b9975821 +SHA1 (patch-xdg-user-dirs-update.c) = c08fe39ab65ba7704aefc9c1530ccebf11e06ad7 diff --git a/x11/xdg-user-dirs/patches/patch-xdg-user-dirs-update.c b/x11/xdg-user-dirs/patches/patch-xdg-user-dirs-update.c new file mode 100644 index 00000000000..07e993a6801 --- /dev/null +++ b/x11/xdg-user-dirs/patches/patch-xdg-user-dirs-update.c @@ -0,0 +1,31 @@ +$NetBSD: patch-xdg-user-dirs-update.c,v 1.1 2015/06/17 17:31:38 tron Exp $ + +Fix build under Solaris 10. + +--- xdg-user-dirs-update.c.orig 2007-08-20 09:12:20.000000000 +0100 ++++ xdg-user-dirs-update.c 2015-06-17 13:18:17.000000000 +0100 +@@ -328,6 +328,24 @@ + } + } + ++#ifdef __sun__ ++static char * ++my_strndup(const char *s, size_t n) ++{ ++ char *p; ++ ++ p = malloc(n + 1); ++ if (p) ++ { ++ strncpy(p, s, n); ++ p[n] = '\0'; ++ } ++ return p; ++} ++ ++#define strndup my_strndup ++#endif ++ + static char ** + parse_colon_separated_dirs (const char *dirs) + { |