From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 27 10:20:05 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42D21106566B for ; Wed, 27 Oct 2010 10:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B65C8FC1F for ; Wed, 27 Oct 2010 10:20:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9RAK4DM095978 for ; Wed, 27 Oct 2010 10:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9RAK4VS095977; Wed, 27 Oct 2010 10:20:04 GMT (envelope-from gnats) Resent-Date: Wed, 27 Oct 2010 10:20:04 GMT Resent-Message-Id: <201010271020.o9RAK4VS095977@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrey Zonov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20DB61065670 for ; Wed, 27 Oct 2010 10:14:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9DE8FC17 for ; Wed, 27 Oct 2010 10:14:06 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o9RAE59D092139 for ; Wed, 27 Oct 2010 10:14:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o9RAE5gp092138; Wed, 27 Oct 2010 10:14:05 GMT (envelope-from nobody) Message-Id: <201010271014.o9RAE5gp092138@www.freebsd.org> Date: Wed, 27 Oct 2010 10:14:05 GMT From: Andrey Zonov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/151774: [new port] sysutils/pprotectd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 10:20:05 -0000 >Number: 151774 >Category: ports >Synopsis: [new port] sysutils/pprotectd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 27 10:20:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Andrey Zonov >Release: stable-7, stable-8 >Organization: >Environment: >Description: Self protected daemon which protect processes from killing by the kernel when memory is exhausted. A P_PROTECTED flag protects processes from killing by the kernel when memory is exhausted. This may be useful for protection many critical daemons, such as cron, syslogd, inetd, sshd. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # . # ./pkg-descr # ./Makefile # ./distinfo # ./files # ./files/pprotectd.sh.in # echo c - . mkdir -p . > /dev/null 2>&1 echo x - ./pkg-descr sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5' XSelf protected daemon which protect processes from killing by the Xkernel when memory is exhausted. X XA P_PROTECTED flag protects processes from killing by the kernel Xwhen memory is exhausted. This may be useful for protection many Xcritical daemons, such as cron, syslogd, inetd, sshd. X XWWW: http://zonov.pp.ru/ 0e313719ff012ceaf97a028d51caa8f5 echo x - ./Makefile sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19' X# New ports collection makefile for: pprotectd X# Date created: 15 July 2010 X# Whom: Andrey Zonov X# X# $FreeBSD$ X# X XPORTNAME= pprotectd XPORTVERSION= 0.1 XCATEGORIES= sysutils XMASTER_SITES= http://zonov.pp.ru/pprotectd/ X XMAINTAINER= andrey.zonov@gmail.com XCOMMENT= Self protected daemon which protect processes from killing by the kernel when memory is exhausted X XUSE_RC_SUBR= pprotectd.sh X XMAN8= pprotectd.8 XPLIST_FILES= sbin/pprotectd X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin X ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8 X X.include 464ef7c6571951809b23e262cbe26e19 echo x - ./distinfo sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2' XMD5 (pprotectd-0.1.tar.gz) = 55ba0b69b9d82ae37163318c1870a409 XSHA256 (pprotectd-0.1.tar.gz) = 3d6322d79b38cac5e8d77559833bb58d1dd725db8089d9b5c7b7604cadf7d3ab XSIZE (pprotectd-0.1.tar.gz) = 39455 aec8793adfd5b7c3f00e62ae41a09ac2 echo c - ./files mkdir -p ./files > /dev/null 2>&1 echo x - ./files/pprotectd.sh.in sed 's/^X//' >./files/pprotectd.sh.in << '05818d657838a3f6bd70ebf584f57f54' X#!/bin/sh X# X# $FreeBSD$ X# X# PROVIDE: pprotectd X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf to enable pprotectd: X# X# pprotectd_enable (bool): Set to "NO" by default. X# Set it to "YES" to enable pprotectd X# pprotectd_pidfiles (str): Set to "/var/run/cron.pid,/var/run/syslog.pid" by default. X# Set it to "/var/run/sshd.pid" for example X# pprotectd_flags (str): Set to "" by default. X# See pprotectd(8) for pprotectd_flags X# X X. %%RC_SUBR%% X Xname="pprotectd" Xrcvar=`set_rcvar` X Xload_rc_config "$name" X X: ${pprotectd_enable="NO"} X: ${pprotectd_pidfiles="/var/run/cron.pid,/var/run/syslog.pid"} X: ${pprotectd_flags=""} X Xcommand="/usr/local/sbin/pprotectd" Xcommand_args="-F ${pprotectd_pidfiles}" X Xrun_rc_command "$1" 05818d657838a3f6bd70ebf584f57f54 exit >Release-Note: >Audit-Trail: >Unformatted: