* Separate out the shell registration into a separately unpacked script

+SHELL.

* Turn PKG_REGISTER_SHELLS into a variable that can be set in the shell
  environment so that admins can make a choice when installing from
  binary packages.

* PKG_SHELL is now a list of paths, and if the path is relative, then it
  is taken to be relative to ${PREFIX}.  Convert packages that set
  PKG_SHELL to take advantage of this new feature by changing the full
  paths to the shells into relative paths.
This commit is contained in:
jlam 2005-07-29 18:32:17 +00:00
parent 62b4b75d36
commit 9813468816
23 changed files with 294 additions and 67 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.pkginstall.mk,v 1.3 2005/07/27 04:55:43 jlam Exp $
# $NetBSD: bsd.pkginstall.mk,v 1.4 2005/07/29 18:32:18 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@ -399,6 +399,42 @@ ${INSTALL_DIRS_FILE}: ../../mk/install/dirs
) > ${.TARGET}.tmp; \
${MV} -f ${.TARGET}.tmp ${.TARGET}
# PKG_SHELL contains the pathname of the shell that should be added or
# removed from the shell database, /etc/shells. If the pathname
# is relative, then it is taken to be relative to ${PREFIX}.
#
PKG_SHELL?= # empty
INSTALL_SHELL_FILE= ${WRKDIR}/.install-shell
INSTALL_UNPACK_TMPL+= ${INSTALL_SHELL_FILE}
${INSTALL_SHELL_FILE}: ../../mk/install/shell
${_PKG_SILENT}${_PKG_DEBUG}( \
eval set -- ${PKG_SHELL} ; \
${TEST} $$# -gt 0 || exit 0; \
${ECHO} "# start of install-shell"; \
${ECHO} "#"; \
${ECHO} "# Generate a +SHELL script that handles shell registration."; \
${ECHO} "#"; \
${ECHO} "case \$${STAGE} in"; \
${ECHO} "PRE-INSTALL|UNPACK)"; \
${ECHO} " \$${CAT} > ./+SHELL << 'EOF_SHELL'"; \
${SED} ${FILES_SUBST_SED} ../../mk/install/shell; \
${ECHO} ""; \
eval set -- ${PKG_SHELL} ; \
while ${TEST} $$# -gt 0; do \
i="$$1"; shift; \
${ECHO} "# SHELL: $$i"; \
done; \
${ECHO} "EOF_SHELL"; \
${ECHO} " \$${CHMOD} +x ./+SHELL"; \
${ECHO} " ;;"; \
${ECHO} "esac"; \
${ECHO} ""; \
${ECHO} "# end of install-shell"; \
) > ${.TARGET}.tmp; \
${MV} -f ${.TARGET}.tmp ${.TARGET}
# PKG_CREATE_USERGROUP indicates whether the INSTALL script should
# automatically add any needed users/groups to the system using
# useradd/groupadd. It is either YES or NO and defaults to YES.
@ -413,26 +449,20 @@ ${INSTALL_DIRS_FILE}: ../../mk/install/dirs
# to ${RCD_SCRIPTS_DIR}. It is either YES or NO and defaults to
# NO. This variable only takes effect if ${PKG_CONFIG} == "YES".
#
# PKG_REGISTER_SHELLS indicates whether to automatically register shells
# in /etc/shells. It is either YES or NO and defaults to YES.
#
# These values merely set the defaults for INSTALL/DEINSTALL scripts, but
# they may be overridden by resetting them in the environment.
#
PKG_CREATE_USERGROUP?= YES
PKG_CONFIG?= YES
PKG_RCD_SCRIPTS?= NO
PKG_REGISTER_SHELLS?= YES
FILES_SUBST+= PKG_CREATE_USERGROUP=${PKG_CREATE_USERGROUP}
FILES_SUBST+= PKG_CONFIG=${PKG_CONFIG}
FILES_SUBST+= PKG_RCD_SCRIPTS=${PKG_RCD_SCRIPTS}
# PKG_REGISTER_SHELLS indicates whether to automatically register shells
# in /etc/shells. It is either YES or NO and defaults to YES.
#
# PKG_SHELL contains the full pathname of the shell being installed.
#
PKG_REGISTER_SHELLS?= YES
PKG_SHELL?= # empty
FILES_SUBST+= PKG_REGISTER_SHELLS=${PKG_REGISTER_SHELLS}
FILES_SUBST+= PKG_SHELL=${PKG_SHELL:Q}
# Substitute for various programs used in the DEINSTALL/INSTALL scripts and
# in the rc.d scripts.

View file

@ -1,7 +1,7 @@
# -*- sh -*-
# start of deinstall
#
# $NetBSD: deinstall,v 1.34 2005/07/27 16:18:54 jlam Exp $
# $NetBSD: deinstall,v 1.35 2005/07/29 18:32:18 jlam Exp $
case ${STAGE} in
VIEW-DEINSTALL)
@ -20,12 +20,15 @@ VIEW-DEINSTALL)
esac
;;
esac
if [ -n "${PKG_SHELL}" -a "${PKG_REGISTER_SHELLS}" = "YES" ]; then
${ECHO} "===> Updating /etc/shells"
${CP} /etc/shells /etc/shells.pkgsrc."$$"
(${GREP} -v "^${PKG_SHELL}" /etc/shells.pkgsrc."$$" || ${TRUE}) > /etc/shells
${RM} /etc/shells.pkgsrc."$$"
fi
#
# Remove shells from /etc/shells.
#
case ${_PKG_REGISTER_SHELLS} in
YES) ${TEST} ! -x ./+SHELL ||
./+SHELL REMOVE ${PKG_METADATA_DIR} ;;
esac
${TEST} ! -x ./+SHELL ||
./+SHELL CHECK-REMOVE ${PKG_METADATA_DIR}
;;
DEINSTALL)

View file

@ -2,7 +2,7 @@
#
# start of header
#
# $NetBSD: header,v 1.32 2005/02/02 10:33:01 jlam Exp $
# $NetBSD: header,v 1.33 2005/07/29 18:32:18 jlam Exp $
PKGNAME=$1
STAGE=$2
@ -71,9 +71,6 @@ case ${VIEW} in
*) PKG_SYSCONFVIEWBASE="${PKG_SYSCONFBASE}/${VIEW}" ;;
esac
PKG_REGISTER_SHELLS="@PKG_REGISTER_SHELLS@"
PKG_SHELL="@PKG_SHELL@"
CONF_IGNORE_FILES="*[~#] *.OLD *.orig *,v .pkgsrc */.pkgsrc"
PKG_INSTALLATION_TYPE="@PKG_INSTALLATION_TYPE@"
@ -105,4 +102,13 @@ case "${PKG_RCD_SCRIPTS:-@PKG_RCD_SCRIPTS@}" in
;;
esac
case "${PKG_REGISTER_SHELLS:-@PKG_REGISTER_SHELLS@}" in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
_PKG_REGISTER_SHELLS=YES
;;
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
_PKG_REGISTER_SHELLS=NO
;;
esac
# end of header

View file

@ -1,7 +1,7 @@
# -*- sh -*-
# start of install
#
# $NetBSD: install,v 1.39 2005/07/27 16:18:54 jlam Exp $
# $NetBSD: install,v 1.40 2005/07/29 18:32:18 jlam Exp $
case ${STAGE} in
PRE-INSTALL)
@ -71,14 +71,16 @@ POST-INSTALL)
;;
VIEW-INSTALL)
if [ -n "${PKG_SHELL}" -a "${PKG_REGISTER_SHELLS}" = "YES" ]; then
${ECHO} "===> Updating /etc/shells"
${TOUCH} /etc/shells
${CP} /etc/shells /etc/shells.pkgsrc."$$"
(${GREP} -v "^${PKG_SHELL}" /etc/shells.pkgsrc."$$" || ${TRUE}; ${ECHO} ${PKG_SHELL}) > /etc/shells
${RM} /etc/shells.pkgsrc."$$"
fi
#
# Register shells in /etc/shells.
#
case ${_PKG_REGISTER_SHELLS} in
YES) ${TEST} ! -x ./+SHELL ||
./+SHELL ADD ${PKG_METADATA_DIR} ;;
esac
${TEST} ! -x ./+SHELL ||
./+SHELL CHECK-ADD ${PKG_METADATA_DIR}
# If ${PKG_SYSCONFBASE} points outside of ${PREFIX}, then add the
# package config files to the proper view.
#

188
mk/install/shell Normal file
View file

@ -0,0 +1,188 @@
#!@SH@
#
# $NetBSD: shell,v 1.1 2005/07/29 18:32:18 jlam Exp $
#
# +SHELL - shell registration script
#
# Usage: ./+SHELL ADD|REMOVE [metadatadir]
# ./+SHELL CHECK-ADD|CHECK-REMOVE [metadatadir]
#
# This script supports two actions, ADD and REMOVE, that will add or
# remove shell paths from the shell database in /etc/shells. The
# CHECK-ADD action will check whether shell paths provided by the
# package are missing from the shell database, and print an informative
# message noting those shell paths. The CHECK-REMOVE action will check
# whether shell paths provided by the package are still present in the
# shell database, and print an informative message noting those shell
# paths. The CHECK-ADD and CHECK-REMOVE actions return non-zero if
# they detect either missing or existing paths, respectively.
#
# Lines starting with "# SHELL: " are data read by this script that
# name the shell paths that should be added or removed from the shell
# database. If the path is relative, then it is taken to be relative
# to ${PKG_PREFIX}.
#
# # SHELL: bin/pdksh
#
CAT="@CAT@"
CP="@CP@"
ECHO="@ECHO@"
GREP="@GREP@"
PWD_CMD="@PWD_CMD@"
RM="@RM@"
SED="@SED@"
SORT="@SORT@"
TEST="@TEST@"
TOUCH="@TOUCH@"
SELF=$0
ACTION=$1
PKG_METADATA_DIR="${2-`${PWD_CMD}`}"
: ${PKG_PREFIX=@PREFIX@}
: ${PKGNAME=${PKG_METADATA_DIR##*/}}
exitcode=0
case $ACTION in
ADD)
${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
{ while read shell; do
case $shell in
/*) continue ;;
*) shell="${PKG_PREFIX}/$shell" ;;
esac
${TEST} -f "$shell" || continue
shelldb="/etc/shells"
if ${TEST} -f "$shelldb" && \
${GREP} "^$shell" $shelldb >/dev/null; then
:
else
case "$printed_header" in
yes) ;;
*) printed_header=yes
${ECHO} "==========================================================================="
${ECHO} "Adding shells from ${PKGNAME} to $shelldb:"
${ECHO} ""
;;
esac
${ECHO} " $shell"
${TOUCH} $shelldb
${CP} $shelldb $shelldb.pkgsrc."$$"
{ ${CAT} $shelldb.pkgsrc."$$"; ${ECHO} "$shell"; } > $shelldb
${RM} $shelldb.pkgsrc."$$"
fi
done
case "$printed_header" in
yes) ${ECHO} ""
${ECHO} "==========================================================================="
;;
esac; }
;;
REMOVE)
${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
{ while read shell; do
case $shell in
/*) continue ;;
*) shell="${PKG_PREFIX}/$shell" ;;
esac
${TEST} -f "$shell" || continue
shelldb="/etc/shells"
if ${TEST} -f "$shelldb" && \
${GREP} "^$shell" $shelldb >/dev/null; then
case "$printed_header" in
yes) ;;
*) printed_header=yes
${ECHO} "==========================================================================="
${ECHO} "Removing shells from ${PKGNAME} to $shelldb:"
${ECHO} ""
;;
esac
${ECHO} " $shell"
${TOUCH} $shelldb
${CP} $shelldb $shelldb.pkgsrc."$$"
{ ${GREP} -v "^$shell" $shelldb.pkgsrc."$$" || ${TRUE}; } > $shelldb
${RM} $shelldb.pkgsrc."$$"
fi
done
case "$printed_header" in
yes) ${ECHO} ""
${ECHO} "==========================================================================="
;;
esac; }
;;
CHECK-ADD)
${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
{ while read shell; do
case $shell in
/*) continue ;;
*) shell="${PKG_PREFIX}/$shell" ;;
esac
${TEST} -f "$shell" || continue
shelldb="/etc/shells"
if ${TEST} -f "$shelldb" && \
${GREP} "^$shell" $shelldb >/dev/null; then
:
else
case "$printed_header" in
yes) ;;
*) printed_header=yes
${ECHO} "==========================================================================="
${ECHO} "The following lines can be added to $shelldb:"
${ECHO} ""
;;
esac
${ECHO} " $shell"
fi
done
case "$printed_header" in
yes) ${ECHO} ""
${ECHO} "==========================================================================="
exit 1
;;
esac; }
${TEST} $? -eq 0 || exitcode=1
;;
CHECK-REMOVE)
${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
{ while read shell; do
case $shell in
/*) continue ;;
*) shell="${PKG_PREFIX}/$shell" ;;
esac
${TEST} -f "$shell" || continue
shelldb="/etc/shells"
if ${TEST} -f "$shelldb" && \
${GREP} "^$shell" $shelldb >/dev/null; then
case "$printed_header" in
yes) ;;
*) printed_header=yes
${ECHO} "==========================================================================="
${ECHO} "The following lines can be removed from $shelldb:"
${ECHO} ""
;;
esac
${ECHO} " $shell"
fi
done
case "$printed_header" in
yes) ${ECHO} ""
${ECHO} "==========================================================================="
exit 1
;;
esac; }
${TEST} $? -eq 0 || exitcode=1
;;
*)
${ECHO} "Usage: ./+SHELL ADD|REMOVE [metadatadir]"
${ECHO} " ./+SHELL CHECK-ADD|CHECK-REMOVE [metadatadir]"
;;
esac
exit $exitcode

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.14 2005/06/17 03:50:33 jlam Exp $
# $NetBSD: Makefile.common,v 1.15 2005/07/29 18:32:17 jlam Exp $
DISTNAME= ast-ksh-${ASTKSH_VERSION}
PKGNAME= ast-ksh-${ASTKSH_VERSION:S/-//g}
@ -34,7 +34,7 @@ MAKE_FLAGS= CC="${CC}" CCFLAGS="${CFLAGS}"
PDKSH= /bin/ksh
.endif
PKG_SHELL= ${PREFIX}/bin/ksh93
PKG_SHELL= bin/ksh93
INSTALLATION_DIRS= bin man/man1

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2005/07/07 21:30:54 tron Exp $
# $NetBSD: Makefile,v 1.11 2005/07/29 18:32:17 jlam Exp $
DISTNAME= bash-3.0
PKGNAME= bash-3.0pl16
@ -30,7 +30,7 @@ TEST_TARGET= test
INFO_FILES= bash.info
PKG_SHELL= ${PREFIX}/bin/bash
PKG_SHELL= bin/bash
# All features enabled by default.
CONFIGURE_ARGS+= --enable-readline

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.64 2005/07/01 16:11:05 minskim Exp $
# $NetBSD: Makefile,v 1.65 2005/07/29 18:32:17 jlam Exp $
#
DISTNAME= bash-2.05b
@ -27,7 +27,7 @@ CONFIGURE_ARGS+= --with-installed-readline
MAKE_ENV+= INSTALL_SCRIPT='${INSTALL_SCRIPT}'
TEST_TARGET= test
PKG_SHELL= ${PREFIX}/bin/bash
PKG_SHELL= bin/bash
.include "../../mk/bsd.prefs.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2005/03/24 21:13:00 wiz Exp $
# $NetBSD: Makefile,v 1.15 2005/07/29 18:32:17 jlam Exp $
DISTNAME= es-0.9-alpha1
PKGNAME= es-0.9a1
@ -11,6 +11,6 @@ HOMEPAGE= http://hawkwind.utcs.utoronto.ca:8001/mlists/es.html
COMMENT= Extensible shell, derived from plan9's rc
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/es
PKG_SHELL= bin/es
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2005/06/17 03:50:33 jlam Exp $
# $NetBSD: Makefile,v 1.20 2005/07/29 18:32:17 jlam Exp $
DISTNAME= esh-0.8
CATEGORIES= shells
@ -11,7 +11,7 @@ INFO_FILES= esh.info
WRKSRC= ${WRKDIR}/esh
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/esh
PKG_SHELL= bin/esh
INSTALLATION_DIRS= bin info
do-install:

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2005/04/11 21:47:21 tv Exp $
# $NetBSD: Makefile,v 1.12 2005/07/29 18:32:17 jlam Exp $
DISTNAME= osh-050131
CATEGORIES= shells
@ -11,7 +11,7 @@ COMMENT= Implementation of the UNIX 6th Edition shell
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/osh
PKG_SHELL= bin/osh
TEST_TARGET= check

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2005/04/11 21:47:21 tv Exp $
# $NetBSD: Makefile,v 1.9 2005/07/29 18:32:18 jlam Exp $
#
DISTNAME= pdksh-5.2.14
@ -21,6 +21,6 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=pd
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/pdksh
PKG_SHELL= bin/pdksh
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2005/07/13 18:01:40 jlam Exp $
# $NetBSD: Makefile,v 1.10 2005/07/29 18:32:18 jlam Exp $
# Cjep: Makefile,v 1.3 2003/04/20 16:21:44 cjep Exp
DISTNAME= psh-1.8
@ -16,7 +16,7 @@ DEPENDS+= p5-Term-ReadLine>=1.12:../../devel/p5-Term-ReadLine
DEPENDS+= p5-BSD-Resource>=1.15:../../devel/p5-BSD-Resource
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/psh
PKG_SHELL= bin/psh
PERL5_PACKLIST= auto/psh/.packlist

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2005/04/11 21:47:21 tv Exp $
# $NetBSD: Makefile,v 1.5 2005/07/29 18:32:18 jlam Exp $
#
DISTNAME= posh_0.3.14
@ -13,7 +13,7 @@ COMMENT= Debian Policy-compliant Ordinary SHell
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
PKG_SHELL= ${PREFIX}/bin/posh
PKG_SHELL= bin/posh
USE_PKGINSTALL= YES
WRKSRC= ${WRKDIR}/${PKGNAME}

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2005/03/24 21:13:00 wiz Exp $
# $NetBSD: Makefile,v 1.18 2005/07/29 18:32:18 jlam Exp $
DISTNAME= rc-1.6
CATEGORIES= shells plan9
@ -12,6 +12,6 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-history
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/rc
PKG_SHELL= bin/rc
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2005/04/20 16:21:15 seb Exp $
# $NetBSD: Makefile,v 1.2 2005/07/29 18:32:18 jlam Exp $
#
DISTNAME= rssh-2.2.3
@ -21,7 +21,7 @@ PKG_SKIP_REASON+= "${PKGNAME} requires wordexp(3)"
EGDIR= ${PREFIX}/share/examples/rssh
INSTALLATION_DIRS= share/examples/rssh
CONF_FILES= ${EGDIR}/rssh.conf ${PKG_SYSCONFDIR}/rssh.conf
PKG_SHELL?= ${PREFIX}/bin/rssh
PKG_SHELL?= bin/rssh
SPECIAL_PERMS+= ${PREFIX}/libexec/rssh_chroot_helper ${SETUID_ROOT_PERMS}

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2005/06/24 19:52:06 kristerw Exp $
# $NetBSD: Makefile,v 1.5 2005/07/29 18:32:18 jlam Exp $
DISTNAME= scponly-4.0
PKGREVISION= 1
@ -29,7 +29,7 @@ CONFIGURE_ENV+= scponly_PROG_RM="${TOOLS_RM}"
CONFIGURE_ENV+= scponly_PROG_RMDIR="${TOOLS_RMDIR}"
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/scponly
PKG_SHELL= bin/scponly
PKG_SYSCONFSUBDIR= scponly
EGDIR= ${PREFIX}/share/examples/scponly

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.30 2005/07/17 15:11:36 kristerw Exp $
# $NetBSD: Makefile,v 1.31 2005/07/29 18:32:18 jlam Exp $
DISTNAME= scsh-0.6.6
CATEGORIES= shells lang
@ -16,7 +16,7 @@ BUILD_TARGET= enough
TEST_TARGET= check
USE_PKGINSTALL= yes
PKG_SHELL= ${PREFIX}/bin/scsh
PKG_SHELL= bin/scsh
# Build references from dumped environment variables is not a problem.
CHECK_WRKREF_SKIP+= ${PREFIX}/lib/scsh/scsh.image

View file

@ -1,12 +1,10 @@
# $NetBSD: Makefile,v 1.15 2005/02/24 12:19:13 wiz Exp $
# $NetBSD: Makefile,v 1.16 2005/07/29 18:32:18 jlam Exp $
#
NO_MTREE= YES
PKGNAME= standalone-${DISTNAME}
PKG_SHELL= /bin/tcsh
WRKSRC= ${WRKDIR}/${DISTNAME}
PATCHDIR= ${.CURDIR}/../../shells/tcsh/patches

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.50 2005/04/28 23:29:06 jlam Exp $
# $NetBSD: Makefile,v 1.51 2005/07/29 18:32:18 jlam Exp $
#
DISTNAME= tcsh-6.14.00
@ -32,7 +32,7 @@ OS_VER_cmd= ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|'
LOWER_OPSYS= solaris${OS_VER_cmd:sh}
.endif
PKG_SHELL?= ${PREFIX}/bin/tcsh
PKG_SHELL?= bin/tcsh
post-install:
@${ECHO} "Installing message catalogues"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2005/07/16 01:19:20 jlam Exp $
# $NetBSD: Makefile,v 1.6 2005/07/29 18:32:18 jlam Exp $
DISTNAME= XML-XSH-1.8.2
PKGNAME= ${DISTNAME:S/XML-XSH/xsh/}
@ -17,7 +17,7 @@ DEPENDS+= p5-XML-NodeFilter-[0-9]*:../../textproc/p5-XML-NodeFilter
DEPENDS+= p5-XML-LibXML-XPathContext-[0-9]*:../../textproc/p5-XML-LibXML-XPathContext
USE_TOOLS+= gmake
PKG_SHELL= ${PREFIX}/bin/xsh
PKG_SHELL= bin/xsh
PERL5_PACKLIST= auto/XML/XSH/.packlist

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.24 2005/06/14 18:39:29 minskim Exp $
# $NetBSD: Makefile.common,v 1.25 2005/07/29 18:32:18 jlam Exp $
DISTNAME= zsh-${ZSH_VERSION}
CATEGORIES= shells
@ -74,7 +74,7 @@ CONFIGURE_ARGS+=--with-tcsetpgrp
.undef MANZ
PKG_SHELL= ${PREFIX}/bin/zsh
PKG_SHELL= bin/zsh
INSTALL_TARGET= install install.info

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2005/04/11 21:47:21 tv Exp $
# $NetBSD: Makefile,v 1.14 2005/07/29 18:32:18 jlam Exp $
#
DISTNAME= zsh-3.0.8
@ -27,6 +27,6 @@ BUILD_DEFS+= ZSH_STATIC
LDFLAGS+= -static
.endif
PKG_SHELL= ${PREFIX}/bin/zsh
PKG_SHELL= bin/zsh
.include "../../mk/bsd.pkg.mk"