---
name: ladvd
version: 1.0.2
origin: net/ladvd
comment: A minimal LLDP/CDP daemon
arch: freebsd:9:x86:64
www: http://code.google.com/p/ladvd/
maintainer: sten@blinkenlights.nl
prefix: /usr/local
licenselogic: single
licenses: [BSD]
flatsize: 234731
desc: |
  ladvd is a minimal link layer advertisement daemon which supports
  LLDP, CDP, EDP, FDP and NDP advertisements.

  WWW: http://code.google.com/p/ladvd/
deps:
  libevent: {origin: devel/libevent, version: 1.4.14b_2}
categories: [net]
users: [ladvd]
groups: [ladvd]
files:
  /usr/local/etc/rc.d/ladvd: d2eb7362b60e344618042517b039a256a2303a2cd14194367ac291259a8faf00
  /usr/local/man/man8/ladvd.8.gz: ff7a693ea135437e9dffbe086c5cc9f56f01e536c8eeb8ce2c9e92588f6d044a
  /usr/local/man/man8/ladvdc.8.gz: 4b9df6891166b239cc42e39a1b2842cced9705228056d54f6e017b0f2a138c33
  /usr/local/sbin/ladvd: c31a02bfa205e7de2dbc5d171ce8fc48c936b176137600a15798e5cb21af22bb
  /usr/local/sbin/ladvdc: '-'
  /usr/local/share/doc/ladvd/ChangeLog: edf4ddc73deeb0a659815b7d8cdc193f0a32d058177e2823ce374cba7be2ed65
  /usr/local/share/doc/ladvd/HACKING: e3ff9739fc1fb8b838ebe7ddb3a8df48a2579f0cc618bac6c659a744a86d4bb2
  /usr/local/share/doc/ladvd/LICENSE: c3fa3e9fd0a71b518fa909b69ac024a38ea9b2aff3757f6f4ae692b423c2ceed
  /usr/local/share/doc/ladvd/README: c87cdd5c01f7488a1a3cf07138da8a74c809652009e8a7f2e79edaa6a43e0767
  /usr/local/share/doc/ladvd/TODO: 9f35cbdba5e3caaa0510f670835f49651c733e878f7b9cd7124fca42084d7ad6
  /usr/local/share/licenses/ladvd-1.0.2/BSD: 85e7a53b5e2d3e350e2d084fed2f94b7f63005f8e1168740e1e84aa9fa5d48ce
  /usr/local/share/licenses/ladvd-1.0.2/LICENSE: d9cce0db43502eb1bd8fbef7e960cfaa43b5647186f7f7379923b336209fd77b
  /usr/local/share/licenses/ladvd-1.0.2/catalog.mk: d5373acbf6d1ddec1173bb2e8b7ff4e13b4f29eef9531f3f5783d6e046673011
directories:
  /usr/local/share/licenses/ladvd-1.0.2/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/ladvd/: n
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow ladvd >/dev/null 2>&1; then  echo "Creating group 'ladvd' with gid '142'.";  /usr/sbin/pw groupadd ladvd -g 142; else echo "Using existing group 'ladvd'."; fi
    if ! /usr/sbin/pw usershow ladvd >/dev/null 2>&1; then  echo "Creating user 'ladvd' with uid '142'.";  /usr/sbin/pw useradd ladvd -u 142 -g 142  -c "Ladvd User" -d /var/empty -s /usr/sbin/nologin;  else echo "Using existing user 'ladvd'."; fi
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow ladvd >/dev/null 2>&1; then  echo "==> You should manually remove the \"ladvd\" user. "; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
message: |
  *******************************************************************
   If you want to run ladvd at startup you'll need the following
   line in /etc/rc.conf(.local):

      ladvd_enable="YES"

  *******************************************************************
