From nobody@FreeBSD.org  Thu Dec 11 12:21:55 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3E0981065676
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Dec 2008 12:21:55 +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 2E4938FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Dec 2008 12:21:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mBBCLsXl063912
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Dec 2008 12:21:54 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mBBCLscq063911;
	Thu, 11 Dec 2008 12:21:54 GMT
	(envelope-from nobody)
Message-Id: <200812111221.mBBCLscq063911@www.freebsd.org>
Date: Thu, 11 Dec 2008 12:21:54 GMT
From: Alex Keda <admin@lissyara.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: update port security/termlog - add starup scripts
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         129571
>Category:       ports
>Synopsis:       update port security/termlog - add starup scripts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    csjp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 11 12:30:00 UTC 2008
>Closed-Date:    Tue Mar 03 14:55:21 UTC 2009
>Last-Modified:  Tue Mar  3 15:00:09 UTC 2009
>Originator:     Alex Keda
>Release:        7.1
>Organization:
ussr
>Environment:
srv2# uname -a
FreeBSD srv2.host-food.ru 7.1-RC1 FreeBSD 7.1-RC1 #0: Tue Dec  9 00:39:57 MSK 2008     serge@xeon-2x2000.lissyara.su:/usr/obj/usr/src/sys/HOST-FOOD  i386

>Description:
port security/termlog do not have startup script.
this patch add them
http://lissyara.su/patch/termlog.diff
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Nru termlog.orig/Makefile termlog/Makefile
--- termlog.orig/Makefile	2005-10-12 07:37:55.000000000 +0400
+++ termlog/Makefile	2008-12-11 15:16:35.000000000 +0300
@@ -7,6 +7,7 @@
 
 PORTNAME=	termlog
 PORTVERSION=	2.5
+PORTREVISION=	1
 CATEGORIES=	security sysutils
 MASTER_SITES=	http://www.seccuris.com/documents/downloads/
 MASTER_SITE_SUBDIR=	termlog
@@ -15,6 +16,7 @@
 COMMENT=	Monitor or log multiple system terminals synchronously
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_RC_SUBR=	${PORTNAME}
 
 MAN1=		termlog.1
 PLIST_FILES=	bin/termlog
diff -Nru termlog.orig/files/termlog.in termlog/files/termlog.in
--- termlog.orig/files/termlog.in	1970-01-01 03:00:00.000000000 +0300
+++ termlog/files/termlog.in	2008-12-11 15:11:32.000000000 +0300
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# PROVIDE: termlog
+# REQUIRE: cron devfs syslogd
+
+. /etc/rc.subr
+
+load_rc_config termlog
+
+name=termlog
+rcvar=`set_rcvar`
+
+command="/usr/local/bin/termlog"
+
+# default to disable
+termlog_enable=${termlog_enable:-"NO"}
+# logging path
+termlog_log_dir=${termlog_log_dir:-"/var/log/termlog/"}
+# maximum monitored consoles
+termlog_max_cons=${termlog_max_cons:-"30"}
+termlog_flags=${termlog_flags:-" -C $termlog_log_dir -f -n $termlog_max_cons &"}
+
+start_precmd=start_precmd
+
+start_precmd()
+{
+	mkdir -p $termlog_log_dir
+	chmod 751 $termlog_log_dir
+}
+
+
+run_rc_command "$1"
+


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->csjp 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Dec 11 12:30:10 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129571 

From: Alex Keda <admin@lissyara.su>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/129571: update port security/termlog - add starup scripts
Date: Fri, 30 Jan 2009 10:28:12 +0300

 It took more than a month.
 Maybe someone will take this patch?

From: Alex Keda <admin@lissyara.su>
To: bug-followup@FreeBSD.org, admin@lissyara.su
Cc:  
Subject: Re: ports/129571: update port security/termlog - add starup scripts
Date: Sun, 01 Mar 2009 21:56:26 +0300

 It took more than a two month.
 Maybe someone will take this patch?
State-Changed-From-To: open->closed 
State-Changed-By: csjp 
State-Changed-When: Tue Mar 3 14:54:25 UTC 2009 
State-Changed-Why:  
Committed. Sorry for the delay on this. 

Note that I changed the permissions from 751 to 700 

Thank you for the submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129571 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/129571: commit references a PR
Date: Tue,  3 Mar 2009 14:53:43 +0000 (UTC)

 csjp        2009-03-03 14:53:31 UTC
 
   FreeBSD ports repository (src committer)
 
   Modified files:
     security/termlog     Makefile 
   Added files:
     security/termlog/files termlog.in 
   Log:
   Add rc file for termlog.
   
   PR:             129571
   Submitted by:   Alex Keda
   Approved by:    wxs
   
   Revision  Changes    Path
   1.13      +2 -0      ports/security/termlog/Makefile
   1.1       +31 -0     ports/security/termlog/files/termlog.in (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
