Date: Mon, 13 Dec 2004 10:25:56 +0300 From: Roman Bogorodskiy <bogorodskiy@inbox.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/75009: [ maintainer ] security/scanlogd: install rc script, minor fixes Message-ID: <E1Cdkah-0008Bx-00.bogorodskiy-inbox-ru@mx2.mail.ru> Resent-Message-ID: <200412130730.iBD7UTfK049491@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Cdkah-0008Bx-00.bogorodskiy-inbox-ru>