From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 12 19:10:12 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 EFC6E16A41F for ; Mon, 12 Sep 2005 19:10:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BC6943D5F for ; Mon, 12 Sep 2005 19:10:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8CJA9Rw092815 for ; Mon, 12 Sep 2005 19:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CJA9MV092814; Mon, 12 Sep 2005 19:10:09 GMT (envelope-from gnats) Resent-Date: Mon, 12 Sep 2005 19:10:09 GMT Resent-Message-Id: <200509121910.j8CJA9MV092814@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, Evgeniy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1331F16A41F for ; Mon, 12 Sep 2005 19:09:35 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D65C143D45 for ; Mon, 12 Sep 2005 19:09:34 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j8CJ9Y86006788 for ; Mon, 12 Sep 2005 19:09:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j8CJ9Y2E006787; Mon, 12 Sep 2005 19:09:34 GMT (envelope-from nobody) Message-Id: <200509121909.j8CJ9Y2E006787@www.freebsd.org> Date: Mon, 12 Sep 2005 19:09:34 GMT From: Evgeniy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/86023: [PATCH] rc.d script for freenet port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 19:10:12 -0000 >Number: 86023 >Category: ports >Synopsis: [PATCH] rc.d script for freenet port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 12 19:10:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Evgeniy >Release: FreeBSD 5.4-RELEASE >Organization: no >Environment: FreeBSD cage.localdomain 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: In freenet package there is freenet script, to start freenet after system boot, you need exec something like this (freenet -i). As I know, there is common way to do it in FreeBSD: script in /usr/local/etc/rc.d and line in /etc/rc.conf, like this: script_enable="YES" And I suppose, will be good have such feature for freenet by default. PS I email to mantainer of freenet, but without luck. >How-To-Repeat: >Fix: diff -urN /root/backup/freenet/Makefile /usr/ports/net/freenet/Makefile --- /root/backup/freenet/Makefile Sat Sep 3 00:47:54 2005 +++ /usr/ports/net/freenet/Makefile Sat Sep 3 01:24:20 2005 @@ -74,5 +74,6 @@ post-install: @${CAT} ${PKGMESSAGE} + @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/freenet.sh ${PREFIX}/etc/rc.d/freenet.sh .include diff -urN /root/backup/freenet/files/freenet.sh /usr/ports/net/freenet/files/freenet.sh --- /root/backup/freenet/files/freenet.sh Thu Jan 1 00:00:00 1970 +++ /usr/ports/net/freenet/files/freenet.sh Sat Sep 3 00:25:17 2005 @@ -0,0 +1,16 @@ +#!/bin/sh + +PREFIX=/usr/local/bin + +case $1 in + start) + ${PREFIX}/freenet -i +;; + stop) + ${PREFIX}/freenet -o +;; +*) + echo "Usage: `basename $0` (start|stop)" >&2 ; + exit 64; +;; +esac >Release-Note: >Audit-Trail: >Unformatted: