Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2005 19:09:34 GMT
From:      Evgeniy <dushistov@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/86023: [PATCH] rc.d script for freenet port
Message-ID:  <200509121909.j8CJ9Y2E006787@www.freebsd.org>
Resent-Message-ID: <200509121910.j8CJA9MV092814@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509121909.j8CJ9Y2E006787>