---
name: totd
version: 1.5.1_1
origin: dns/totd
comment: DNS proxy that supports IPv6 <==> IPv4 record translation
arch: freebsd:9:x86:64
www: http://www.vermicelli.pasta.cs.uit.no/ipv6/software.html
maintainer: ed@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 87895
desc: "Totd is a small DNS proxy nameserver that supports IPv6 only hosts/networks\nthat
  communicate with the IPv4 world using some translation mechanism. \nExamples of
  such translation mechanisms currently in use are: \n\n   * IPv6/IPv4 Network Address
  and Packet Translation (NAT-PT)\n     implemented e.g. by Cisco.\n   * Application
  level translators as the faithd implemented by \n     the KAME project (http://www.kame.net).
  See faithd(8) on\n     *BSD/Kame.\n\nWWW:\thttp://www.vermicelli.pasta.cs.uit.no/ipv6/software.html\n"
categories: [ipv6, dns]
files:
  /usr/local/etc/rc.d/totd: 0bed1737dad81cdd132ff3bd55e7a8b325e49b9b6332c305d76034931663cddc
  /usr/local/etc/totd.conf.sample: 539f0ae50c495676bd37ded2fb32d323cec8ed4abe5aa1945118cc81da48236f
  /usr/local/man/man8/totd.8.gz: 9e0372a5986e27483528539277dcd03387b4c3d81cc9598c094e6801ced14018
  /usr/local/sbin/totd: 905dfcb174d5fe0c9d098a7137b17e6fda6689214b167e5cce0b8d8b576332d5
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#! /bin/sh\n# $OpenBSD: INSTALL,v 1.1 2000/06/11 01:15:53 fgsch Exp $\n#\n#
    Post-installation setup of totd - based on majordomo INSTALL script\n# from daniel@reichardt.ch\n\nset
    -e\nPATH=/bin:/usr/bin:/sbin:/usr/sbin\nPREFIX=${PKG_PREFIX:-/usr/local}\n\ndo_install_configuration()\n{\n
    \ echo -n \"Let's see if there is already a configuration file... \"\n  if [ -f
    ${PREFIX}/etc/totd.conf ]; then\n    echo \"yes\"\n    echo \"Please compare your
    existing configuration with\"\n    echo \"${PREFIX}/etc/totd.conf.sample\"\n  else\n
    \   echo \"no\"\n    echo -n \"Copying sample configuration file... \"\n    install
    -o root -g wheel -m 644 ${PREFIX}/etc/totd.conf.sample \\\n      ${PREFIX}/etc/totd.conf\n
    \   echo \"ok\"\n    echo \"Please review new configuration ${PREFIX}/etc/totd.conf\"\n
    \ fi\n}\n\nif [ $# -ne 2 ]; then\n    echo \"usage: $0 distname { PRE-INSTALL
    | POST-INSTALL }\" >&2\n    exit 1\nfi\n\ncase $2 in\n    PRE-INSTALL)\n\t;;\n
    \   POST-INSTALL)\n\tdo_install_configuration\n\t;;\n    *)\n\techo \"usage: $0
    distname { PRE-INSTALL | POST-INSTALL }\" >&2\n\texit 1\n\t;;\nesac\n\nexit 0\n"
  deinstall: |
    #!/bin/sh
    # $OpenBSD: DEINSTALL,v 1.1 2000/06/11 01:15:53 fgsch Exp $
    #
    # Post-deinstallation cleanup of totd

    if [ x$2 = "xDEINSTALL" ]; then
    echo ""
    echo "** To completely deinstall the totd package you need to perform this"
    echo "** as root:"
    echo "**"
    echo "**           rm -f ${PKG_PREFIX}/etc/totd.conf"
    echo "**"
    echo "** Be absolutly sure you want to completely remove the package before"
    echo "** issuing this command."
    echo ""
    fi

    exit 0
