---
name: openbgpd
version: 5.2.20121209
origin: net/openbgpd
comment: Free implementation of the Border Gateway Protocol, Version 4
arch: freebsd:9:x86:64
www: http://www.openbgpd.org/
maintainer: hrs@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 375539
desc: |
  OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4.
  It allows ordinary machines to be used as routers exchanging routes with
  other systems speaking the BGP protocol.

  WWW: http://www.openbgpd.org/
categories: [net]
users: [_bgpd]
groups: [_bgpd]
options: {IPV6LLPEER: on}
files:
  /usr/local/etc/rc.d/openbgpd: 6d6a5d2ce9ba825046f6c1e36724ee624f4634014ec1358323a314fcadc00510
  /usr/local/man/man5/bgpd.conf.5.gz: 88a4084b0bc2f2548180df89ab2ba2ef6653b22964296ce81c491d2b53238de5
  /usr/local/man/man8/bgpctl.8.gz: 37dcafec67af5adc964a01063661dd95c5c8d40fc4f77effc4dfd080c9ae4c98
  /usr/local/man/man8/bgpd.8.gz: 0e63d4b1dc486ab848524b39e7c5b62ae32a5f005d69fc0ae889364406caaaa4
  /usr/local/sbin/bgpctl: 9a954beccf6443d77ef45109ba3be35eb53c6e650c490c4d6d3a0c173ce1f7f7
  /usr/local/sbin/bgpd: 542fdd61726535a370693a13224df25aa19e7b637bc89926383b8d9b2893a5e7
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow _bgpd >/dev/null 2>&1; then  echo "Creating group '_bgpd' with gid '130'.";  /usr/sbin/pw groupadd _bgpd -g 130; else echo "Using existing group '_bgpd'."; fi
    if ! /usr/sbin/pw usershow _bgpd >/dev/null 2>&1; then  echo "Creating user '_bgpd' with uid '130'.";  /usr/sbin/pw useradd _bgpd -u 130 -g 130  -c "BGP Daemon" -d /var/empty -s /usr/sbin/nologin;  else echo "Using existing user '_bgpd'."; fi
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow _bgpd >/dev/null 2>&1; then  echo "==> You should manually remove the \"_bgpd\" user. "; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |
  ------------------------------------------------------------------
  OpenBGPD has been successfully installed.

  Configuration file must be created at /usr/local/etc/bgpd.conf
  and permission set to 0600.
  ------------------------------------------------------------------
