---
name: shoutcast
version: 2.0.0.29_1
origin: audio/shoutcast
comment: SHOUTcast Distributed Network Audio Server
arch: freebsd:9:x86:64
www: http://www.shoutcast.com/broadcast-tools/
maintainer: jarrod@downtools.com.au
prefix: /usr/local
licenselogic: single
flatsize: 2030007
desc: |
  SHOUTcast Distributed Network Audio Server 2.0 (or DNAS for short) is
  the next-generation SHOUTcast server technology, designed to work with
  the new YP 2.0 playform that supports real-time and coming soon search
  results, international chatacter encoding support, and much more!

  WWW: http://www.shoutcast.com/broadcast-tools/
categories: [net, audio]
users: [shoutcast]
groups: [shoutcast]
options: {CONFIG_BUILDER: off, DOCS: on, EXAMPLE: off}
files:
  /usr/local/etc/rc.d/shoutcast: 7e0d9b4408952b5315c2ba08d68aacb4f6e633d90848f2f49d262dbf3df037d7
  /usr/local/sbin/sc_serv: 9ba26903f704215304d117d29479e08884312127fe390a8c7e2407f0fa13a92e
  /usr/local/share/doc/shoutcast/changes.txt: 0b5f3ff26a11f28905bbb564523362d6976d37329e857022e808dbf67ac2e512
  /usr/local/share/doc/shoutcast/getting_started.txt: 0ef225dc21608bca8f5b3dee81ff90d30ad4e368526b5d8386940887f5279e8a
  /usr/local/share/doc/shoutcast/sc_serv2.txt: 0ffe49c687504672eb8392913c793efda1de19ffcee5a95d351af4f37034301c
  /usr/local/share/doc/shoutcast/sc_serv2_authhash.txt: 396593ea30545d29f3f668a48cebfe7fda397a7addfdc7dd8994efb99bec14eb
  /usr/local/share/doc/shoutcast/sc_serv2_xml_responses.txt: 891090109f07c7d5355ce12e22e8ffd7a6cde14f6bc82b62caf39829b7b49e12
  /usr/local/share/doc/shoutcast/shoutcast_system_overview.txt: 4999193cbd62a6ac47b6a813de255079066f49ba7102d5ada2f5b73035969a4d
  /usr/local/share/doc/shoutcast/tos.txt: c6be12435ac69acc07de3f7fc9202ac1e7de3c2aeca3d4f5145dba0f7a4bc256
  /usr/local/share/examples/shoutcast/crossdomain.xml: 7b587bf339e305f2bc4150c5e73e34d3d9777b2db6f5d7f98842b39968fcf51d
  /usr/local/share/examples/shoutcast/sc_serv_basic.conf: e9155e6100ca15d9e59d3adef8365549208526c1d820a138324e57bfbe3d4138
  /usr/local/share/examples/shoutcast/sc_serv_debug.conf: 4493d3e8a304cb52295925acab37393064f082754d7ff9b4cd69181eb77c1bc9
  /usr/local/share/examples/shoutcast/sc_serv_public.conf: b272b04a2174b3011061e54325174825ee53e012d4322b872ad0cc9bc86ac7ca
  /usr/local/share/examples/shoutcast/sc_serv_relay.conf: 1bc27d81296dbd4e570136520dc2c16337d56dfd2536ad4f87a7eb69cc2678c0
  /usr/local/share/examples/shoutcast/sc_serv_simple.conf: b614357f1a27e0bee3b3b9f3b33bf5881564516c9309524343c5621a2f25b713
directories:
  /var/run/shoutcast/: y
  /var/log/shoutcast/: y
  /usr/local/share/examples/shoutcast/: n
  /usr/local/share/doc/shoutcast/: n
  /usr/local/etc/shoutcast/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow shoutcast >/dev/null 2>&1; then  echo "Creating group 'shoutcast' with gid '210'.";  /usr/sbin/pw groupadd shoutcast -g 210; else echo "Using existing group 'shoutcast'."; fi
    if ! /usr/sbin/pw usershow shoutcast >/dev/null 2>&1; then  echo "Creating user 'shoutcast' with uid '210'.";  /usr/sbin/pw useradd shoutcast -u 210 -g 210  -c "Shoutcast sandbox" -d /nonexistent -s /bin/sh;  else echo "Using existing user 'shoutcast'."; fi
    mkdir -p /var/run/shoutcast /var/log/shoutcast etc/shoutcast
    chmod 0750 /var/run/shoutcast /var/log/shoutcast
    chown shoutcast:shoutcast /var/run/shoutcast
    chown shoutcast:wheel /var/log/shoutcast
    cd /usr/local
  pre-deinstall: |
    if [ ! -s /var/run/shoutcast/sc_serv.ban ]; then rm -f /var/run/shoutcast/sc_serv.ban; fi
    if [ ! -s /var/run/shoutcast/sc_serv.rip ]; then rm -f /var/run/shoutcast/sc_serv.rip; fi
    if [ -d /usr/local/etc/shoutcast ]; then echo "==> You should manually remove the "\""/usr/local/etc/shoutcast"\"" directory."; fi
    if [ -d /var/run/shoutcast ]; then echo "==> You should manually remove the "\""/var/run/shoutcast"\"" directory."; fi
    if [ -d /var/log/shoutcast ]; then echo "==> You should manually remove the "\""/var/log/shoutcast"\"" directory."; fi
    if /usr/sbin/pw usershow shoutcast >/dev/null 2>&1; then  echo "==> You should manually remove the \"shoutcast\" user. "; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |
  **********************************************************************

   SHOUTcast Distributed Network Audio Server is now installed.

   Enable SHOUTcast in /etc/rc.conf with the following line:

     shoutcast_enable="YES"

   See /usr/local/share/examples/shoutcast for configuration examples.
   A basic installation can be completed by copying sc_serv_basic.conf
   to /usr/local/etc/shoutcast/sc_serv.conf.

  **********************************************************************
