---
name: AquaGatekeeper
version: 1.22_5
origin: net/AquaGatekeeper
comment: Aqua H323 Gatekeeper and proxy
arch: freebsd:9:x86:64
www: http://www.kuzbass.ru/docs/AquaGatekeeper/AquaGatekeeper.htm
maintainer: ports@grosbein.pp.ru
prefix: /usr/local
licenselogic: single
flatsize: 5211268
desc: |
  Aqua Gatekeeper is H.323 gatekeeper and proxy by Aqua Project Group.
  It is compatible with many hardware/software like Cisco H.323 gateways and
  Microsoft NetMeeting 3.01 for Windows 2000 and later.

  This port presents Aqua Gatekeeper Startup Edition.
  It is not a free software but may be used free of charge.
  The Aqua Gatekeeper Startup Edition is limited to 30 concurrent calls.

  !!! NOTE: THE AQUA GATEKEEPER IS DISCONTIUED BY ITS VENDOR. No vendor support,
  !!! no updates, no bugfixes. This port is still provided to support
  !!! old installations only. You should choose other software for new setups.

  WWW: http://www.kuzbass.ru/docs/AquaGatekeeper/AquaGatekeeper.htm
deps:
  compat5x-amd64: {origin: misc/compat5x, version: 5.4.0.8.1_1}
  localedata: {origin: misc/localedata, version: 5.4}
categories: [net]
files:
  /usr/local/etc/AquaGatekeeper.cfg.sample: a09331efa8dcb4df6c24375a6f9997a845b9da2037a6ec90e9e4a24717c1b268
  /usr/local/etc/rc.d/agk.sh.sample: 64dbc36dd1736ee9b052f17416068d4581577d170553dd2157906c3855c07da4
  /usr/local/sbin/AquaGatekeeper: d8f35da9517a575cde0e7b92d2d19d228eadd16320f7db204a3a7ca4afee9016
  /usr/local/share/doc/AquaGatekeeper/AdministratorGuide.pdf: fe67ef82eb6159b7ed93f5811aed517f140d9d1d9ec10ba4b10302f032eb77c1
  /usr/local/share/doc/AquaGatekeeper/AquaGatekeeper.htm: 8d99f1ea657941b6029a032289f7745102ec5cb9efe30bc1b5c1c6e6d9cd44a6
  /usr/local/share/doc/AquaGatekeeper/CommandLineOptions.htm: 525b0e3ebbef12c725e0ac28f56efddaa639d0368c081c4aa878bd9625db4ce3
  /usr/local/share/doc/AquaGatekeeper/ConfigSyntax.htm: 54b29f3345e0d6158ca41c8475b8d920cf095dfa5e23d7f1161556e651cf5c64
  /usr/local/share/doc/AquaGatekeeper/License.rtf: a0f21aeaac1ff485a2678f8a0d2d8d208687f7d6705f99178b3ed35ae4ba458b
  /usr/local/share/doc/AquaGatekeeper/LicenseRus.rtf: 287571143538612c4c1da90e4ae2aa45a58d6c97c38f7afb7073c36ee3cfc04c
  /usr/local/share/doc/AquaGatekeeper/OperationPrinciples.htm: 8afe075cb4ebf5af0bedc6fa05115c96ac1e7db77c3936d59fc72509a467ed42
  /usr/local/share/doc/AquaGatekeeper/RevisionHistory.htm: 1dd2a9271ea9cf50e4a64ead3bcacde26c4a729306ba6b4457579b7dcbbba24b
  /usr/local/share/doc/AquaGatekeeper/Rus/AdministratorGuideRus.pdf: 62952f589b97afe10a2d6187d475740102749f863ba0177d675af4772da0d419
  /usr/local/share/doc/AquaGatekeeper/Rus/AquaGatekeeper.htm: fad2f4067ac71a0f2eda04912ef5c545f3c870b1eb8dd73e9018114c98fa6d7f
  /usr/local/share/doc/AquaGatekeeper/Rus/CommandLineOptions.htm: ccb185a9783eb236bb59fef90abe6f69ebfd4fc9e2b5ef38a7b9a9985cbc7735
  /usr/local/share/doc/AquaGatekeeper/Rus/ConfigSyntax.htm: cbf1dc2283c7c1aeb44ccd14b652aa0aeb3c5c6d46f1e729c9f3c5304d7bd853
  /usr/local/share/doc/AquaGatekeeper/Rus/OperationPrinciples.htm: 7682089d46a3347f4940a4bf7e45f15068e447ceb2cfa74098934ea840e49859
  /usr/local/share/doc/AquaGatekeeper/Rus/RevisionHistory.htm: 8a8e57a0c87c329e71ca3fb049dbae8733c026f35f6584a1d8f7bbf93c592670
  /usr/local/share/doc/AquaGatekeeper/Rus/default.css: 7d5ef685e04a406e44a9fc0a7a3cc323b817e4ad552282c6141b18d8de2bfcaa
  /usr/local/share/doc/AquaGatekeeper/default.css: 7d5ef685e04a406e44a9fc0a7a3cc323b817e4ad552282c6141b18d8de2bfcaa
  /usr/local/share/examples/AquaGatekeeper/Example.cfg: 93c64b92981648aa031a8f6e6258eaed5ac321aaeece499d5c5a8c6cb2986ac4
directories:
  /usr/local/share/examples/AquaGatekeeper/: n
  /usr/local/share/doc/AquaGatekeeper/Rus/: n
  /usr/local/share/doc/AquaGatekeeper/: n
scripts:
  install: "#!/bin/sh\n\nUSER=agk\nUID=172\nGROUP=${USER}\nGID=${UID}\n\nask() {\n
    \   local question default answer\n\n    question=$1\n    default=$2\n    if [
    -z \"${BATCH}\" -a -z \"${PACKAGE_BUILDING}\" ]; then\n\tread -p \"${question}
    [${default}]? \" answer\n    fi\n    if [ x${answer} = x ]; then\n\tanswer=${default}\n
    \   fi\n    echo ${answer}\n}\n\nyesno() {\n    local dflt question answer\n\n
    \   question=$1\n    dflt=$2\n    while :; do\n\tanswer=$(ask \"${question}\"
    \"${dflt}\")\n\tcase \"${answer}\" in\n\t[Yy]*)\t\treturn 0;;\n\t[Nn]*)\t\treturn
    1;;\n\tesac\n\techo \"Please answer yes or no.\"\n    done\n}\n\nmake_account()
    {\n    local u g uid gid gcos\n\n    u=$1\n    uid=$2\n    g=$3\n    gid=$4\n
    \   gcos=$5\n\n    if pw group show \"${g}\" >/dev/null 2>&1; then\n\techo \"You
    already have a group \\\"${g}\\\", so I will use it.\"\n    else\n\techo \"You
    need a group \\\"${g}\\\".\"\n\tif which -s pw && yesno \"Would you like me to
    create it\" y; then\n\t    pw groupadd -n ${g} -g ${gid} || exit\n\t    echo \"Done.\"\n\telse\n\t
    \   echo \"Please create it, and try again.\"\n\t    if ! grep -q \"^${u}:\" /etc/passwd;
    then\n\t\techo \"While you're at it, please create a user \\\"${u}\\\" too,\"\n\t\techo
    \"with a default group of \\\"${g}\\\".\"\n\t    fi\n\t    exit 1\n\tfi\n    fi\n
    \   \n    if pw user show \"${u}\" >/dev/null 2>&1; then\n\techo \"You already
    have a user \\\"${u}\\\", so I will use it.\"\n    else\n\techo \"You need a user
    \\\"${u}\\\".\"\n\tif which -s pw && yesno \"Would you like me to create it\"
    y; then\n\t    pw useradd -n ${u} -u ${uid} -g ${g} -h - -d /nonexistent \\\n\t\t-s
    /nonexistent -c \"${gcos}\" || exit\n\t    echo \"Done.\"\n\telse\n\t    echo
    \"Please create it, and try again.\"\n\t    exit 1\n\tfi\n    fi\n}\n\n[ \"$2\"
    = POST-INSTALL ] || exit 0\n\nmake_account ${USER} ${UID} ${GROUP} ${GID} \"AquaGateKeeper\"\n"
  deinstall: "#!/bin/sh\n\nUSER=agk\nGROUP=agk\n\nask() {\n    local question default
    answer\n\n    question=$1\n    default=$2\n    if [ -z \"${BATCH}\" -a -z \"${PACKAGE_BUILDING}\"
    ]; then\n\tread -p \"${question} [${default}]? \" answer\n    fi\n    if [ x${answer}
    = x ]; then\n\tanswer=${default}\n    fi\n    echo ${answer}\n}\n\nyesno() {\n
    \   local dflt question answer\n\n    question=$1\n    dflt=$2\n    while :; do\n\tanswer=$(ask
    \"${question}\" \"${dflt}\")\n\tcase \"${answer}\" in\n\t[Yy]*)\t\treturn 0;;\n\t[Nn]*)\t\treturn
    1;;\n\tesac\n\techo \"Please answer yes or no.\"\n    done\n}\n\ndelete_account()
    {\n    local u g\n\n    u=$1\n    g=$2\n    if yesno \"Do you want me to remove
    group \\\"${g}\\\"\" y; then\n\tpw groupdel -n ${g}\n\techo \"Done.\"\n    fi\n
    \   if yesno \"Do you want me to remove user \\\"${u}\\\"\" y; then\n\tpw userdel
    -n ${u}\n\techo \"Done.\"\n    fi\n}\n\n[ \"$2\" = DEINSTALL ] || exit 0\n\nexport
    PATH=/bin:/usr/bin:/usr/sbin\n\nif ps -axc | grep -q AquaGatekeeper; then\n    if
    yesno \"There are some AquaGatekeeper processes running.  Shall I kill them\"
    y\n    then\n\tkillall AquaGatekeeper\n\tsleep 2\n    else\n\techo \"OK ... I
    hope you know what you are doing.\"\n    fi\nfi\n\ndelete_account ${USER} ${GROUP}\nexit
    0\n"
message: |
  ****************************************************************************
  !!! NOTE: THE AQUA GATEKEEPER IS DISCONTIUED BY ITS VENDOR. No vendor support,
  !!! no updates, no bugfixes. This port is still provided to support
  !!! old installations only. You should choose other software for new setups.

    Please read documentation located in /usr/local/share/doc/AquaGatekeeper
    You will need to write configuration file to run the Gatekeeper.
    Some examples are in /usr/local/share/examples/AquaGatekeeper
  ****************************************************************************
