Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2014 14:45:01 +1000
From:      Andrew Reilly <areilly@bigpond.net.au>
To:        cy@freebsd.org, itetcu@freebsd.org, ports@freebsd.org
Subject:   Re: Upgrade to sysutils/nut-2.7.2 yesterday broke rc.d scripts by deleting libexec/nut/upsdrvctl
Message-ID:  <F7EEE4A9-E6C5-4433-8AD6-D9E1F434E58A@bigpond.net.au>
In-Reply-To: <EA76AC0F-1882-4BD7-883A-C6FE3D863718@bigpond.net.au>
References:  <EA76AC0F-1882-4BD7-883A-C6FE3D863718@bigpond.net.au>

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

--Apple-Mail=_D2D5439C-D364-49AE-AAD3-FDCB7E3416A2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hi again,

Found it: it has moved to /usr/local/sbin.  So the attached patch is =
needed to the sysutils/nut port.  Works for me.

--Apple-Mail=_D2D5439C-D364-49AE-AAD3-FDCB7E3416A2
Content-Disposition: attachment;
	filename=nut.in.diff
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="nut.in.diff"
Content-Transfer-Encoding: 7bit

--- nut.in.orig	2014-07-05 14:39:50.947539562 +1000
+++ nut.in	2014-07-05 14:41:34.335532042 +1000
@@ -34,11 +34,11 @@
 stop_postcmd="nut_poststop"
 
 nut_prestart() {
-	${nut_prefix}/libexec/nut/upsdrvctl start
+	${nut_prefix}/sbin/upsdrvctl start
 }
 
 nut_poststop() {
-	${nut_prefix}/libexec/nut/upsdrvctl stop
+	${nut_prefix}/sbin/upsdrvctl stop
 }
 
 extra_commands=reload

--Apple-Mail=_D2D5439C-D364-49AE-AAD3-FDCB7E3416A2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


Cheers,

=97=20
Andrew

On 5 Jul 2014, at 14:14 , Andrew Reilly <areilly@bigpond.net.au> wrote:

> Hi cy, itetcu,
>=20
> An upgrade to the sysutils/nut port happened on Friday July 4, and was =
portmaster -a=92d on my system this morning, and now doesn=92t start =
properly.  Specifically rc.d/nut has a prestart command that attempts to =
run "/usr/local/libexec/upsdrvctl start", but that file was deleted by =
this change.
> =
http://svnweb.freebsd.org/ports/head/sysutils/nut/pkg-plist?r1=3D360497&r2=
=3D360496&pathrev=3D360497
>=20
> I didn=92t see any descriptions or work-arounds in UPDATING.  Any =
suggestions for how to proceed?
>=20
> Cheers,
>=20
> =97=20
> Andrew
>=20


--Apple-Mail=_D2D5439C-D364-49AE-AAD3-FDCB7E3416A2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F7EEE4A9-E6C5-4433-8AD6-D9E1F434E58A>