ports/79151: [PATCH] net/zebra: add message how to run on package install

sem at FreeBSD.org sem at FreeBSD.org
Wed Mar 23 06:40:03 UTC 2005


>Number:         79151
>Category:       ports
>Synopsis:       [PATCH] net/zebra: add message how to run on package install
>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:   Wed Mar 23 06:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD fog.mbrd.ru 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #4: Tue Feb  1 14:53:33 MSK
>Description:
The port does not show message how to run when package installed.
So add the message and make it more noticeable.

- Add file files/pkg-message.in

Port maintainer (sumikawa at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- zebra-0.94_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/zebra/Makefile,v
retrieving revision 1.79
diff -u -u -r1.79 Makefile
--- Makefile	7 Feb 2005 12:36:46 -0000	1.79
+++ Makefile	23 Mar 2005 06:26:39 -0000
@@ -18,6 +18,8 @@
 MAINTAINER=	sumikawa at FreeBSD.org
 COMMENT=	Free RIPv1, RIPv2, OSPFv2, BGP4 route software (server/reflector)
 
+PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_FILES=	pkg-message
 USE_SUBMAKE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc/zebra
@@ -114,11 +116,7 @@
 		< ${FILESDIR}/zebractl.sh  \
 		> ${PREFIX}/sbin/zebractl
 	@${CHMOD} 555 ${PREFIX}/sbin/zebractl
-	@${ECHO} "Make these entries in /etc/rc.conf to start zebra:"
-	@${ECHO} "defaultrouter=\"NO\""
-	@${ECHO} "router_enable=\"YES\""
-	@${ECHO} "router=\"${PREFIX}/sbin/zebractl\""
-	@${ECHO} "router_flags=\"start\""
 	@${ECHO} "done."
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
--- zebra-0.94_2.patch ends here ---

--- pkg-message.in begins here ---
======================================================================
To run zebra you should add in your /etc/rc.conf these lines:

defaultrouter="NO"
router_enable="YES"
router="%%PREFIX%%/sbin/zebractl"
router_flags="start"

=====================================================================
--- pkg-message.in ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list