ports/151774: [new port] sysutils/pprotectd

Andrey Zonov andrey.zonov at gmail.com
Wed Oct 27 10:20:05 UTC 2010


>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 <andrey.zonov at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pprotectd
XPORTVERSION=	0.1
XCATEGORIES=	sysutils
XMASTER_SITES=	http://zonov.pp.ru/pprotectd/
X
XMAINTAINER=	andrey.zonov at 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 <bsd.port.mk>
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:



More information about the freebsd-ports-bugs mailing list