svn commit: r453109 - head/shells/bash
Emanuel Haupt
ehaupt at FreeBSD.org
Sun Oct 29 11:37:08 UTC 2017
Author: ehaupt
Date: Sun Oct 29 11:37:06 2017
New Revision: 453109
URL: https://svnweb.freebsd.org/changeset/ports/453109
Log:
Provide an option to enable system-wide rc files.
This enables:
- System-wide .bashrc file for interactive shells
${PREFIX}/etc/bash.bashrc
- System-wide .bash_logout for login shells
${PREFIX}/etc/bash.bash_logout
PR: 222973
Submitted by: ilyushkeane at gmail.com
Modified:
head/shells/bash/Makefile
Modified: head/shells/bash/Makefile
==============================================================================
--- head/shells/bash/Makefile Sun Oct 29 11:36:56 2017 (r453108)
+++ head/shells/bash/Makefile Sun Oct 29 11:37:06 2017 (r453109)
@@ -4,7 +4,7 @@
PORTNAME= bash
PATCHLEVEL= 12
PORTVERSION= 4.4.${PATCHLEVEL:S/^0//g}
-PORTREVISION?= 2
+PORTREVISION?= 3
CATEGORIES= shells
MASTER_SITES= GNU/${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
@@ -22,10 +22,11 @@ COMMENT= GNU Project's Bourne Again SHell
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-OPTIONS_DEFINE= COLONBREAKSWORDS FDESCFS HELP NLS STATIC SYSLOG DOCS
+OPTIONS_DEFINE= COLONBREAKSWORDS FDESCFS HELP NLS STATIC SYSBASHRC SYSLOG DOCS
COLONBREAKSWORDS_DESC= Colons break words
FDESCFS_DESC= Enable use of /dev/fd
HELP_DESC= Enable builtin help
+SYSBASHRC_DESC= Enable system-wide rc files
OPTIONS_DEFAULT= COLONBREAKSWORDS HELP
@@ -83,6 +84,11 @@ post-patch:
-e "s|/\*.*#define SYSLOG_HISTORY .*\*/|#define SYSLOG_HISTORY|g" \
${WRKSRC}/config-top.h
.endif
+
+post-patch-SYSBASHRC-on:
+ @${REINPLACE_CMD} \
+ -e "s|.*\(#define SYS_BASH.*\)\(/etc/.*\"\).*|\1${PREFIX}\2|" \
+ ${WRKSRC}/config-top.h
post-configure:
@${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
More information about the svn-ports-head
mailing list