diff options
author | miwi <miwi@FreeBSD.org> | 2008-04-25 20:39:50 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-04-25 20:39:50 +0800 |
commit | ea1e445cb0a03be921559d7f20113e5a6b7f9772 (patch) | |
tree | ea1ae39b1ff2dfd9eeec47642b5393b2cbf2077b /shells | |
parent | 3ee5facab26a11ea5a7468ba1aa69a7e5630a6c9 (diff) | |
download | freebsd-ports-gnome-ea1e445cb0a03be921559d7f20113e5a6b7f9772.tar.gz freebsd-ports-gnome-ea1e445cb0a03be921559d7f20113e5a6b7f9772.tar.zst freebsd-ports-gnome-ea1e445cb0a03be921559d7f20113e5a6b7f9772.zip |
- Update to R33d
Security: http://www.vuxml.org/freebsd/86c05550-12c1-11dd-bab7-0016179b2dd5.html
Diffstat (limited to 'shells')
-rw-r--r-- | shells/mksh/Makefile | 16 | ||||
-rw-r--r-- | shells/mksh/distinfo | 6 | ||||
-rw-r--r-- | shells/mksh/pkg-deinstall | 22 | ||||
-rw-r--r-- | shells/mksh/pkg-install | 19 |
4 files changed, 9 insertions, 54 deletions
diff --git a/shells/mksh/Makefile b/shells/mksh/Makefile index 96f52d0b1ca8..fb43b69068d4 100644 --- a/shells/mksh/Makefile +++ b/shells/mksh/Makefile @@ -6,7 +6,7 @@ # PORTNAME= mksh -PORTVERSION= R33b +PORTVERSION= R33d CATEGORIES= shells MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \ http://pub.allbsd.org/MirOS/dist/mir/mksh/ @@ -21,9 +21,6 @@ MAN1= mksh.1 PLIST_FILES= bin/mksh share/examples/mksh/dot.mkshrc PLIST_DIRS= share/examples/mksh -PKGINSTALL= pkg-install -PKGDEINSTALL= pkg-deinstall - .include <bsd.port.pre.mk> do-extract: @@ -40,12 +37,11 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${EXAMPLESDIR} ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${MANPREFIX}/man/man1 -pre-install: - @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \ - ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: - @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \ - ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${ECHO_MSG} "updating /etc/shells" + @${CP} /etc/shells /etc/shells.bak + @(${GREP} -v ${PREFIX}/bin/mksh /etc/shells.bak; \ + ${ECHO_CMD} ${PREFIX}/bin/mksh) > /etc/shells + @${RM} /etc/shells.bak .include <bsd.port.post.mk> diff --git a/shells/mksh/distinfo b/shells/mksh/distinfo index 3cd544f3f107..96383ba16e4f 100644 --- a/shells/mksh/distinfo +++ b/shells/mksh/distinfo @@ -1,3 +1,3 @@ -MD5 (mksh-R33b.cpio.gz) = 4a882352ba709130020d940bfaba25ed -SHA256 (mksh-R33b.cpio.gz) = aacbf028c96a6705daad06d9b5f7625aebff6cb073c3072abb6bbf3b2e9b78fc -SIZE (mksh-R33b.cpio.gz) = 255256 +MD5 (mksh-R33d.cpio.gz) = 8ad2547ad55dc3a02b13554ab9b5c9c8 +SHA256 (mksh-R33d.cpio.gz) = 05ad1f28ceb1059ec6e50337363c10ede3287e614ad751427ca70611f7cd674f +SIZE (mksh-R33d.cpio.gz) = 255911 diff --git a/shells/mksh/pkg-deinstall b/shells/mksh/pkg-deinstall deleted file mode 100644 index dc9e8fa6cd84..000000000000 --- a/shells/mksh/pkg-deinstall +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -MKSH="${PKG_PREFIX-/usr/local}/bin/mksh" -SHELLS="${PKG_DESTDIR-}/etc/shells" - -case $2 in -DEINSTALL) - if grep -qs "^$MKSH\$" "$SHELLS"; then - if [ `id -u` -eq 0 ]; then - TMPSHELLS=`mktemp -t shells` - grep -v "^$MKSH\$" "$SHELLS" > "$TMPSHELLS" - cat "$TMPSHELLS" > "$SHELLS" - rm "$TMPSHELLS" - else - echo "Not root, please remove $MKSH from $SHELLS manually" - fi - fi - ;; -esac diff --git a/shells/mksh/pkg-install b/shells/mksh/pkg-install deleted file mode 100644 index 87dea009ba0a..000000000000 --- a/shells/mksh/pkg-install +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -MKSH="${PKG_PREFIX-/usr/local}/bin/mksh" -SHELLS="/etc/shells" - -case $2 in -POST-INSTALL) - if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$MKSH\$" "$SHELLS"; then - if [ `id -u` -eq 0 ]; then - echo "$MKSH" >> "$SHELLS" - else - echo "Not root, please add $MKSH to $SHELLS manually" - fi - fi - ;; -esac |