From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 22 16:00:04 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A209EE79 for ; Mon, 22 Jul 2013 16:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 85E4E25FB for ; Mon, 22 Jul 2013 16:00:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6MG04RU015242 for ; Mon, 22 Jul 2013 16:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6MG04lX015241; Mon, 22 Jul 2013 16:00:04 GMT (envelope-from gnats) Resent-Date: Mon, 22 Jul 2013 16:00:04 GMT Resent-Message-Id: <201307221600.r6MG04lX015241@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, Oleg Ginzburg Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4648CE1A for ; Mon, 22 Jul 2013 15:58:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3705525E8 for ; Mon, 22 Jul 2013 15:58:42 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6MFwflg089519 for ; Mon, 22 Jul 2013 15:58:41 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6MFwfH8089518; Mon, 22 Jul 2013 15:58:41 GMT (envelope-from nobody) Message-Id: <201307221558.r6MFwfH8089518@oldred.freebsd.org> Date: Mon, 22 Jul 2013 15:58:41 GMT From: Oleg Ginzburg To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180738: sysutils/bacula-server fix rcvar in bacula-sd rc.d scripts X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 16:00:04 -0000 >Number: 180738 >Category: ports >Synopsis: sysutils/bacula-server fix rcvar in bacula-sd rc.d scripts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jul 22 16:00:03 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Oleg Ginzburg >Release: >Organization: >Environment: >Description: /usr/ports/sysutils/bacula-server/files/bacula-sd.in have wrong rcvar value. With current setting, fresh install of the bacula-server try to start sd without corresponding params in rc.conf: # service bacula-sd start /usr/local/etc/rc.d/bacula-sd: set_rcvar: not found Starting bacula_sd. 22-Jul 19:49 bacula-sd: ERROR TERMINATION at parse_conf.c:918 Config error: Cannot open config file "/usr/local/etc/bacula/bacula-sd.conf": No such file or directory /usr/local/etc/rc.d/bacula-sd: WARNING: failed to start bacula_sd >How-To-Repeat: make -C /usr/ports/sysutils/bacula-server install service bacula-sd start >Fix: change to rcvar=${name}_enable Patch attached with submission follows: diff -ruN bacula-server.bak/Makefile bacula-server/Makefile --- bacula-server.bak/Makefile 2013-07-22 12:46:21.000000000 +0400 +++ bacula-server/Makefile 2013-07-22 19:56:15.000000000 +0400 @@ -3,7 +3,7 @@ PORTNAME= bacula DISTVERSION= 5.2.12 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES?= sysutils MASTER_SITES= SF/bacula/bacula/${PORTVERSION} PKGNAMEPREFIX?= # diff -ruN bacula-server.bak/files/bacula-sd.in bacula-server/files/bacula-sd.in --- bacula-server.bak/files/bacula-sd.in 2013-07-22 12:46:21.000000000 +0400 +++ bacula-server/files/bacula-sd.in 2013-07-22 19:53:07.000000000 +0400 @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_sd" -rcvar=`set_rcvar` +rcvar=${name}_enable command=%%PREFIX%%/sbin/bacula-sd load_rc_config $name >Release-Note: >Audit-Trail: >Unformatted: