---
name: bash-devel
version: 4.2.45_1
origin: shells/bash-devel
comment: The GNU Project's Bourne Again SHell
arch: freebsd:9:x86:64
www: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
maintainer: ehaupt@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv3]
flatsize: 4367041
desc: "This is GNU Bash.  Bash is the GNU Project's Bourne Again SHell,\na complete
  implementation of the POSIX.2 shell spec, but also\nwith interactive command line
  editing, job control on architectures\nthat support it, csh-like features such as
  history substitution and\nbrace expansion, and a slew of other features. \n\nWWW:
  http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html\n"
deps:
  gettext: {origin: devel/gettext, version: 0.18.1.1_1}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories: [shells]
options: {COLONBREAKSWORDS: on, DOCS: on, HELP: on, IMPLICITCD: on, NLS: on, STATIC: off,
  SYSLOG: off}
files:
  /usr/local/bin/bash: 1a2b38158df663f5f3106ec6165e29be2390a7c8157cd0662a3770a74653b534
  /usr/local/bin/bashbug: a400cfa906e17199531c667e31681fdfaa6b8acfd1d50fb41293db12d0d811ad
  /usr/local/bin/rbash: '-'
  /usr/local/info/bash.info: 2bd8dc18899047e593655c6796112cd56f5c00bed1d90b56c3739cf35e1c5770
  /usr/local/man/man1/bash.1.gz: dc278c35db59a21050d22c8bdc81cfef5984d709049cf2479777091d1fad4f51
  /usr/local/man/man1/bashbug.1.gz: 7a02f625d6d318a9cfa27258db0c9743986ae2c978f893b3f1825db454b90b27
  /usr/local/share/doc/bash/CHANGES: 0924bfbdd0d3ff537b5592952c78bed9c804ce6dbbfd0cf8c14cb7668bd35d8b
  /usr/local/share/doc/bash/COMPAT: b0ab004334e6b9e06650ab017295d06f64ef4774b6d183f8d19867b3b9a1c535
  /usr/local/share/doc/bash/FAQ: 9e245c1ec45533bb2453eb2a71806c93e27494006d4602e262727dcadcc501a1
  /usr/local/share/doc/bash/INTRO: 88d4f438af6af108d5970aed3a88208a295b6dafc2d55b549169bb0a372ec1fb
  /usr/local/share/doc/bash/NEWS: 882f8579d6f6a4a8e1c8ad9b169f16bbf1652216cae659a324a9dfc2d647da8b
  /usr/local/share/doc/bash/POSIX: 067049c9f0dd79d2a64517cc7de86aba4ae15bac3e2d0d7bce4ed507592edc19
  /usr/local/share/doc/bash/RBASH: 7f04cb5f0992e22209ac556d71a3d4d155caa27cad06f1cfb3fe56f5664fa552
  /usr/local/share/licenses/bash-devel-4.2.45_1/GPLv3: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903
  /usr/local/share/licenses/bash-devel-4.2.45_1/LICENSE: feb018c22cc4001bbeccc04db5569c5aeaec18f1ebbee51a52d56c251418e243
  /usr/local/share/licenses/bash-devel-4.2.45_1/catalog.mk: e83c7e0b553cd80c3fbdc295665d4283f657bc78433b40aa25d6560a2407aab8
  /usr/local/share/locale/af/LC_MESSAGES/bash.mo: 3d9e934605007552fbbb33b5973416cb7a28aa66f34302c1c17c7d3d7eaa1fd5
  /usr/local/share/locale/bg/LC_MESSAGES/bash.mo: ac0a1852acfc9a66557483e6b693202c00d906257ca9d2ab026303a724ba8c40
  /usr/local/share/locale/ca/LC_MESSAGES/bash.mo: 3c55d3126fcf73f6dfa4e6bfc5ba623c038f5c3a3c31e7c7a0abec7290307226
  /usr/local/share/locale/cs/LC_MESSAGES/bash.mo: 679a8dbe284742b6b1a59d6d3e1c97d8f120a02663e8ff068b37cf3ff0bd4bcf
  /usr/local/share/locale/de/LC_MESSAGES/bash.mo: 73f58e646efbbd30d05079d608b03651537902f8d8a6f79931da746eb091fd20
  /usr/local/share/locale/en@boldquot/LC_MESSAGES/bash.mo: e0b7a21fb8c658840dc20fffe0a6452b9664ccad5a0baedf2714256bec030c32
  /usr/local/share/locale/en@quot/LC_MESSAGES/bash.mo: 8e0a3a08d8bfcbfc403efa2a53ae31e334d8a4d24dc6b3812d70edaf8fd2b528
  /usr/local/share/locale/eo/LC_MESSAGES/bash.mo: e3efcf2809bbb2544d9899d7a520b81ebc07694a159824ddf60f9b102c056ff4
  /usr/local/share/locale/es/LC_MESSAGES/bash.mo: 010f826cf3959b21d13ac56dbb313927854faa5c434686b9c1a2c3ccf9045e16
  /usr/local/share/locale/et/LC_MESSAGES/bash.mo: ddcb6c53ccf4e0da3db510c4f0d83cd0eaf9e7487bcc93245b9d819f0f9d3046
  /usr/local/share/locale/fi/LC_MESSAGES/bash.mo: bafc2c074bc19eafffd48b74966d84e72a6938b286a4435c79c698d4954f06dd
  /usr/local/share/locale/fr/LC_MESSAGES/bash.mo: 116540c6e6491bb92600a9b6238019c4f1757c948901c326feccd04048419f61
  /usr/local/share/locale/ga/LC_MESSAGES/bash.mo: 6a94b1260bba3e39dbce9ab760de2aa0846797e9ffd9a1b2d6c3e103b2e3f6be
  /usr/local/share/locale/hu/LC_MESSAGES/bash.mo: 487a78fe2d7d1bb5be2e2a96cc117620cf74eef87746c5f09aaa08e873b8ac5f
  /usr/local/share/locale/id/LC_MESSAGES/bash.mo: 4afb504b347d1f4565caa467119d1eda03f6762f159bb88df8e8ba6f4b68df1f
  /usr/local/share/locale/ja/LC_MESSAGES/bash.mo: b80687946c15aa229205140efd381fdaba8ea47daba6df14a41bee57e82f0ebc
  /usr/local/share/locale/lt/LC_MESSAGES/bash.mo: 747464a8733305985cad4c9472ddd1f30503b3f4bb09efb31b5de7c5e9d509ae
  /usr/local/share/locale/nl/LC_MESSAGES/bash.mo: a306f635bd695b4d7eee919e9e2d7ebcc521b631a9f9882b1ca9fc6fa4975e23
  /usr/local/share/locale/pl/LC_MESSAGES/bash.mo: e6b48635a70e5a72271dd4eeb07f3534063d6ce3d4a9e280c46f4181620c97cf
  /usr/local/share/locale/pt_BR/LC_MESSAGES/bash.mo: 9be94d06a4a52ae0e5ef4de74079ff1b21041b2d38d58fe93400625d2668d924
  /usr/local/share/locale/ro/LC_MESSAGES/bash.mo: 241d78612885170666e2159ceb69dbd1bbfb21b45528b5afe1b0ac5193caec17
  /usr/local/share/locale/ru/LC_MESSAGES/bash.mo: 7d83fc57af2efcf49bbdffd43d2910a9f79390c0912964e31526b5993983ffba
  /usr/local/share/locale/sk/LC_MESSAGES/bash.mo: 21310139e1e45ba235a6a22450072a514d9c8e29de20092352f6e120ab312f51
  /usr/local/share/locale/sv/LC_MESSAGES/bash.mo: 1d58c303fc883e2a39d0479d92f0bd68c2efd76c65535d3e24975e869b627eaa
  /usr/local/share/locale/tr/LC_MESSAGES/bash.mo: 5cc0a76b52842dc4fd3322bc07b6dd431712ca76de50b02b0df57f3dd426d123
  /usr/local/share/locale/uk/LC_MESSAGES/bash.mo: 7e554671b806fd07416ab6f9c5ea164813070bb9049207600bac0b2e63ff002a
  /usr/local/share/locale/vi/LC_MESSAGES/bash.mo: 06890dc35b7a817511913370f11fff6a388e2ce88ca6b072aa7bc66dd0a54f69
  /usr/local/share/locale/zh_CN/LC_MESSAGES/bash.mo: 6f364bfb44bbaa6e6f0e8efa7864a470d35559bc63af5307dfd9fd6233c00415
  /usr/local/share/locale/zh_TW/LC_MESSAGES/bash.mo: 75c9b03d22b8c1b555fcf3c5145b9a701fedca775767b5a8fa1cdf6ed80e24b3
directories:
  /usr/local/share/locale/en@quot/LC_MESSAGES/: y
  /usr/local/share/locale/en@quot/: y
  /usr/local/share/locale/en@boldquot/LC_MESSAGES/: y
  /usr/local/share/locale/en@boldquot/: y
  /usr/local/share/licenses/bash-devel-4.2.45_1/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/bash/: n
scripts:
  post-install: |
    cd /usr/local
    file=/usr/local/info/bash.info
    install-info --quiet /usr/local/info/bash.info ${file%25/*}/dir
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    file=/usr/local/info/bash.info
    install-info --quiet --delete /usr/local/info/bash.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
    cd /usr/local
  install: |
    #!/bin/sh
    #
    # $FreeBSD: shells/bash-devel/pkg-install 310370 2013-01-14 11:47:17Z ehaupt $
    #

    BASH="$(echo ${PKG_PREFIX-/usr/local}/bin/bash | /usr/bin/sed -e 's|//|/|g')"
    RBASH="$(echo ${PKG_PREFIX-/usr/local}/bin/rbash | /usr/bin/sed -e 's|//|/|g')"
    SHELLS="/etc/shells"

    case $2 in
    POST-INSTALL)
      if [ -d "${SHELLS%25/*}" ] && ! grep -qs "^$BASH\$" "$SHELLS"; then
        if [ `id -u` -eq 0 ]; then
          echo "$BASH" >> "$SHELLS"
        else
          echo "Not root, please add $BASH to $SHELLS manually"
        fi
      fi
      if [ -d "${SHELLS%25/*}" ] && ! grep -qs "^$RBASH\$" "$SHELLS"; then
        if [ `id -u` -eq 0 ]; then
          echo "$RBASH" >> "$SHELLS"
        else
          echo "Not root, please add $RBASH to $SHELLS manually"
        fi
      fi
      ;;
    esac
  deinstall: |
    #!/bin/sh
    #
    # $FreeBSD: shells/bash-devel/pkg-deinstall 310370 2013-01-14 11:47:17Z ehaupt $
    #

    BASH="$(echo ${PKG_PREFIX-/usr/local}/bin/bash | /usr/bin/sed -e 's|//|/|g')"
    RBASH="$(echo ${PKG_PREFIX-/usr/local}/bin/rbash | /usr/bin/sed -e 's|//|/|g')"
    SHELLS="${PKG_DESTDIR-}/etc/shells"

    case $2 in
    DEINSTALL)
      if grep -qs "^$BASH\$" "$SHELLS"; then
        if [ `id -u` -eq 0 ]; then
          TMPSHELLS=`mktemp -t shells`
          grep -v "^$BASH\$" "$SHELLS" > "$TMPSHELLS"
          cat "$TMPSHELLS" > "$SHELLS"
          rm "$TMPSHELLS"
        else
          echo "Not root, please remove $BASH from $SHELLS manually"
        fi
      fi
      if grep -qs "^$RBASH\$" "$SHELLS"; then
        if [ `id -u` -eq 0 ]; then
          TMPSHELLS=`mktemp -t shells`
          grep -v "^$RBASH\$" "$SHELLS" > "$TMPSHELLS"
          cat "$TMPSHELLS" > "$SHELLS"
          rm "$TMPSHELLS"
        else
          echo "Not root, please remove $RBASH from $SHELLS manually"
        fi
      fi
      ;;
    esac
