View | Details | Raw Unified | Return to bug 253783
Collapse All | Expand All

(-)shells/Makefile (+1 lines)
Lines 11-16 Link Here
11
    SUBDIR += bash
11
    SUBDIR += bash
12
    SUBDIR += bash-completion
12
    SUBDIR += bash-completion
13
    SUBDIR += bash-static
13
    SUBDIR += bash-static
14
    SUBDIR += bashc
14
    SUBDIR += bicon
15
    SUBDIR += bicon
15
    SUBDIR += ch
16
    SUBDIR += ch
16
    SUBDIR += dash
17
    SUBDIR += dash
(-)shells/bashc/Makefile (+103 lines)
Line 0 Link Here
1
# Created by: Igor Pokrovsky <ip@unixway.org>
2
# $FreeBSD$
3
4
PORTNAME=	bashc
5
PORTVERSION=	5.0.9
6
CATEGORIES=	shells
7
8
MAINTAINER=	ip@unixway.org
9
COMMENT=	GNU Bourne Again shell extended with two-panel file manager
10
11
LICENSE=	GPLv3
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
14
USES=		bison cpe gmake iconv localbase makeinfo pathfix
15
GNU_CONFIGURE=	yes
16
OPTIONS_SUB=	yes
17
CPE_VENDOR=	gnu
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	sergev
21
GH_PROJECT=	bash-commander
22
GH_TAGNAME=	f707afab3e299d9b9e557923d355e14d2fe1291a
23
24
OPTIONS_DEFINE=	DOCS FDESCFS HELP NLS STATIC SYSBASHRC SYSLOG
25
FDESCFS_DESC=	Enable use of /dev/fd
26
HELP_DESC=	Enable builtin help
27
SYSBASHRC_DESC=	Enable system-wide rc files
28
29
OPTIONS_DEFAULT=	HELP
30
31
FDESCFS_CONFIGURE_ENV_OFF=	bash_cv_dev_fd=absent
32
33
HELP_CONFIGURE_ENABLE=	help-builtin
34
NLS_CONFIGURE_ENABLE=	nls
35
NLS_USES=		gettext
36
37
INFO=		bash
38
39
PORTDOCS=	CHANGES COMPAT FAQ INTRO NEWS POSIX RBASH README bash.html \
40
		bashref.html
41
DOCSDIR=	${PREFIX}/share/doc/bash
42
SUB_FILES=	pkg-message
43
44
CONFIGURE_ARGS+=	--disable-rpath \
45
			--enable-disabled-builtins \
46
			--with-libiconv-prefix=${ICONV_PREFIX} \
47
			--without-bash-malloc
48
49
CONFLICTS+=	bash-[0-9]* bash-static-[0-9]*
50
51
.include <bsd.port.options.mk>
52
53
.if ${PORT_OPTIONS:MSTATIC} || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:tl} != "no")
54
CONFIGURE_ARGS+=	--enable-static-link
55
LLD_UNSAFE=		yes
56
.else
57
CONFIGURE_ARGS+=	--disable-static-link
58
# Bash symbols must be exported in order to link runtime plugins, i.e.,
59
# "enable -f". (Plugins are not supported for bash-static.)
60
LDFLAGS+=		-Wl,-export-dynamic
61
.endif
62
STANDARD_PATH=		/sbin:/bin:/usr/sbin:/usr/bin
63
CPPFLAGS+=		-DDEFAULT_PATH_VALUE='\"${STANDARD_PATH}:${LOCALBASE}/sbin:${LOCALBASE}/bin\"' \
64
			-DSTANDARD_UTILS_PATH='\"${STANDARD_PATH}\"'
65
66
post-patch:
67
# Ensure y.tab.c is regenerated
68
	${TOUCH} ${WRKSRC}/parse.y
69
	${RM} ${WRKSRC}/y.tab.c
70
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
71
.if ${PORT_OPTIONS:MSYSLOG}
72
	@${REINPLACE_CMD} \
73
	    -e "s|/\*.*#define SYSLOG_HISTORY .*\*/|#define SYSLOG_HISTORY|g" \
74
	    -e "s|/\*.*#define SYSLOG_SHOPT .*\*/|#define SYSLOG_SHOPT 1|g" \
75
	    ${WRKSRC}/config-top.h
76
.endif
77
78
post-patch-SYSBASHRC-on:
79
	@${REINPLACE_CMD} \
80
		-e "s|.*\(#define SYS_BASH.*\)\(/etc/.*\"\).*|\1${PREFIX}\2|" \
81
		${WRKSRC}/config-top.h
82
83
post-configure:
84
	@${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
85
		${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
86
87
pre-build:
88
	@${ECHO_CMD} $$((${PORTREVISION}-1)) > ${WRKSRC}/.build
89
90
post-install:
91
	${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/rbash
92
	${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/bash
93
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
94
	${INSTALL_DATA} ${WRKSRC}/doc/FAQ \
95
		${WRKSRC}/doc/INTRO ${STAGEDIR}${DOCSDIR}
96
	for d in ${PORTDOCS:NFAQ:NINTRO:N*html}; do \
97
		${INSTALL_DATA} ${WRKSRC}/$${d} ${STAGEDIR}${DOCSDIR}; \
98
	done
99
100
regress: build
101
	cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test
102
103
.include <bsd.port.mk>
(-)shells/bashc/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1613744521
2
SHA256 (sergev-bash-commander-5.0.9-f707afab3e299d9b9e557923d355e14d2fe1291a_GH0.tar.gz) = a32b8770a9b68420baa4bb05dbe84120c12835ad28dc82f8ec745bbce6d2acb8
3
SIZE (sergev-bash-commander-5.0.9-f707afab3e299d9b9e557923d355e14d2fe1291a_GH0.tar.gz) = 10112494
(-)shells/bashc/files/patch-Makefile.in (+13 lines)
Line 0 Link Here
1
--- Makefile.in.orig	2021-02-19 17:35:54 UTC
2
+++ Makefile.in
3
@@ -774,8 +774,8 @@ pathnames.h:		Makefile $(srcdir)/pathnames.h.in
4
 	@${RM} pathnames.tmp
5
 
6
 # comment out for distribution
7
-#$(srcdir)/configure:	$(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/config.h.in
8
-#	cd $(srcdir) && autoconf
9
+$(srcdir)/configure:	$(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/config.h.in
10
+	cd $(srcdir) && autoconf
11
 
12
 # for chet
13
 reconfig: force
(-)shells/bashc/files/patch-config-top.h (+11 lines)
Line 0 Link Here
1
--- config-top.h.orig	2019-08-29 22:16:15 UTC
2
+++ config-top.h
3
@@ -78,7 +78,7 @@
4
 #endif
5
 
6
 /* Default primary and secondary prompt strings. */
7
-#define PPROMPT "\\s-\\v\\$ "
8
+#define PPROMPT "[\\u@\\h \\w]\\$ "
9
 #define SPROMPT "> "
10
 
11
 /* Undefine this if you don't want the ksh-compatible behavior of reprinting
(-)shells/bashc/files/patch-doc_bash.1 (+32 lines)
Line 0 Link Here
1
--- doc/bash.1.orig	2019-08-29 22:16:15 UTC
2
+++ doc/bash.1
3
@@ -31,9 +31,9 @@
4
 .\" .ll \\n(LLu
5
 .\" .in \\n()Ru+\\n(INu+\\n()Iu
6
 .\" .ti \\n(INu
7
-.\" .ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X
8
+.\" .ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X
9
 .\" .br\}
10
-.\" .el \\*(]X\h|\\n()Iu+\\n()Ru\c
11
+.\" .el \\*(]X\h|\\n()Iu+\\n()Ru\c
12
 .\" .}f
13
 .\" ..
14
 .\"
15
@@ -2444,7 +2444,7 @@ The value of this parameter is expanded (see
16
 .SM
17
 .B PROMPTING
18
 below) and used as the primary prompt string.  The default value is
19
-``\fB\es\-\ev\e$ \fP''.
20
+``\fB\eu\@\eh\e$ \fP''.
21
 .TP
22
 .B PS2
23
 The value of this parameter is expanded as with
24
@@ -10880,7 +10880,7 @@ http://tiswww.case.edu/~chet/bash/POSIX -- a descripti
25
 .SH FILES
26
 .PD 0
27
 .TP
28
-.FN /bin/bash
29
+.FN /usr/local/bin/bash
30
 The \fBbash\fP executable
31
 .TP
32
 .FN /etc/profile
(-)shells/bashc/files/patch-doc_bashref.texi (+28 lines)
Line 0 Link Here
1
--- doc/bashref.texi.orig	2019-08-29 22:16:15 UTC
2
+++ doc/bashref.texi
3
@@ -1,6 +1,6 @@
4
 \input texinfo.tex @c -*- texinfo -*-
5
 @c %**start of header
6
-@setfilename bashref.info
7
+@setfilename bash.info
8
 @settitle Bash Reference Manual
9
 
10
 @include version.texi
11
@@ -8,7 +8,7 @@
12
 
13
 @copying
14
 This text is a brief description of the features that are present in
15
-the Bash shell (version @value{VERSION}, @value{UPDATED}).
16
+the Bash shell (version @value{VERSION}, @value{UPDATED})
17
 
18
 This is Edition @value{EDITION}, last updated @value{UPDATED},
19
 of @cite{The GNU Bash Reference Manual},
20
@@ -5598,7 +5598,7 @@ A null directory name may appear as two adjacent colon
21
 or trailing colon.
22
 
23
 @item PS1
24
-The primary prompt string.  The default value is @samp{\s-\v\$ }.
25
+The primary prompt string.  The default value is @samp{[\u@@\h \w]\$ }.
26
 @xref{Controlling the Prompt}, for the complete list of escape
27
 sequences that are expanded before @env{PS1} is displayed.
28
 
(-)shells/bashc/files/patch-lib_readline_display.c (+13 lines)
Line 0 Link Here
1
--- lib/readline/display.c.orig	2018-10-01 01:37:48 UTC
2
+++ lib/readline/display.c
3
@@ -837,7 +837,10 @@ rl_redisplay (void)
4
      the line breaks in the prompt string in expand_prompt, taking invisible
5
      characters into account, and if lpos exceeds the screen width, we copy
6
      the data in the loop below. */
7
+  if (local_prompt)
8
   lpos = prompt_physical_chars + modmark;
9
+  else
10
+    lpos = 0;
11
 
12
 #if defined (HANDLE_MULTIBYTE)
13
   memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
(-)shells/bashc/files/pkg-message.in (+15 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
By default, Bash Commander behaves exactly like traditional bash, so it's safe
5
to install it as a system-wide /bin/sh. File panels are enabled only in
6
interactive mode, when an environment variable COMMANDER is set.
7
It is recommended to add the following lines to your ~/.bashrc script:
8
9
declare -x EDITOR="le"
10
declare -x VIEWER="le --read-only"
11
. /usr/local/etc/bash_commander
12
13
EOM
14
}
15
]
(-)shells/bashc/pkg-descr (+5 lines)
Line 0 Link Here
1
Bash Commander is a fork of GNU Bourne Again Shell. It's main feature is a
2
visual two-panel mode, much like Midnight Commander and other text-mode
3
visual shells.
4
5
WWW: https://github.com/sergev/bash-commander
(-)shells/bashc/pkg-plist (+134 lines)
Line 0 Link Here
1
@shell bin/bash
2
@shell bin/bashc
3
@shell bin/rbash
4
bin/bashbug
5
etc/bash_commander
6
etc/bash_dialog
7
%%NO_STATIC%%include/bash/alias.h
8
%%NO_STATIC%%include/bash/array.h
9
%%NO_STATIC%%include/bash/arrayfunc.h
10
%%NO_STATIC%%include/bash/assoc.h
11
%%NO_STATIC%%include/bash/bashansi.h
12
%%NO_STATIC%%include/bash/bashintl.h
13
%%NO_STATIC%%include/bash/bashjmp.h
14
%%NO_STATIC%%include/bash/bashtypes.h
15
%%NO_STATIC%%include/bash/builtins.h
16
%%NO_STATIC%%include/bash/builtins/bashgetopt.h
17
%%NO_STATIC%%include/bash/builtins/builtext.h
18
%%NO_STATIC%%include/bash/builtins/common.h
19
%%NO_STATIC%%include/bash/builtins/getopt.h
20
%%NO_STATIC%%include/bash/command.h
21
%%NO_STATIC%%include/bash/config-bot.h
22
%%NO_STATIC%%include/bash/config-top.h
23
%%NO_STATIC%%include/bash/config.h
24
%%NO_STATIC%%include/bash/conftypes.h
25
%%NO_STATIC%%include/bash/dispose_cmd.h
26
%%NO_STATIC%%include/bash/error.h
27
%%NO_STATIC%%include/bash/externs.h
28
%%NO_STATIC%%include/bash/general.h
29
%%NO_STATIC%%include/bash/hashlib.h
30
%%NO_STATIC%%include/bash/include/ansi_stdlib.h
31
%%NO_STATIC%%include/bash/include/chartypes.h
32
%%NO_STATIC%%include/bash/include/filecntl.h
33
%%NO_STATIC%%include/bash/include/gettext.h
34
%%NO_STATIC%%include/bash/include/maxpath.h
35
%%NO_STATIC%%include/bash/include/memalloc.h
36
%%NO_STATIC%%include/bash/include/ocache.h
37
%%NO_STATIC%%include/bash/include/posixdir.h
38
%%NO_STATIC%%include/bash/include/posixjmp.h
39
%%NO_STATIC%%include/bash/include/posixstat.h
40
%%NO_STATIC%%include/bash/include/posixtime.h
41
%%NO_STATIC%%include/bash/include/posixwait.h
42
%%NO_STATIC%%include/bash/include/shmbchar.h
43
%%NO_STATIC%%include/bash/include/shmbutil.h
44
%%NO_STATIC%%include/bash/include/shtty.h
45
%%NO_STATIC%%include/bash/include/stat-time.h
46
%%NO_STATIC%%include/bash/include/stdc.h
47
%%NO_STATIC%%include/bash/include/systimes.h
48
%%NO_STATIC%%include/bash/include/typemax.h
49
%%NO_STATIC%%include/bash/include/unionwait.h
50
%%NO_STATIC%%include/bash/jobs.h
51
%%NO_STATIC%%include/bash/make_cmd.h
52
%%NO_STATIC%%include/bash/pathnames.h
53
%%NO_STATIC%%include/bash/quit.h
54
%%NO_STATIC%%include/bash/shell.h
55
%%NO_STATIC%%include/bash/sig.h
56
%%NO_STATIC%%include/bash/siglist.h
57
%%NO_STATIC%%include/bash/signames.h
58
%%NO_STATIC%%include/bash/subst.h
59
%%NO_STATIC%%include/bash/syntax.h
60
%%NO_STATIC%%include/bash/unwind_prot.h
61
%%NO_STATIC%%include/bash/variables.h
62
%%NO_STATIC%%include/bash/version.h
63
%%NO_STATIC%%include/bash/xmalloc.h
64
%%NO_STATIC%%include/bash/y.tab.h
65
%%NO_STATIC%%lib/bash/Makefile.inc
66
%%NO_STATIC%%lib/bash/basename
67
%%NO_STATIC%%lib/bash/dirname
68
%%NO_STATIC%%lib/bash/fdflags
69
%%NO_STATIC%%lib/bash/finfo
70
%%NO_STATIC%%lib/bash/head
71
%%NO_STATIC%%lib/bash/id
72
%%NO_STATIC%%lib/bash/ln
73
%%NO_STATIC%%lib/bash/loadables.h
74
%%NO_STATIC%%lib/bash/logname
75
%%NO_STATIC%%lib/bash/mkdir
76
%%NO_STATIC%%lib/bash/mypid
77
%%NO_STATIC%%lib/bash/pathchk
78
%%NO_STATIC%%lib/bash/print
79
%%NO_STATIC%%lib/bash/printenv
80
%%NO_STATIC%%lib/bash/push
81
%%NO_STATIC%%lib/bash/realpath
82
%%NO_STATIC%%lib/bash/rmdir
83
%%NO_STATIC%%lib/bash/seq
84
%%NO_STATIC%%lib/bash/setpgid
85
%%NO_STATIC%%lib/bash/sleep
86
%%NO_STATIC%%lib/bash/strftime
87
%%NO_STATIC%%lib/bash/sync
88
%%NO_STATIC%%lib/bash/tee
89
%%NO_STATIC%%lib/bash/truefalse
90
%%NO_STATIC%%lib/bash/tty
91
%%NO_STATIC%%lib/bash/uname
92
%%NO_STATIC%%lib/bash/unlink
93
%%NO_STATIC%%lib/bash/whoami
94
%%NO_STATIC%%libdata/pkgconfig/bash.pc
95
%%NLS%%share/locale/af/LC_MESSAGES/bash.mo
96
%%NLS%%share/locale/bg/LC_MESSAGES/bash.mo
97
%%NLS%%share/locale/ca/LC_MESSAGES/bash.mo
98
%%NLS%%share/locale/cs/LC_MESSAGES/bash.mo
99
%%NLS%%share/locale/da/LC_MESSAGES/bash.mo
100
%%NLS%%share/locale/de/LC_MESSAGES/bash.mo
101
%%NLS%%share/locale/el/LC_MESSAGES/bash.mo
102
%%NLS%%share/locale/en@boldquot/LC_MESSAGES/bash.mo
103
%%NLS%%share/locale/en@quot/LC_MESSAGES/bash.mo
104
%%NLS%%share/locale/eo/LC_MESSAGES/bash.mo
105
%%NLS%%share/locale/es/LC_MESSAGES/bash.mo
106
%%NLS%%share/locale/et/LC_MESSAGES/bash.mo
107
%%NLS%%share/locale/fi/LC_MESSAGES/bash.mo
108
%%NLS%%share/locale/fr/LC_MESSAGES/bash.mo
109
%%NLS%%share/locale/ga/LC_MESSAGES/bash.mo
110
%%NLS%%share/locale/gl/LC_MESSAGES/bash.mo
111
%%NLS%%share/locale/hr/LC_MESSAGES/bash.mo
112
%%NLS%%share/locale/hu/LC_MESSAGES/bash.mo
113
%%NLS%%share/locale/id/LC_MESSAGES/bash.mo
114
%%NLS%%share/locale/it/LC_MESSAGES/bash.mo
115
%%NLS%%share/locale/ja/LC_MESSAGES/bash.mo
116
%%NLS%%share/locale/lt/LC_MESSAGES/bash.mo
117
%%NLS%%share/locale/nb/LC_MESSAGES/bash.mo
118
%%NLS%%share/locale/nl/LC_MESSAGES/bash.mo
119
%%NLS%%share/locale/pl/LC_MESSAGES/bash.mo
120
%%NLS%%share/locale/pt/LC_MESSAGES/bash.mo
121
%%NLS%%share/locale/pt_BR/LC_MESSAGES/bash.mo
122
%%NLS%%share/locale/ro/LC_MESSAGES/bash.mo
123
%%NLS%%share/locale/ru/LC_MESSAGES/bash.mo
124
%%NLS%%share/locale/sk/LC_MESSAGES/bash.mo
125
%%NLS%%share/locale/sl/LC_MESSAGES/bash.mo
126
%%NLS%%share/locale/sr/LC_MESSAGES/bash.mo
127
%%NLS%%share/locale/sv/LC_MESSAGES/bash.mo
128
%%NLS%%share/locale/tr/LC_MESSAGES/bash.mo
129
%%NLS%%share/locale/uk/LC_MESSAGES/bash.mo
130
%%NLS%%share/locale/vi/LC_MESSAGES/bash.mo
131
%%NLS%%share/locale/zh_CN/LC_MESSAGES/bash.mo
132
%%NLS%%share/locale/zh_TW/LC_MESSAGES/bash.mo
133
man/man1/bash.1.gz
134
man/man1/bashbug.1.gz

Return to bug 253783