---
name: osiris
version: 4.2.3_1
origin: security/osiris
comment: The Shmoo client/server host integrity checker
arch: freebsd:9:x86:64
www: http://osiris.shmoo.com/
maintainer: lx@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 142505
desc: |
  Osiris is a Host Integrity Management System that periodically monitors
  one or more hosts for change. It maintains detailed logs of changes to
  the file system, user and group lists, resident kernel modules, and
  more. Osiris can be configured to email these logs to the administrator.
  Hosts are periodically scanned and, if desired, the records can be
  maintained for forensic purposes. Osiris keeps an administrator apprised
  of possible attacks and/or nasty little trojans. The purpose here is
  to isolate changes that indicate a break-in or a compromised system.
  Osiris makes use of OpenSSL for encryption and authentication in all
  components.

  WWW: http://osiris.shmoo.com/
categories: [security]
options: {OSIRISMD: off, OSIRISD: on, PRINTDB: off, CLI: off}
files:
  /usr/local/etc/rc.d/osirisd.sh: b82379f8990b99cc1a604c4f617dea1304643ec73619dc457ccda66c0b8d67b5
  /usr/local/sbin/osirisd: f68970cc559209076d7c330db4e84231854426c93d9eff0ebb8d02f2f3659784
directories:
  /usr/local/osiris/: n
scripts:
  post-install: |
    mkdir -p /usr/local/osiris
    chown osiris:osiris /usr/local/osiris
  install: "#!/bin/sh\n#\n# $FreeBSD: ports/security/osiris/pkg-install,v 1.3 2012/11/17
    06:01:09 svnexp Exp $\n#\n\nask() {\n    local question default answer\n\n    question=$1\n
    \   default=$2\n    if [ -z \"${PACKAGE_BUILDING}\" -a -z \"${BATCH}\" ]; then\n\tread
    -p \"${question} [${default}]? \" answer\n    fi\n    echo ${answer:-${default}}\n}\n\nyesno()
    {\n    local question default answer\n\n    question=$1\n    default=$2\n    while
    :; do\n\tanswer=$(ask \"${question}\" \"${default}\")\n\tcase \"${answer}\" in\n\t[Yy]*)\treturn
    0;;\n\t[Nn]*)\treturn 1;;\n\tesac\n\techo \"Please answer yes or no.\"\n    done\n}\n\nmake_account()
    {\n    local u g gcos\n\n    u=$1\n    g=$2\n    gcos=$3\n\n    if pw group show
    \"${g}\" >/dev/null 2>&1; then\n\techo \"You already have a group \\\"${g}\\\",
    so I will use it.\"\n    else\n\techo \"You need a group \\\"${g}\\\".\"\n\tif
    which -s pw && yesno \"Would you like me to create it\" y\n\tthen\n\t    pw groupadd
    ${g} || exit\n\t    echo \"Done.\"\n\telse\n\t    echo \"Please create it, and
    try again.\"\n\t    exit 1\n\tfi\n    fi\n    \n    if pw user show \"${u}\" >/dev/null
    2>&1; then\n\techo \"You already have a user \\\"${u}\\\", so I will use it.\"\n
    \   else\n\techo \"You need a user \\\"${u}\\\".\"\n\tif which -s pw && yesno
    \"Would you like me to create it\" y\n\tthen\n\t    pw useradd ${u} -g ${g} -h
    - -d /nonexistent -s /sbin/nologin -c \"${gcos}\" || exit\n\t    echo \"Done.\"\n\telse\n\t
    \   echo \"Please create it, and try again.\"\n\t    exit 1\n\tfi\n    fi\n}\n\ncase
    $2 in\n\nPRE-INSTALL)\n    make_account osiris osiris \"Osiris\"\n    ;;\nesac\n"
message: |2+

  ###############################################################

  To start the osiris daemons at system boot, add:

  osirisd_enable="YES"

  and/or

  osirismd_enable="YES"

  to /etc/rc.conf.

  ###############################################################

