---
name: gld
version: 1.8_1
origin: mail/gld
comment: Greylisting daemon for Postfix
arch: freebsd:9:x86:64
www: http://www.gasmi.net/gld.html
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 70720
desc: |
  Gld is a standalone greylisting server for Postfix.

  Greylisting is a new weapon to use against spam. For more information on
  this technique, see http://www.greylisting.org.

  This implementation listens on a TCP port and uses MySQL for storing data.
  The server supports whitelists based on sender, sender domain and client IP.
  It also supports light greylisting.

  WWW: http://www.gasmi.net/gld.html
deps:
  mysql-client: {origin: databases/mysql55-client, version: 5.5.33}
categories:
- mail
shlibs_required:
- libmysqlclient.so.18
options: {PGSQL: off, MYSQL: on, LOCAL_DB_SERVER: off}
files:
  /usr/local/etc/gld.conf-dist: 49b1694ddf63035d0a0fa79ae1973159cea9fcd36ad322934faef3c4a9004c58
  /usr/local/etc/rc.d/gld: 5533100a71fba4c6a8750c1cebca3169534bb42799c6fdcb277b62f29cf00645
  /usr/local/sbin/gld: 4855ee5ad29f102a49ec37e5d2f775a6393df4f241f5417e509f7cf6979296de
  /usr/local/share/doc/gld/HISTORY: 497d997d3be1c5567fdfe0b6f68ddcf96e12cec0a293220c891d86e53ae5149d
  /usr/local/share/doc/gld/LICENCE: f2e8cbcfa8b7da0ed2fea1567c47773bda512d3ba3ed753f4e41119f6ac9ec10
  /usr/local/share/doc/gld/README: d33ce91551f01110292d057f230749338e84690eda362f0e7fe28b58b637d551
  /usr/local/share/doc/gld/table-whitelist.sql: acc6b8c48313370d2bbefcf86ab491db38747c1af840f2383c4d16fd856bc198
  /usr/local/share/doc/gld/tables.mysql: 4c5a5f953861beb59e43172182dff63681109986c78024edce6279386b833789
  /usr/local/share/doc/gld/tables.pgsql: 41ec36e52e33e4a7064b3565e814114087c8c1e380d732e17fdf852fa274faa5
directories:
  /usr/local/share/doc/gld/: n
scripts:
  post-install: |
    [ -f /usr/local/etc/gld.conf ] || cp /usr/local/etc/gld.conf-dist /usr/local/etc/gld.conf
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/gld.conf /usr/local/etc/gld.conf-dist; then rm -f /usr/local/etc/gld.conf; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: "\n*******************************************************************\n
  \ Enable gld in /etc/rc.conf[.local] with the following line:\n  \n  gld_enable=\"YES\"\n\n
  To complete the installation, you need to create the necessary\n database and tables.
  An example configuration file is available in\n /usr/local/etc/gld.conf-dist. For
  more information see the\n documentation in /usr/local/share/doc/gld/share/doc/gld.\n*******************************************************************\n\n"
