Index: head/security/termlog/Makefile =================================================================== --- head/security/termlog/Makefile (revision 229421) +++ head/security/termlog/Makefile (revision 229422) @@ -1,26 +1,28 @@ # New ports collection makefile for: termlog # Date created: 20 August 2002 # Whom: C.S. Peron # # $FreeBSD$ # PORTNAME= termlog PORTVERSION= 2.5 +PORTREVISION= 1 CATEGORIES= security sysutils MASTER_SITES= http://www.seccuris.com/documents/downloads/ MASTER_SITE_SUBDIR= termlog MAINTAINER= csjp@FreeBSD.org COMMENT= Monitor or log multiple system terminals synchronously WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USE_RC_SUBR= ${PORTNAME} MAN1= termlog.1 PLIST_FILES= bin/termlog do-install: ${INSTALL_PROGRAM} ${WRKSRC}/termlog ${PREFIX}/bin/termlog ${INSTALL_MAN} ${WRKSRC}/termlog.1 ${MANPREFIX}/man/man1/termlog.1 .include Property changes on: head/security/termlog/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.12 \ No newline at end of property +1.13 \ No newline at end of property Index: head/security/termlog/files/termlog.in =================================================================== --- head/security/termlog/files/termlog.in (nonexistent) +++ head/security/termlog/files/termlog.in (revision 229422) @@ -0,0 +1,31 @@ +#!/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 0700 $termlog_log_dir +} + +run_rc_command "$1" Property changes on: head/security/termlog/files/termlog.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property