---
name: scprotect
version: 20091116
origin: sysutils/scprotect
comment: Protect process from killing when the swap space is exhausted
arch: freebsd:9:x86:64
www: http://dindin.ru/scprotect/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 8003
desc: |
  scprotect is implementation of system call for setting or unsetting
  P_PROTECTED flag. It's similar to madvise(2) behaviour MADV_PROTECT,
  but may be used for already running processes. Also rc.d/scprotect
  scripts allow you to set protection flag even if process was
  restarted by user.

  WWW: http://dindin.ru/scprotect/
categories: [sysutils, kld]
files:
  /boot/modules/scprotect.ko: 4c731a8d7f3a516288249ce9d96714ab525d86a530a38d82c3fab887781f06cf
  /usr/local/etc/rc.d/scprotect: 90dc582278345a712b65911c7e22b579e4eb4b7f7823eed6724e54d162ef0d13
scripts:
  post-install: |
    cd /boot/modules
  pre-deinstall: |
    cd /boot/modules
  post-deinstall: |
    cd /boot/modules
    kldxref /boot/modules
message: |2

  *******************************************************************************
  * This port contains a prebuilt kernel module. Due to the ever changing       *
  * nature of FreeBSD it may be necessary to rebuild the module after a kernel  *
  * source update.  To do this reinstall the port.                              *
  *******************************************************************************

  Also you may set for example

  scprotect_enable="YES"
  scprotect_progs="sshd named"

  to protect those application even if they are restarted
