Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2011 14:10:14 +0300
From:      Andrey Zonov <andrey.zonov@gmail.com>
To:        bapt@FreeBSD.org
Cc:        andrey.zonov@gmail.com, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/151774: [new port] sysutils/pprotectd
Message-ID:  <4D85E096.5000100@gmail.com>
In-Reply-To: <201103172220.p2HMKAbi078791@freefall.freebsd.org>
References:  <201103172220.p2HMKAbi078791@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------030701060309060905050207
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

New shar of port is attached.

-- 
Andrey Zonov


--------------030701060309060905050207
Content-Type: text/plain;
 name="pprotectd.shar.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="pprotectd.shar.txt"

# 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:
#
#	pprotectd
#	pprotectd/Makefile
#	pprotectd/distinfo
#	pprotectd/pkg-descr
#	pprotectd/files
#	pprotectd/files/pprotectd.sh.in
#
echo c - pprotectd
mkdir -p pprotectd > /dev/null 2>&1
echo x - pprotectd/Makefile
sed 's/^X//' >pprotectd/Makefile << 'd0a615773ca564f426b9934b3114dd89'
X# New ports collection makefile for:	pprotectd
X# Date created:				15 July 2010
X# Whom:					Andrey Zonov <andrey@zonov.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pprotectd
XPORTVERSION=	0.1
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.zonov.org/${PORTNAME}/
X
XMAINTAINER=	andrey@zonov.org
XCOMMENT=	A self protected daemon which protect processes from killing by the kernel when memory is exhausted
X
XUSE_RC_SUBR=	${PORTNAME}.sh
X
XPLIST_FILES=	sbin/${PORTNAME}
XMAN8=		${PORTNAME}.8
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
X	${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
X
X.include <bsd.port.mk>
d0a615773ca564f426b9934b3114dd89
echo x - pprotectd/distinfo
sed 's/^X//' >pprotectd/distinfo << 'a6e0d0f4569ecab43a1fa1ef2cb9998c'
XMD5 (pprotectd-0.1.tar.gz) = 4c0151923ac2c1e4abb3d8e6caaf52e8
XSHA256 (pprotectd-0.1.tar.gz) = d25909d8030f3aca0f8e1d443c601787029773c88fa0209f49c58d7614c1c4a1
XSIZE (pprotectd-0.1.tar.gz) = 4752
a6e0d0f4569ecab43a1fa1ef2cb9998c
echo x - pprotectd/pkg-descr
sed 's/^X//' >pprotectd/pkg-descr << 'f34c8557b144a29416cccb6e3eb36d54'
Xpprotectd this is a self protected daemon which protect processes
Xfrom killing by the kernel when memory is exhausted.
X
XThe 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 or mysqld.
X
XWWW: http://www.zonov.org/
f34c8557b144a29416cccb6e3eb36d54
echo c - pprotectd/files
mkdir -p pprotectd/files > /dev/null 2>&1
echo x - pprotectd/files/pprotectd.sh.in
sed 's/^X//' >pprotectd/files/pprotectd.sh.in << '730170eb743b14ebd6c98df77f046b15'
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. /etc/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"
730170eb743b14ebd6c98df77f046b15
exit


--------------030701060309060905050207--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D85E096.5000100>