Explicitly warn about /etc/shells empowering the system administrator rather
then editing /etc/shells for them.
This commit is contained in:
parent
3fa68bfe66
commit
0d5fba6caa
@ -3,7 +3,7 @@
|
||||
# Date created: 17 November 1997
|
||||
# Whom: gene
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.3 1997/11/19 01:07:52 joey Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 1997/12/13 00:20:42 gene Exp $
|
||||
#
|
||||
|
||||
DISTNAME= bash-1.14.7
|
||||
@ -21,5 +21,11 @@ post-install:
|
||||
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
fi
|
||||
@install-info ${PREFIX}/info/bash.info ${PREFIX}/info/dir
|
||||
@$(ECHO) "Finished installing $(DISTNAME)"
|
||||
@$(ECHO) "To complete the install, you should notify the system"
|
||||
@$(ECHO) "that $(PREFIX)/bin/bash is a valid shell by adding it to"
|
||||
@$(ECHO) "/etc/shells."
|
||||
@$(ECHO) "If you are unfamiliar with this file, consult the shells(5)"
|
||||
@$(ECHO) "manual page."
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,4 @@
|
||||
bin/bash
|
||||
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
|
||||
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
|
||||
bin/bashbug
|
||||
man/man1/bash.1
|
||||
man/man1/bash_builtins.1
|
||||
@ -8,3 +6,4 @@ man/man1/bash_builtins.1
|
||||
info/bash.info
|
||||
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
@exec install-info %D/info/bash.info %D/info/dir
|
||||
@unexec echo "Don't forget to remove %D/bin/bash from /etc/shells"
|
||||
|
Loading…
Reference in New Issue
Block a user