freebsd-ports/sysutils/gsmartcontrol/files/patch-data_gsmartcontrol-root.in
Pawel Pekala 269c7b4853 - Add patch to recognize FreeBSD ATA CAM devices - ada(4) [1]
- Fix launching from desktop entry - now sudoing actually works

PR:		ports/161264 [1]
Submitted by:	olgeni@ [1]
Approved by:	miwi, wen (mentors implicit)
2011-10-03 21:53:07 +00:00

17 lines
643 B
Text

--- data/gsmartcontrol-root.in.orig 2011-04-30 20:39:54.000000000 +0200
+++ data/gsmartcontrol-root.in 2011-10-03 23:31:02.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
############################################################################
# Copyright:
# (C) 2008 - 2010 Alexander Shaduri <ashaduri 'at' gmail.com>
@@ -88,7 +88,7 @@
# the user's env after all).
# Note that beesu won't show a GUI login box if /usr/sbin is before /usr/bin,
# so add it first as well.
-EXTRA_PATHS="/usr/bin:/usr/sbin:/usr/local/sbin";
+EXTRA_PATHS="/usr/bin:/usr/sbin:@prefix@/sbin";
export PATH="$EXTRA_PATHS:$PATH"