---
name: twiki-TopicVarsPlugin
version: 0.0.16417b
origin: www/twiki-TopicVarsPlugin
comment: Create externally usable variables in any topic
arch: freebsd:9:x86:64
www: http://twiki.org/cgi-bin/view/Plugins/TopicVarsPlugin
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 9782
desc: |
  Set variables in arbitrary topics and refer to them from other topics
  within the same web or wiki.

  Author: Tripp Lilley
  WWW: http://twiki.org/cgi-bin/view/Plugins/TopicVarsPlugin
categories: [www]
files:
  /usr/local/share/twiki/TopicVarsPlugin/data/TWiki/TopicVarsPlugin.txt: e84cbe1661a3ba11da24edb52bd7e6204a99a5288bf913e8f479b0060322d5ec
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/Plugins/TopicVarsPlugin.pm: a334b4f9b6ee6832240cf9c0ce9e2d81f860f1388bf7aac9f7f139a1c2e9bf5d
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/Plugins/TopicVarsPlugin/DEPENDENCIES: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/Plugins/TopicVarsPlugin/MANIFEST: d1bdc3b4f88fb85bfabe04d0531faa1241f5ef684289dd4113c3a1aa90f98ed0
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/Plugins/TopicVarsPlugin/build.pl: d1c9584c02b2836022102cecdb942fcb652f271ab089e40e778d131c11e8ec39
directories:
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/Plugins/TopicVarsPlugin/: n
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/Plugins/: n
  /usr/local/share/twiki/TopicVarsPlugin/lib/TWiki/: n
  /usr/local/share/twiki/TopicVarsPlugin/lib/: n
  /usr/local/share/twiki/TopicVarsPlugin/data/TWiki/: n
  /usr/local/share/twiki/TopicVarsPlugin/data/: n
  /usr/local/share/twiki/TopicVarsPlugin/: n
  /usr/local/share/twiki/: y
scripts:
  install: "#!/bin/sh\n#\n# $FreeBSD: www/twiki/files/pkg-install.in 300897 2012-07-14
    14:29:18Z beat $\n#\n\nTWDIR=/usr/local/share/twiki/TopicVarsPlugin\nWWWDIR=/usr/local/www/twiki\nWWWOWN=www\nWWWGRP=www\n\ncase
    $2 in\n\tPRE-INSTALL)\n\t\t;;\n\tPOST-INSTALL)\n\t\tcd ${TWDIR}/\n\t\tfind -s
    * -type d | while read dir; do\n\t\t\tmkdir -p ${WWWDIR}/$dir/\n\t\tdone\n\t\tfind
    -s * -not -type d | while read file; do\n\t\t\tif [ -e ${WWWDIR}/$file ]; then\n\t\t\t\techo
    \"${WWWDIR}/$file exists, skipping\"\n\t\t\telse\n\t\t\t\tcp $file ${WWWDIR}/$file\n\t\t\tfi\n\t\tdone\n\t\tchown
    -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/\n\t\tchmod -R u+w ${WWWDIR}/\n\t\tcd ${WWWDIR}/\n\t\tchmod
    o-rwx data lib locale templates test tools working\n\t\tchmod a+x bin/* tools/*\n\n\t\t#
    let the user know what's going on\n\t\tcat << __EOF__\n*****************************************************************\n*
    You can inspect differences (if any) between the distribition *\n* and the files
    installed using this command:                   *\n  %25 diff -ru ${TWDIR} ${WWWDIR}\n*
    For more info:                                                *\n*  http://wiki.FreeBSD.org/TWiki
    \                               *\n*  http://twiki.org/cgi-bin/view/Codev/TWikiOnFreeBSD
    \          *\n*  http://twiki.org/cgi-bin/view/TWiki/WebHome                  *\n*****************************************************************\n__EOF__\n\t\t;;\n\t*)\n\t\techo
    \"Unexpected Argument $2!!!\"\n\t\texit 1\n\t\t;;\nesac\nexit 0\n"
  deinstall: "#!/bin/sh\n#\n# $FreeBSD: /tmp/pcvs/ports/www/twiki/files/pkg-deinstall.in,v
    1.1 2008-04-22 08:36:40 sat Exp $\n#\n\nTWDIR=/usr/local/share/twiki/TopicVarsPlugin\nWWWDIR=/usr/local/www/twiki\n\ncase
    $2 in\n\tDEINSTALL)\n\t\tcd ${TWDIR}/\n\t\tfind -s * -not -type d | while read
    file; do\n\t\t\tif [ -e ${WWWDIR}/$file ]; then\n\t\t\t\tif cmp -s ${WWWDIR}/$file
    $file; then\n\t\t\t\t\trm -f ${WWWDIR}/$file\n\t\t\t\telse\n\t\t\t\t\techo \"${WWWDIR}/$file
    changed, skipping\"\n\t\t\t\tfi\n\t\t\telse\n\t\t\t\techo \"${WWWDIR}/$file lost\"\n\t\t\tfi\n\t\tdone\n\t\tfind
    -ds * -type d | while read dir; do\n\t\t\trmdir ${WWWDIR}/$dir/ 2>/dev/null ||
    true\n\t\tdone\n\t\trmdir ${WWWDIR}/ 2>/dev/null || true\n\t\t;;\n\tPOST-DEINSTALL)\n\t\t;;\n\t*)\n\t\techo
    \"Unexpected Argument $2!\"\n\t\texit 1\n\t\t;;\nesac\nexit 0\n"
