Skip to content

Commit

Permalink
Teach the +SHELLS helper script to not create an /etc/shells file if
Browse files Browse the repository at this point in the history
one doesn't exist.  From now on, we only add the listed PKG_SHELL to
the /etc/shells file if it already exists.  This fixes PR pkg/27162.
  • Loading branch information
johnnylam88 committed Sep 20, 2005
1 parent fdb9b42 commit 5b62763
Show file tree
Hide file tree
Showing 20 changed files with 43 additions and 28 deletions.
4 changes: 2 additions & 2 deletions misc/screen/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.59 2005/08/01 11:36:29 cube Exp $
# $NetBSD: Makefile,v 1.60 2005/09/20 04:23:48 jlam Exp $

DISTNAME= screen-4.0.2
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= misc shells
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU:=screen/}
Expand Down
3 changes: 2 additions & 1 deletion mk/install/shell
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!@SH@
#
# $NetBSD: shell,v 1.3 2005/08/23 09:33:14 abs Exp $
# $NetBSD: shell,v 1.4 2005/09/20 04:23:49 jlam Exp $
#
# +SHELL - shell registration script
#
Expand Down Expand Up @@ -71,6 +71,7 @@ ADD)
${TEST} -f "$shell" || continue

shelldb="/etc/shells"
${TEST} -f "$shelldb" || continue
if ${TEST} -f "$shelldb" && \
${GREP} "^$shell" $shelldb >/dev/null; then
:
Expand Down
4 changes: 3 additions & 1 deletion shells/ast-ksh/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# $NetBSD: Makefile,v 1.11 2003/08/11 17:27:55 wiz Exp $
# $NetBSD: Makefile,v 1.12 2005/09/20 04:23:48 jlam Exp $
#
.include "Makefile.common"

PKGREVISION= 1

.include "../../mk/bsd.pkg.mk"
4 changes: 2 additions & 2 deletions shells/bash/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.11 2005/07/29 18:32:17 jlam Exp $
# $NetBSD: Makefile,v 1.12 2005/09/20 04:23:48 jlam Exp $

DISTNAME= bash-3.0
PKGNAME= bash-3.0pl16
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
ftp://ftp.cwru.edu/pub/bash/
Expand Down
4 changes: 2 additions & 2 deletions shells/bash2/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.65 2005/07/29 18:32:17 jlam Exp $
# $NetBSD: Makefile,v 1.66 2005/09/20 04:23:48 jlam Exp $
#

DISTNAME= bash-2.05b
PKGNAME= bash-2.05.2.7
PKGREVISION= 5
PKGREVISION= 6
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
ftp://ftp.cwru.edu/pub/bash/
Expand Down
4 changes: 2 additions & 2 deletions shells/es/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.15 2005/07/29 18:32:17 jlam Exp $
# $NetBSD: Makefile,v 1.16 2005/09/20 04:23:48 jlam Exp $

DISTNAME= es-0.9-alpha1
PKGNAME= es-0.9a1
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= shells
MASTER_SITES= ftp://ftp.sys.toronto.edu/pub/es/

Expand Down
3 changes: 2 additions & 1 deletion shells/esh/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.20 2005/07/29 18:32:17 jlam Exp $
# $NetBSD: Makefile,v 1.21 2005/09/20 04:23:48 jlam Exp $

DISTNAME= esh-0.8
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_BACKUP}

Expand Down
3 changes: 2 additions & 1 deletion shells/osh/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.12 2005/07/29 18:32:17 jlam Exp $
# $NetBSD: Makefile,v 1.13 2005/09/20 04:23:49 jlam Exp $

DISTNAME= osh-050131
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= http://jneitzel.sdf1.org/osh/src/

Expand Down
4 changes: 2 additions & 2 deletions shells/pdksh/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.9 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.10 2005/09/20 04:23:49 jlam Exp $
#

DISTNAME= pdksh-5.2.14
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= shells
MASTER_SITES= ftp://ftp.cs.mun.ca/pub/pdksh/ \
http://gd.tuwien.ac.at/utils/shells/pdksh/ \
Expand Down
4 changes: 2 additions & 2 deletions shells/perlsh/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.11 2005/08/06 06:19:31 jlam Exp $
# $NetBSD: Makefile,v 1.12 2005/09/20 04:23:49 jlam Exp $
# Cjep: Makefile,v 1.3 2003/04/20 16:21:44 cjep Exp

DISTNAME= psh-1.8
PKGNAME= perlsh-1.8
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= shells perl5
MASTER_SITES= http://www.gregorpurdy.com/gregor/psh/

Expand Down
3 changes: 2 additions & 1 deletion shells/posh/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.5 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.6 2005/09/20 04:23:49 jlam Exp $
#

DISTNAME= posh_0.3.14
PKGNAME= ${DISTNAME:S/_/-/}
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/p/posh/}

Expand Down
3 changes: 2 additions & 1 deletion shells/rc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.18 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.19 2005/09/20 04:23:49 jlam Exp $

DISTNAME= rc-1.6
PKGREVISION= 1
CATEGORIES= shells plan9
MASTER_SITES= http://www.star.le.ac.uk/%7Etjg/rc/release/

Expand Down
3 changes: 2 additions & 1 deletion shells/rssh/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.2 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.3 2005/09/20 04:23:49 jlam Exp $
#

DISTNAME= rssh-2.2.3
PKGREVISION= 1
CATEGORIES= shells security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rssh/}

Expand Down
4 changes: 2 additions & 2 deletions shells/scponly/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.5 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.6 2005/09/20 04:23:49 jlam Exp $

DISTNAME= scponly-4.0
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= shells security
MASTER_SITES= http://www.sublimation.org/scponly/
EXTRACT_SUFX= .tgz
Expand Down
3 changes: 2 additions & 1 deletion shells/scsh/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.31 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.32 2005/09/20 04:23:49 jlam Exp $

DISTNAME= scsh-0.6.6
PKGREVISION= 1
CATEGORIES= shells lang
MASTER_SITES= ftp://ftp.scsh.net/pub/scsh/0.6/

Expand Down
4 changes: 3 additions & 1 deletion shells/static-ast-ksh/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# $NetBSD: Makefile,v 1.4 2004/01/11 23:06:54 grant Exp $
# $NetBSD: Makefile,v 1.5 2005/09/20 04:23:49 jlam Exp $
#
.include "../../shells/ast-ksh/Makefile.common"

PKGREVISION= 1

CONFLICTS= ast-ksh-[0-9]* # Override.

DISTINFO_FILE= ${.CURDIR}/../../shells/ast-ksh/distinfo
Expand Down
3 changes: 2 additions & 1 deletion shells/tcsh/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.51 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.52 2005/09/20 04:23:49 jlam Exp $
#

DISTNAME= tcsh-6.14.00
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ \
ftp://ftp.gw.com/pub/unix/tcsh/ \
Expand Down
4 changes: 2 additions & 2 deletions shells/xsh/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.7 2005/08/06 06:19:31 jlam Exp $
# $NetBSD: Makefile,v 1.8 2005/09/20 04:23:49 jlam Exp $

DISTNAME= XML-XSH-1.8.2
PKGNAME= ${DISTNAME:S/XML-XSH/xsh/}
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xsh/}

Expand Down
4 changes: 3 additions & 1 deletion shells/zsh/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# $NetBSD: Makefile,v 1.48 2005/04/07 14:16:41 adam Exp $
# $NetBSD: Makefile,v 1.49 2005/09/20 04:23:49 jlam Exp $

.include "../../shells/zsh/Makefile.common"

PKGREVISION= 1

ZSH_VERSION= 4.2.5
ZSH_MAINTAINER= [email protected]

Expand Down
3 changes: 2 additions & 1 deletion shells/zsh3/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.14 2005/07/29 18:32:18 jlam Exp $
# $NetBSD: Makefile,v 1.15 2005/09/20 04:23:49 jlam Exp $
#

DISTNAME= zsh-3.0.8
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= ftp://ftp.rge.com/pub/shells/zsh/old/ \
ftp://sunsite.auc.dk/pub/unix/shells/zsh/old/ \
Expand Down

0 comments on commit 5b62763

Please sign in to comment.