Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,16 +1,17 @@
# $NetBSD: Makefile,v 1.84 2013/07/15 02:02:28 ryoon Exp $
# $NetBSD: Makefile,v 1.89 2015/03/13 17:25:52 tnn Exp $
#
DISTNAME= bash-2.05b
PKGNAME= bash-2.05.2.7
PKGREVISION= 11
PKGNAME= bash-2.05.2.13
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
ftp://ftp.cwru.edu/pub/bash/
PATCH_SITES= ${MASTER_SITES:=bash-2.05b-patches/}
PATCHFILES= bash205b-001 bash205b-002 bash205b-003 bash205b-004 \
bash205b-005 bash205b-006 bash205b-007
bash205b-005 bash205b-006 bash205b-007 bash205b-008 \
bash205b-009 bash205b-010 bash205b-011 bash205b-012 \
bash205b-013
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/bash/bash.html
@@ -18,10 +19,9 @@ COMMENT= The GNU Bourne Again Shell (version 2)
CONFLICTS= static-bash-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-installed-readline
USE_TOOLS+= yacc
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/usr/bin:/bin:${LOCALBASE}/bin:/usr/local/bin\""
TEST_TARGET= test

View File

@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.15 2005/12/19 00:28:02 joerg Exp $
$NetBSD: distinfo,v 1.18 2014/10/25 14:09:19 ryoon Exp $
SHA1 (bash-2.05b.tar.gz) = b3e158877f94e66ec1c8ef604e994851ee388b09
RMD160 (bash-2.05b.tar.gz) = d9826db03c5d38e6175af5b3ef0bc07fafa14add
@@ -24,6 +24,24 @@ Size (bash205b-006) = 3155 bytes
SHA1 (bash205b-007) = 758301e500c23779da9236c5cd3f6612d29d5f7b
RMD160 (bash205b-007) = 78c333ebfd8958d7c39b14620dddddbe78310f4f
Size (bash205b-007) = 1072 bytes
SHA1 (bash205b-008) = c5376d02ae4e93544d8e5fe14c3714fb2d5cde8e
RMD160 (bash205b-008) = 0f9cf3f990d58973ad8f1a15e5c9e506e1fe18fd
Size (bash205b-008) = 2824 bytes
SHA1 (bash205b-009) = 360353009fc018be5d5b61699b71c84ebf2f1d2d
RMD160 (bash205b-009) = 55fe8fcdaea560f3b1834e17166c2bbff04eaa18
Size (bash205b-009) = 713 bytes
SHA1 (bash205b-010) = e4f5c6100bbd1846a20c5a063c8f9058a164881b
RMD160 (bash205b-010) = 356cc30604226c370afcd788439ba917a07b0532
Size (bash205b-010) = 6267 bytes
SHA1 (bash205b-011) = a4c5daadd4778d599c8a385f732dd29aec6b89d1
RMD160 (bash205b-011) = 07b341f60d6847211c1c6216a105608ca3c28a44
Size (bash205b-011) = 3223 bytes
SHA1 (bash205b-012) = 965c1e6fa129e7f625ca4d2544ebbd2bdc71acd7
RMD160 (bash205b-012) = 025aa71300a651f189a68f427d15298f727f1756
Size (bash205b-012) = 1377 bytes
SHA1 (bash205b-013) = a76e1f2606dde23616f19cdf1f634bd6b650d38d
RMD160 (bash205b-013) = a0120eba484a91b9ebd754ad49f820d861481fa2
Size (bash205b-013) = 2779 bytes
SHA1 (patch-aa) = f6f5eb9b70e609164b35c57de70a1c404c7f52ba
SHA1 (patch-ab) = 1a2fc87648b7e73a4987454bb249149ae15bed93
SHA1 (patch-ac) = 7f68d80de74a887fe0c3f42e9fb5d7e6ad311c30
@@ -35,3 +53,5 @@ SHA1 (patch-ah) = 00732b402fc0479e153d3f5b24ea8151a3d42dc0
SHA1 (patch-ai) = db34e25bef3572d2bf198216e8c2aebb98362925
SHA1 (patch-aj) = c5c541a5e3c06127ccbc8a560e3ea97fbf77ef4f
SHA1 (patch-ak) = b76eadbf6ced8c1b98454eb3579345ff8739ccb5
SHA1 (patch-shell.c) = 151446e30fcaa395cd326552e72d1810d5f01671
SHA1 (patch-variables.c) = e7638f06ad8577aa3ab015469d86ed110e05872b

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-shell.c,v 1.1 2014/09/27 03:00:06 christos Exp $
Add flag to disable importing of function unless explicitly enabled
--- shell.c.orig 2002-07-01 11:27:11.000000000 -0400
+++ shell.c 2014-09-26 22:52:27.000000000 -0400
@@ -197,6 +197,7 @@
int dump_translatable_strings; /* Dump strings in $"...", don't execute. */
int dump_po_strings; /* Dump strings in $"..." in po format */
int wordexp_only = 0; /* Do word expansion only */
+int import_functions = 0; /* Import functions from environment */
/* Some long-winded argument names. These are obviously new. */
#define Int 1
@@ -213,6 +214,7 @@
{ "help", Int, &want_initial_help, (char **)0x0 },
{ "init-file", Charp, (int *)0x0, &bashrc_file },
{ "login", Int, &make_login_shell, (char **)0x0 },
+ { "import-functions", Int, &import_functions, (char **)0x0 },
{ "noediting", Int, &no_line_editing, (char **)0x0 },
{ "noprofile", Int, &no_profile, (char **)0x0 },
{ "norc", Int, &no_rc, (char **)0x0 },

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-variables.c,v 1.2 2014/09/30 18:27:40 christos Exp $
Only read functions from environment if flag is set.
--- variables.c.orig 2014-09-30 14:22:56.000000000 -0400
+++ variables.c 2014-09-30 14:23:31.000000000 -0400
@@ -87,6 +87,7 @@
extern SHELL_VAR *this_shell_function;
extern char *this_command_name;
extern time_t shell_start_time;
+extern int import_functions;
/* The list of shell variables that the user has created at the global
scope, or that came from the environment. */
@@ -265,7 +266,7 @@
/* If exported function, define it now. Don't import functions from
the environment in privileged mode. */
- if (privmode == 0 && read_but_dont_execute == 0 &&
+ if (import_functions && privmode == 0 && read_but_dont_execute == 0 &&
STREQN (BASHFUNC_PREFIX, name, BASHFUNC_PREFLEN) &&
STREQ (BASHFUNC_SUFFIX, name + char_index - BASHFUNC_SUFFLEN) &&
STREQN ("() {", string, 4))