ports/151774: [new port] sysutils/pprotectd
Andrey Zonov
andrey.zonov at gmail.com
Wed Dec 8 19:50:10 UTC 2010
The following reply was made to PR ports/151774; it has been noted by GNATS.
From: Andrey Zonov <andrey.zonov at gmail.com>
To: Andrey Zonov <andrey.zonov at gmail.com>, bug-followup at freebsd.org
Cc:
Subject: Re: ports/151774: [new port] sysutils/pprotectd
Date: Wed, 08 Dec 2010 22:24:10 +0300
This is a multi-part message in MIME format.
--------------000600090500040000090901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I've replaced %%RC_SUBR%% with /etc/rc.subr after reading that
http://www.freebsd.org/cgi/query-pr.cgi?pr=145092
--
Andrey Zonov
--------------000600090500040000090901
Content-Type: text/plain;
name="pprotectd.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="pprotectd.shar"
# 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) = a2068d0faafb6b61c83d48d70e2d78c1
XSHA256 (pprotectd-0.1.tar.gz) = 6f6d646c4541fbb8cc278876f1878939be1260cfc6ba88f92ac1f7250c973c50
XSIZE (pprotectd-0.1.tar.gz) = 4747
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. /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"
05818d657838a3f6bd70ebf584f57f54
exit
--------------000600090500040000090901--
More information about the freebsd-ports-bugs
mailing list