---
name: relayd
version: 5.2.20121122
origin: net/relayd
comment: OpenBSD relay daemon
arch: freebsd:9:x86:64
www: https://github.com/mmatuska/relayd
maintainer: mm@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [BSD]
flatsize: 225551
desc: "This is the FreeBSD port of the OpenBSD relayd and relayctl.\n\nrelayd is a
  daemon to relay and dynamically redirect incoming connections\nto a target host.
  \ Its main purposes are to run as a load-balancer,\napplication layer gateway, or
  transparent proxy.  The daemon is able to\nmonitor groups of hosts for availability,
  which is determined by checking\nfor a specific service common to a host group.
  \ When availability is con-\nfirmed, Layer 3 and/or layer 7 forwarding services
  are set up by relayd.\n\nLayer 3 redirection happens at the packet level; to configure
  it, relayd\ncommunicates with pf(4). \n\nThe following relayd functionality is not
  (yet) implemented in FreeBSD:\n- carp demote\n- modifying routing tables\n- snmp
  traps\n\nThe relayctl program controls the relayd(8) daemon.\n\nWWW: https://github.com/mmatuska/relayd\n"
deps:
  libevent: {origin: devel/libevent, version: 1.4.14b_2}
categories: [net]
users: [_relayd]
groups: [_relayd]
options: {LIBEVENT_STATIC: off}
files:
  /usr/local/etc/rc.d/relayd: ccb9f8e1f497e3373ee463cea1505d2d0dd62db52f04685dc9a07adf8fc17640
  /usr/local/etc/relayd.conf.sample: 4bb70dc4d2ff4470a6c8e5df2a45d3fc498e77b3f19f48bbe1ff48054442f668
  /usr/local/man/man5/relayd.conf.5.gz: a4cc1719af9a9637ddcecb01729d2af459d64662fdb17ffb3fbd103aa3d961c6
  /usr/local/man/man8/relayctl.8.gz: 7bd47caee8bd8331669dd961903a3b72920dc9a91e22190dd45faa807c98bcba
  /usr/local/man/man8/relayd.8.gz: c5588e31b7505c56334aab32e45792ea524175f754ce14f31c9477dee1024a1a
  /usr/local/sbin/relayctl: 92a0fe2a0c68d5f72bd0f707191a2a1a2d33efae664b995780663cfaee9e057b
  /usr/local/sbin/relayd: 518ae371c15096747377be568b5ce738438e43b72bde411f0b395fce7ae14b2a
  /usr/local/share/licenses/relayd-5.2.20121122/BSD: 85e7a53b5e2d3e350e2d084fed2f94b7f63005f8e1168740e1e84aa9fa5d48ce
  /usr/local/share/licenses/relayd-5.2.20121122/LICENSE: d9cce0db43502eb1bd8fbef7e960cfaa43b5647186f7f7379923b336209fd77b
  /usr/local/share/licenses/relayd-5.2.20121122/catalog.mk: 488ce74d89ce57bc688bf1a0280441d9d3ecb19c1508c8a0a7bcc7c8a61c1e37
directories:
  /usr/local/share/licenses/relayd-5.2.20121122/: n
  /usr/local/share/licenses/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow _relayd >/dev/null 2>&1; then  echo "Creating group '_relayd' with gid '913'.";  /usr/sbin/pw groupadd _relayd -g 913; else echo "Using existing group '_relayd'."; fi
    if ! /usr/sbin/pw usershow _relayd >/dev/null 2>&1; then  echo "Creating user '_relayd' with uid '913'.";  /usr/sbin/pw useradd _relayd -u 913 -g 913  -c "Relay Daemon" -d /var/empty -s /usr/sbin/nologin;  else echo "Using existing user '_relayd'."; fi
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/relayd.conf /usr/local/etc/relayd.conf.sample; then rm -f /usr/local/etc/relayd.conf; fi
    if /usr/sbin/pw usershow _relayd >/dev/null 2>&1; then  echo "==> You should manually remove the \"_relayd\" user. "; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
