From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 13 07:30:30 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFAA416A4CF for ; Mon, 13 Dec 2004 07:30:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A49E43D49 for ; Mon, 13 Dec 2004 07:30:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBD7UTsm049506 for ; Mon, 13 Dec 2004 07:30:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBD7UTfK049491; Mon, 13 Dec 2004 07:30:29 GMT (envelope-from gnats) Resent-Date: Mon, 13 Dec 2004 07:30:29 GMT Resent-Message-Id: <200412130730.iBD7UTfK049491@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roman Bogorodskiy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABA1316A522 for ; Mon, 13 Dec 2004 07:25:58 +0000 (GMT) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDFE043D5C for ; Mon, 13 Dec 2004 07:25:57 +0000 (GMT) (envelope-from bogorodskiy@inbox.ru) Received: from [194.186.150.217] (port=62789 helo=novel.zapto.org) by mx2.mail.ru with esmtp id 1Cdkah-0008Bx-00 for FreeBSD-gnats-submit@freebsd.org; Mon, 13 Dec 2004 10:25:56 +0300 Message-Id: Date: Mon, 13 Dec 2004 10:25:56 +0300 From: Roman Bogorodskiy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/75009: [ maintainer ] security/scanlogd: install rc script, minor fixes X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Roman Bogorodskiy List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 07:30:31 -0000 >Number: 75009 >Category: ports >Synopsis: [ maintainer ] security/scanlogd: install rc script, minor fixes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Dec 13 07:30:28 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Roman Bogorodskiy >Release: FreeBSD 5.3-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD lame.novel.ru 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #3: Sat Dec 11 21:01:26 MSK 2004 root@lame.novel.ru:/usr/obj/usr/src/sys/MIRRORBOX i386 >Description: - install rc script - do all LIBNIDS stuff in the one "if" block instead of two ones - bump PORTREVISION >How-To-Repeat: >Fix: --- port.scanlogd.rc begins here --- diff -ruN scanlogd.orig/Makefile scanlogd/Makefile --- scanlogd.orig/Makefile Mon Dec 13 09:42:48 2004 +++ scanlogd/Makefile Mon Dec 13 10:18:42 2004 @@ -7,6 +7,7 @@ PORTNAME= scanlogd PORTVERSION= 2.2.5 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://openwall.com/scanlogd/ \ ftp://ftp.openwall.com/pub/projects/scanlogd/ \ @@ -15,11 +16,10 @@ MAINTAINER= bogorodskiy@inbox.ru COMMENT= TCP port scan detection tool -.if defined(WITH_LIBNIDS) -BUILD_DEPENDS+= ${LOCALBASE}/lib/libnids.a:${PORTSDIR}/net/libnids -.endif +USE_RC_SUBR= yes .if defined(WITH_LIBNIDS) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libnids.a:${PORTSDIR}/net/libnids ALL_TARGET= libnids .else ALL_TARGET= libpcap @@ -27,13 +27,20 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -c" LD="${CC}" MAN8= scanlogd.8 -PLIST_FILES= bin/scanlogd +PLIST_FILES= bin/scanlogd \ + etc/rc.d/scanlogd.sh + +RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ + RC_SUBR=${RC_SUBR} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/scanlogd ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/scanlogd.8 ${MANPREFIX}/man/man8 post-install: - @${CAT} ${PKGMESSAGE} + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/scanlogd.sh > ${PREFIX}/etc/rc.d/scanlogd.sh + @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/scanlogd.sh + @${CAT} ${PKGMESSAGE} .include diff -ruN scanlogd.orig/files/scanlogd.sh scanlogd/files/scanlogd.sh --- scanlogd.orig/files/scanlogd.sh Thu Jan 1 03:00:00 1970 +++ scanlogd/files/scanlogd.sh Mon Dec 13 09:53:40 2004 @@ -0,0 +1,26 @@ +#!/bin/sh + +# Start or stop scanlogd +# $FreeBSD$ + +# PROVIDE: scanlogd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown +# + +prefix=%%PREFIX%% + +scanlogd_enable=${scanlogd_enable:-"NO"} # Enable scanlogd +scanlogd_program="${prefix}/sbin/scanlogd" # Location of scanlogd +scanlogd_flags=${scanlogd_flags:-""} # Flags to scanlogd + +. %%RC_SUBR%% + +name="scanlogd" +rcvar=`set_rcvar` +command="${prefix}/sbin/${name}" +required_files="" + +load_rc_config $name +run_rc_command "$1" --- port.scanlogd.rc ends here --- >Release-Note: >Audit-Trail: >Unformatted: