---
name: vserver
version: 2.43c
origin: net/vserver
comment: Server software of the VChat conference system
arch: freebsd:9:x86:64
www: http://www.enforcer.cc/vchat/
maintainer: mickey@enforcer.cc
prefix: /usr/local
licenselogic: single
flatsize: 182643
desc: |
  VChat is a fully featured internet conferencing (or chat-) system with
  traditional commandline interface, support for ANSI colors, a builtin
  user management system with per user assignable permission sets, server side
  access control list support and a lot of other useful features. The open
  architecture of the system and a range of existing client software that
  suits most needs make it the ideal solution for setting up a conferencing
  system for your website or network.

  This port is the standard UNIX server software suite for setting up a VChat
  conference system.

  See ports/net/vchat for the client side components of the VChat system.

  WWW: http://www.enforcer.cc/vchat/
categories: [net]
files:
  /usr/local/etc/rc.d/vserver: cabe747e8d2cf7c7726a1aae649be1c5024d351a3b4185e5b308be56e31d857b
  /usr/local/man/man8/vchatctl.8.gz: 8fdfd31be060f498a45fbfa8343c8f8820d276041059aa87b9242c55b0989aa3
  /usr/local/man/man8/vserver.8.gz: 9f2cbfb5273542dc6ff42a2740bfb3912928c414d2348fb3b885c483e4746b0b
  /usr/local/sbin/vchatctl: 188613fba608be794257fd25d23da3a95170c79f9cb27b7a8b0112abfbf37803
  /usr/local/sbin/vserver: 06bf2c6a0b6e9765ed2daa0acd9842bfd5bda097d6dc1e4dd8bef6cc01ea5ecb
directories:
  /usr/local/etc/vchat/: y
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#! /bin/sh\n\nPREFIX=${PKG_PREFIX:-/usr/local}\n\nVCHATUSER=vchat\nVCHATGROUP=vchat\nUID=128\nGID=128\nPW=\"pw\"\nCHOWN=\"chown\"\nCHMOD=\"chmod\"\nMKDIR=\"mkdir\"\n\n\nif
    [ \"$2\" = \"PRE-INSTALL\" ]; then\n\n\tif ! ${PW} groupshow ${VCHATGROUP} 2>/dev/null
    1>&2; then\n\n\t\tif ${PW} groupadd ${VCHATGROUP} -g $GID; then\n\t\t\techo \"=>
    Added group \\\"${VCHATGROUP}\\\".\"\n\t\telse\n\t\t\techo \"=> Adding group \\\"${VCHATGROUP}\\\"
    failed.\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\n\tif ! ${PW} usershow ${VCHATUSER} 2>/dev/null
    1>&2; then\n\n\t\tif ${PW} useradd ${VCHATUSER} -u $UID -g ${VCHATGROUP} -h -
    \\\n\t\t\t-s \"/sbin/nologin\" -d \"/nonexistent\" \\\n\t\t\t-c \"VChat Conferencing
    System\"; \\\n\t\tthen\n\n\t\t\techo \"=> Added user \\\"${VCHATUSER}\\\".\"\n\n\t\telse\n\n\t\t\techo
    \"=> Adding user \\\"${VCHATUSER}\\\" failed.\"\n\t\t\texit 1\n\n\t\tfi\n\tfi\n\nelif
    [ \"$2\" = \"POST-INSTALL\" ]; then\n\n\tif [ ! -d \"${PREFIX}/etc/vchat\" ];
    then\n\t\t${MKDIR} ${PREFIX}/etc/vchat || exit 1\n\tfi\n\n\t${CHOWN} ${VCHATUSER}:${VCHATGROUP}
    ${PREFIX}/etc/vchat\n\t${CHMOD} 755 ${PREFIX}/etc/vchat\n\n\tif [ ! -f \"${PREFIX}/etc/vchat/user.db\"
    ]; then\n\n\ncat << -EOT-\n\n****************************** IMPORTANT NOTE *******************************\n\nBefore
    starting vserver into normal operations for the first time, you\nneed to create
    an initial user database file \"${PREFIX}/etc/vchat/user.db\".\n\nThis is accomplished
    by running the following command sequence:\n\nsu -f -m ${VCHATUSER} -c \"${PREFIX}/sbin/vserver
    /BASEDIR=${PREFIX}/etc/vchat /CREATEUDB\"\n\n*****************************************************************************\n\n-EOT-\n\n\telse\n\n\t\t${CHOWN}
    ${VCHATUSER}:${VCHATGROUP} ${PREFIX}/etc/vchat/user.db\n\t\t${CHMOD} 600 ${PREFIX}/etc/vchat/user.db\n\n\tfi\n\nfi\n\nexit
    0\n"
  deinstall: "#! /bin/sh\n\nif [ \"$2\" != \"POST-DEINSTALL\" ]; then\n\texit 0\nfi\n\nPREFIX=${PKG_PREFIX:-/usr/local}\nVCHATUSER=vchat\nVCHATGROUP=vchat\n\nif
    pw usershow \"${VCHATUSER}\" 2>/dev/null 1>&2; then\n\n\techo \"To delete ${VCHATUSER}
    user permanently, use 'pw userdel \\\"${VCHATUSER}\\\"'\"\n\nfi\n\nif [ -d \"${PREFIX}/etc/vchat\"
    ]; then\n\n\n\techo \"If you do not intend to use this package any longer, please
    delete\"\n\techo \"the directory \\\"${PREFIX}/etc/vchat\\\" manually.\"\n\nfi\n\nexit
    0\n"
