---
name: dnetc
version: 2.9110.519,1
origin: misc/dnetc
comment: Distributed.net distributed computing project client
arch: freebsd:9:x86:64
www: http://www.distributed.net/
maintainer: tdb@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 1922019
desc: "This is the distributed.net's distributed computing\nclient.  This client contains
  the modules for OGR\nand RC5-72.  DES, CSC, and RC5-64 are no longer\nincluded in
  this client.\n\nAs a \"loosely knit\" group of computer users from all\nover the
  world, we take up challenges which require\na lot of computing power.  We solve
  these by distributing\nthe cpu power needed over the computers of our members.  That's\nwhy
  we're called \"distributed.net.\"  Read more about\nit at www.distributed.net.\n\nFor
  your statistics, check out:\n\thttp://stats.distributed.net/\n\nFor general help
  with the client or distributed.net, mail:\n\thelp@distributed.net\n\nWWW: http://www.distributed.net/\n"
categories: [misc]
files:
  /usr/local/distributed.net/dnetc: c78d2d749f03745bd3e84add876700e674616b9c7c02a70f5e7f9adeab8424fe
  /usr/local/distributed.net/dnetc.ini.sample: c7244fd27f60b6b6eee5dcf6d3b5b53866559acd671ab29d80b12a8f86c4aec8
  /usr/local/etc/rc.d/dnetc: 4c352dc1fcfb0c0b9988a918853634d821b6f1ab2d26b837f241c084197a796b
  /usr/local/man/man1/dnetc.1.gz: ef85c2ef0872559e1eaaf62a1040b26bdf2a3b942ed1f2779174fe2c4f9c68a6
directories:
  /usr/local/distributed.net/: n
scripts:
  post-install: |
    [ -f /usr/local/distributed.net/dnetc.ini ] || cp /usr/local/distributed.net/dnetc.ini.sample /usr/local/distributed.net/dnetc.ini
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/distributed.net/dnetc.ini /usr/local/distributed.net/dnetc.ini.sample; then rm -f /usr/local/distributed.net/dnetc.ini; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#!/bin/sh\n#\n# $FreeBSD: ports/misc/dnetc/files/pkg-install.in,v 1.2
    2012/11/17 05:59:34 svnexp Exp $\n\nif [ \"$2\" != \"PRE-INSTALL\" ]; then\n    exit
    0\nfi\n\nCLIENTUSER=dnetc\nCLIENTGROUP=dnetc\nUID=105\nGID=$UID\n\nif ! /usr/sbin/pw
    groupshow \"$CLIENTGROUP\" 2>/dev/null 1>&2; then\n\tif /usr/sbin/pw groupadd
    $CLIENTGROUP -g $GID; then\n\t\techo \"=> Added group \\\"$CLIENTGROUP\\\".\"\n\telse\n\t\techo
    \"=> Adding group \\\"$CLIENTGROUP\\\" failed.\"\n\t\texit 1\n\tfi\nfi\n\nif !
    /usr/sbin/pw usershow \"$CLIENTUSER\" 2>/dev/null 1>&2; then\n\tif /usr/sbin/pw
    useradd $CLIENTUSER -u $UID -g $CLIENTGROUP -h - \\\n\t\t-s \"/sbin/nologin\"
    -d \"/nonexistent\" \\\n\t\t-c \"distributed.net client and proxy pseudo-user\";
    \\\n\tthen\n\t\techo \"=> Added user \\\"$CLIENTUSER\\\".\"\n\telse\n\t\techo
    \"=> Adding user \\\"$CLIENTUSER\\\" failed.\"\n\t\texit 1\n\tfi\nfi\n\nexit 0\n"
  deinstall: "#!/bin/sh\n#\n# $FreeBSD: ports/misc/dnetc/files/pkg-deinstall.in,v
    1.2 2012/11/17 05:59:34 svnexp Exp $\n\nif [ \"$2\" != \"POST-DEINSTALL\" ]; then\n
    \   exit 0\nfi\n\nCLIENTUSER=dnetc\nCLIENTGROUP=dnetc\n\nif /usr/sbin/pw usershow
    \"$CLIENTUSER\" 2>/dev/null 1>&2; then\n\tif /usr/sbin/pw userdel -n $CLIENTUSER;
    then\n\t\techo \"=> Removed user \\\"$CLIENTUSER\\\".\"\n\telse\n\t\techo \"=>
    Removing user \\\"$CLIENTUSER\\\" failed.\"\n\t\texit 1\n\tfi\nfi\n\nif /usr/sbin/pw
    groupshow \"$CLIENTGROUP\" 2>/dev/null 1>&2; then\n\tif /usr/sbin/pw groupdel
    -n $CLIENTGROUP; then\n\t\techo \"=> Removed group \\\"$CLIENTGROUP\\\".\"\n\telse\n\t\techo
    \"=> Removing group \\\"$CLIENTGROUP\\\" failed.\"\n\texit 1\n\tfi\nfi\n\nexit
    0\n"
message: |
  ***************************************************************************

  Note: dnetc has been installed with a sample configuration.

  To change this run:

      /usr/local/distributed.net/dnetc -config

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