Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+5 -3
View File
@@ -1,11 +1,13 @@
# $NetBSD: Makefile,v 1.64 2013/12/13 16:27:34 schnoebe Exp $
# $NetBSD: Makefile,v 1.70 2015/03/26 15:57:34 joerg Exp $
PKGNAME= amanda-common-${AMANDA_VERSION}
PKGREVISION= 5
SVR4_PKGNAME= amaco
PKGREVISION= 7
COMMENT= Common libraries and binaries for Amanda
# genversion.c:37:10: fatal error: 'genversion.h' file not found
MAKE_JOBS_SAFE= no
.include "../../sysutils/amanda-common/Makefile.common"
CPPFLAGS.SunOS+= -D_LARGEFILE64_SOURCE
+9 -1
View File
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.38 2013/01/23 17:58:19 wiz Exp $
# $NetBSD: Makefile.common,v 1.40 2014/09/25 21:47:06 jperkin Exp $
# used by sysutils/amanda-common/Makefile
# used by sysutils/amanda-client/Makefile
@@ -52,6 +52,12 @@ BUILD_DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools
PERL5_CONFIGURE= no
AUTO_MKDIRS= yes
SUBST_CLASSES+= bool
SUBST_MESSAGE.bool= Fix SWIG messing with stdbool.h.
SUBST_STAGE.bool= post-patch
SUBST_FILES.bool= perl/Amanda/*.c perl/Amanda/*/*.c
SUBST_SED.bool= -e '/undef bool/d'
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_path_GZIP=${TOOLS_GZIP_CMD:Q}
CONFIGURE_ENV+= GNUTAR=${TOOLS_GTAR:Q}
@@ -74,6 +80,8 @@ CONFIGURE_ARGS+= --with-bsdudp-security
CONFIGURE_ARGS+= --with-dump-honor-nodump
CONFIGURE_ARGS+= --disable-installperms
LDFLAGS.SunOS+= -lsocket
INSTALL_MAKE_FLAGS+= SETUID_GROUP=${ROOT_GROUP}
AMPERLDIR= ${PERLDIR:Q}/${PERL5_SUB_INSTALLVENDORLIB}
+7 -7
View File
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.7 2012/07/30 07:21:11 sbd Exp $
@comment $NetBSD: PLIST,v 1.8 2015/02/09 18:35:12 gdt Exp $
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/Archive.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/BigIntCompat.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/ClientService.pm
@@ -11,7 +11,7 @@ ${PERL5_SUB_INSTALLVENDORLIB}/Amanda/Header.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/IPC/Binary.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/IPC/LineProtocol.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/MainLoop.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/NDMP.pm
${PLIST.ndmp}${PERL5_SUB_INSTALLVENDORLIB}/Amanda/NDMP.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/Paths.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/Process.pm
${PERL5_SUB_INSTALLVENDORLIB}/Amanda/Script.pm
@@ -26,7 +26,7 @@ ${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/Feature/libFeature.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/Header/libHeader.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/IPC/Binary/libBinary.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/MainLoop/libMainLoop.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/NDMP/libNDMP.la
${PLIST.ndmp}${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/NDMP/libNDMP.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/Tests/libTests.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/Util/libUtil.la
${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/Xfer/libXfer.la
@@ -35,11 +35,11 @@ lib/amanda/libamandad.la
lib/amanda/libamar.la
lib/amanda/libamglue.la
lib/amanda/libamxfer.la
lib/amanda/libndmjob.la
lib/amanda/libndmlib.la
${PLIST.ndmp}lib/amanda/libndmjob.la
${PLIST.ndmp}lib/amanda/libndmlib.la
libexec/amanda/amanda-sh-lib.sh
libexec/amanda/amndmjob
libexec/amanda/ndmjob
${PLIST.ndmp}libexec/amanda/amndmjob
${PLIST.ndmp}libexec/amanda/ndmjob
man/man5/amanda-archive-format.5
man/man5/amanda-client.conf.5
man/man5/amanda.conf.5
+7 -1
View File
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.14 2014/01/06 22:15:06 joerg Exp $
$NetBSD: distinfo,v 1.17 2015/03/30 01:14:22 gdt Exp $
SHA1 (amanda-3.3.1.tar.gz) = 22273381f61319e46e1da9d7029ca2b3991eee98
RMD160 (amanda-3.3.1.tar.gz) = 0d66ad25fd905901a1afd3651bd6c1e00db9af8d
@@ -15,10 +15,16 @@ SHA1 (patch-common-src_glib-util.h) = 6d5b14acd7a44b17a52ebc697f5354db2a4b04f9
SHA1 (patch-common-src_security-util.h) = c628cc19a624da2cfabdb7d488bc2cd2d4b955a4
SHA1 (patch-config_amanda_dumpers.m4) = 3d0cf6133b003de53e05929d2ce04eaa0f614819
SHA1 (patch-config_amanda_krb5-security.m4) = c82af0e106e49b59994b40f12ed5b1c165a8497f
SHA1 (patch-config_amanda_tape.m4) = ac8da578326756eeadd935bdeddb202ea990c006
SHA1 (patch-config_macro-archive_xsltproc.m4) = 20324db1ce3db016fa89fe39df5a8133c7766693
SHA1 (patch-device-src_Makefile.am) = 29fd554033ff0ff7b1d98a08306f157ced7324c5
SHA1 (patch-device-src_device.c) = 31cb823dcce0f7f3d9de8f9def1a0f025ab10876
SHA1 (patch-example_Makefile.am) = 8d2dac1abdc473fbf94489bcb620a42a665fd27a
SHA1 (patch-ndmp-src_ndmp2__xdr.c) = 9ae6d78c2192ece83a1aa141cb04c9761969ca5b
SHA1 (patch-ndmp-src_ndmp3__xdr.c) = a080c7337ede4fe75f9735fb3355d0aa16b0af6c
SHA1 (patch-ndmp-src_ndmp4__xdr.c) = 339b0d539754127446acf6456fb385f00b1fbcc3
SHA1 (patch-oldrecover-src_Makefile.am) = 9127c1523937da3955662cc0b0921d05bca75248
SHA1 (patch-perl_Amanda_Report_human.pm) = 3f23c333e5892b13915267a646837b8118d50128
SHA1 (patch-perl_Amanda_Xfer.pm) = 7389672ce0ed08d8b5f6548a6bb466ef4e18ab1d
SHA1 (patch-perl_Makefile.am) = 7b09e5cc30c9b441dae03b06bef5c757c93ff9f7
SHA1 (patch-perl_amglue_Makefile.am) = 051e456a5d34dd19a11ccd45c32f078e72d16e6f
+15 -3
View File
@@ -1,9 +1,9 @@
# $NetBSD: options.mk,v 1.10 2013/12/13 12:42:12 jperkin Exp $
# $NetBSD: options.mk,v 1.11 2015/02/09 18:35:12 gdt Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.amanda
# Common options.
PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos
PKG_SUGGESTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos
PKG_SUPPORTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh kerberos ndmp
PKG_SUGGESTED_OPTIONS+= inet6 amanda-fqdn amanda-ssh
# Client options.
PKG_SUPPORTED_OPTIONS+= amanda-smb amanda-dump-snap
PKG_SUGGESTED_OPTIONS+= amanda-dump-snap
@@ -43,3 +43,15 @@ USE_BUILTIN.mit-krb5= no
CONFIGURE_ARGS+= --with-krb5-security=${KRB5BASE:Q}
. include "../../mk/krb5.buildlink3.mk"
.endif
# The ndmp code fails to build on OS X >= 10.9, and upstream questions why
# it is enabled. So it is a disabled-by-default option.
# http://www.redhat.com/archives/libvir-list/2013-October/msg01153.html
PLIST_VARS+= ndmp
CONFIGURE_ARGS+= --without-ndmp
.if !empty(PKG_OPTIONS:Mndmp)
CONFIGURE_ARGS+= --with-ndmp
PLIST.ndmp= yes
.else
CONFIGURE_ARGS+= --without-ndmp
.endif
@@ -0,0 +1,49 @@
$NetBSD: patch-config_amanda_tape.m4,v 1.1 2015/03/27 23:45:29 gdt Exp $
This patch is from upstream. It resolves a failure to compile in tape
support; without including sys/types.h and sys/time.h, sys/tape.h
generates an error on NetBSD.
--- config/amanda/tape.m4.orig 2012-02-21 11:36:49.000000000 +0000
+++ config/amanda/tape.m4
@@ -34,6 +34,10 @@ AC_DEFUN([AMANDA_TAPE_DEVICE], [
# check for MTIOCTOP, an indicator of POSIX tape support
AC_CACHE_CHECK([for MTIOCTOP], amanda_cv_HAVE_MTIOCTOP,[
AC_TRY_COMPILE([
+#include <sys/types.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# endif
#ifdef HAVE_SYS_TAPE_H
# include <sys/tape.h>
#endif
@@ -66,6 +70,9 @@ AC_DEFUN([AMANDA_TAPE_DEVICE], [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
#include <sys/mtio.h>
]], [[
struct mtget buf;
@@ -85,6 +92,9 @@ AC_DEFUN([AMANDA_TAPE_DEVICE], [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
#include <sys/mtio.h>
]], [[
struct mtget buf;
@@ -139,6 +149,9 @@ AC_DEFUN([AMANDA_TAPE_DEVICE], [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
#include <sys/mtio.h>
]], [[
struct mtget buf;
@@ -0,0 +1,27 @@
$NetBSD: patch-device-src_device.c,v 1.1 2015/03/27 23:45:29 gdt Exp $
This patch is from upstream, to improve error reporting when amanda is
configured without tape drive support and one tries to use a tape.
--- device-src/device.c.orig 2012-02-21 11:36:44.000000000 +0000
+++ device-src/device.c
@@ -423,17 +423,13 @@ handle_device_regex(const char * user_na
regfree(&regex);
return FALSE;
} else if (reg_result == REG_NOMATCH) {
+ *driver_name = stralloc("tape");
+ *device = stralloc(user_name);
#ifdef WANT_TAPE_DEVICE
g_warning(
"\"%s\" uses deprecated device naming convention; \n"
"using \"tape:%s\" instead.\n",
user_name, user_name);
- *driver_name = stralloc("tape");
- *device = stralloc(user_name);
-#else /* !WANT_TAPE_DEVICE */
- *errmsg = newvstrallocf(*errmsg, "\"%s\" is not a valid device name.\n", user_name);
- regfree(&regex);
- return FALSE;
#endif /* WANT_TAPE_DEVICE */
} else {
*driver_name = find_regex_substring(user_name, pmatch[1]);
@@ -0,0 +1,21 @@
$NetBSD: patch-ndmp-src_ndmp2__xdr.c,v 1.1 2014/07/28 15:53:44 jperkin Exp $
Compat for SunOS 64-bit.
--- ndmp-src/ndmp2_xdr.c.orig 2012-02-21 11:38:58.000000000 +0000
+++ ndmp-src/ndmp2_xdr.c
@@ -3,6 +3,14 @@
* It was generated using rpcgen.
*/
+#ifdef __sun
+#ifndef IXDR_PUT_U_LONG
+#define IXDR_PUT_U_LONG IXDR_PUT_U_INT32
+#endif
+#ifndef IXDR_GET_U_LONG
+#define IXDR_GET_U_LONG IXDR_GET_U_INT32
+#endif
+#endif
#include "ndmp2.h"
#ifndef NDMOS_OPTION_NO_NDMP2
#define ndmp2_u_quad unsigned long long
@@ -0,0 +1,21 @@
$NetBSD: patch-ndmp-src_ndmp3__xdr.c,v 1.1 2014/07/28 15:53:44 jperkin Exp $
Compat for SunOS 64-bit.
--- ndmp-src/ndmp3_xdr.c.orig 2012-02-21 11:38:58.000000000 +0000
+++ ndmp-src/ndmp3_xdr.c
@@ -3,6 +3,14 @@
* It was generated using rpcgen.
*/
+#ifdef __sun
+#ifndef IXDR_PUT_U_LONG
+#define IXDR_PUT_U_LONG IXDR_PUT_U_INT32
+#endif
+#ifndef IXDR_GET_U_LONG
+#define IXDR_GET_U_LONG IXDR_GET_U_INT32
+#endif
+#endif
#include "ndmp3.h"
#ifndef NDMOS_OPTION_NO_NDMP3
#define ndmp3_u_quad unsigned long long
@@ -0,0 +1,21 @@
$NetBSD: patch-ndmp-src_ndmp4__xdr.c,v 1.1 2014/07/28 15:53:44 jperkin Exp $
Compat for SunOS 64-bit.
--- ndmp-src/ndmp4_xdr.c.orig 2012-02-21 11:38:58.000000000 +0000
+++ ndmp-src/ndmp4_xdr.c
@@ -3,6 +3,14 @@
* It was generated using rpcgen.
*/
+#ifdef __sun
+#ifndef IXDR_PUT_U_LONG
+#define IXDR_PUT_U_LONG IXDR_PUT_U_INT32
+#endif
+#ifndef IXDR_GET_U_LONG
+#define IXDR_GET_U_LONG IXDR_GET_U_INT32
+#endif
+#endif
#include "ndmp4.h"
#ifndef NDMOS_OPTION_NO_NDMP4
#define ndmp4_u_quad unsigned long long
@@ -0,0 +1,21 @@
$NetBSD: patch-perl_Amanda_Report_human.pm,v 1.1 2015/03/27 23:45:29 gdt Exp $
On NetBSD 5 amd64, perl coredumps because of this call (or some
component of it), leading to not getting a report. For now, comment
it out to get most of the report. This has not yet been reported
upstream.
--- perl/Amanda/Report/human.pm.orig 2012-02-21 11:36:47.000000000 +0000
+++ perl/Amanda/Report/human.pm
@@ -319,7 +319,10 @@ sub print_human_amreport
$self->calculate_stats();
## print the basic info header
- $self->print_header();
+ # The next line crashes perl 5.20 on NetBSD 5 amd64. Hence it is
+ # commented out as reports without the header are better than no
+ # reports.
+ #$self->print_header();
## print out statements about past and predicted tape usage
$self->output_tapeinfo();