---
name: openospfd
version: 4.3_1
origin: net/openospfd
comment: Free implementation of the Open Shortest Path First Protocol
arch: freebsd:9:x86:64
www: http://www.openbgp.org/
maintainer: rea@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 186258
desc: |
  OpenOSPFD is a FREE implementation of the Open Shortest Path First Protocol.
  It allows ordinary machines to be used as routers exchanging routes with
  other systems speaking the OSPF protocol.

  WWW: http://www.openbgp.org/
deps:
  libevent: {origin: devel/libevent, version: 1.4.14b_2}
categories: [net]
files:
  /usr/local/etc/rc.d/openospfd: 54d64f46341096a0944e0bb71c1b65175b93266750c5dc4189f35cdc8b82c5b8
  /usr/local/man/man5/ospfd.conf.5.gz: 1349c6144849a7638bbeb530a947c326d706e4480a18cc7e9b797fdec93bf942
  /usr/local/man/man8/ospfctl.8.gz: 21a48836fd1abb3f06c16edb482783a28ccab55995d49992d4d1c2600d43b70a
  /usr/local/man/man8/ospfd.8.gz: 02a6f9929bb417c6ffb8669e0fbce135fb2155068a24077ac52ee0470fb8c747
  /usr/local/sbin/ospfctl: 63e325d0f14e245f622ee5ab94b71fb5a8b1792712a3461b99fda2e5bd70c590
  /usr/local/sbin/ospfd: c386f0f9b7928ab5a797394c4d61b1f2f048b90249a650d767e108bb7036aa56
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#!/bin/sh\n\ncase $2 in\nPOST-INSTALL)\n\tUSER=_ospfd\n\tGROUP=${USER}\n\tUID=131\n\tGID=${UID}\n\tPW=/usr/sbin/pw\n\n\tif
    ${PW} group show \"${GROUP}\" 2>/dev/null; then\n\t\techo \"You already have a
    group \\\"${GROUP}\\\", so I will use it.\"\n\telse\n\t\tif ${PW} groupadd ${GROUP}
    -g ${GID}; then\n\t\t\techo \"Added group \\\"${GROUP}\\\".\"\n\t\telse\n\t\t\techo
    \"Adding group \\\"${GROUP}\\\" failed...\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\n\tif
    ${PW} user show \"${USER}\" 2>/dev/null; then\n\t\techo \"You already have a user
    \\\"${USER}\\\", so I will use it.\"\n\telse\n\t\tif ${PW} useradd ${USER} -u
    ${UID} -g ${GROUP} -h - \\\n\t\t\t-d \"/var/empty\" -s /sbin/nologin -c \"OSPF
    Daemon\"\n\t\tthen\n\t\t\techo \"Added user \\\"${USER}\\\".\"\n\t\telse\n\t\t\techo
    \"Adding user \\\"${USER}\\\" failed...\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\texit
    0\n\t;;\nesac\n"
