---
name: bopm
version: 3.1.3_1
origin: irc/bopm
comment: Open proxy and DNSBL monitor designed for use with ircds
arch: freebsd:9:x86:64
www: http://wiki.blitzed.org/BOPM
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 158731
desc: |
  bopm is an open-source proxy monitor, designed for use
  with IRC daemons such as Bahamut, Hybrid/ratbox, Unreal,
  Dancer, and any other which supports +c to show client
  connects to opers; bopm will KLINE clients it considers
  on an open proxy.  bopm also supports DNSBL lookups.

  WWW: http://wiki.blitzed.org/BOPM
categories: [irc]
users: [bopm]
groups: [bopm]
files:
  /usr/local/bin/bopm: 5c20f4aad021bd3212e7eca2e78bb51345845de9f755ae696edbdadc73ab3662
  /usr/local/etc/bopm.conf.sample: af58953a7f3bdeb44fc8336e24a9c43153b1f3c55fb5e5f394f94c7168b8dd31
  /usr/local/etc/rc.d/bopm: 3ea83d183cb334a22a3c7afad5eb6a4e6fe371245e3f373223f979ab855a3a36
  /usr/local/include/opm.h: cf322ff1c50cab42f44a08023fb4e12111c3c9e272713f9b6f565d5823f44cae
  /usr/local/include/opm_common.h: e06eba7ff71114d54dbe012f733b086333177268a6ec0234804faf03a9b77357
  /usr/local/include/opm_error.h: f9fae1d5a5d279a588eb64cab6b0488ce9ee31cdae508e432cea19fe41a283c5
  /usr/local/include/opm_types.h: f580fa828d7c6316f486cc8d1886c68f5d55488cab5ecd31bc48af38f1c7aa7c
  /usr/local/lib/libopm.a: 051aece31bed67237d2e7fee7fbd5f4d2aa9931d4a8f52154baa4100fca9ff4c
  /usr/local/lib/libopm.la: 7bc8d23514b5c992ff619be27295722aaf0a1da7e88cccc8faff0bff0a8f935a
  /usr/local/lib/libopm.so: '-'
  /usr/local/lib/libopm.so.0: 1bff7a832070e4db509d533d4400fbfa2d479bc0a07222d91035b7bf68af28c8
  /usr/local/share/bopm.conf.blitzed: d626b753679c477c8e9ebb5f1d9fea46431ffb39381645cd1f6e685ee8dcef60
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow bopm >/dev/null 2>&1; then  echo "Creating group 'bopm' with gid '717'.";  /usr/sbin/pw groupadd bopm -g 717; else echo "Using existing group 'bopm'."; fi
    if ! /usr/sbin/pw usershow bopm >/dev/null 2>&1; then  echo "Creating user 'bopm' with uid '717'.";  /usr/sbin/pw useradd bopm -u 717 -g 717  -c "Blitzed Open Proxy Monitor" -d /nonexistent -s /bin/sh;  else echo "Using existing user 'bopm'."; fi
    /sbin/ldconfig -m /usr/local/lib
    cd /usr/local
  pre-deinstall: |
    /bin/echo "===>" Stopping bopm...
    /usr/bin/killall bopm 2>/dev/null || true
    /sbin/ldconfig -R
    if /usr/sbin/pw usershow bopm >/dev/null 2>&1; then  echo "==> You should manually remove the \"bopm\" user. "; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  deinstall: |
    #!/bin/sh

    #-----------------------------------------------------------------------
    if [ "x$2" = "xPOST-DEINSTALL" ]; then
    #-----------------------------------------------------------------------

    if [ -d /var/log/bopm ]
    then
      rm -f /var/log/bopm/bopm.pid 2>/dev/null
      rmdir /var/log/bopm 2>/dev/null || echo "The logs in /var/log/bopm will remain untouched after the port is deinstalled."
    fi

    #-----------------------------------------------------------------------
    fi
    #-----------------------------------------------------------------------

    exit 0
message: |
  -----------------------------------------------------------------
  bopm has been installed.  Here are some installation details:

  user bopm (uid 717) and group bopm (gid 717) have been added
  to passwd(5) and group(5).

  bopm sample conf: /usr/local/etc/bopm.conf.sample
  bopm rc script:   /usr/local/etc/rc.d/bopm
  bopm log dir:     /var/log/bopm

  Please be sure to create /usr/local/etc/bopm.conf before
  starting this daemon.
  -----------------------------------------------------------------
