summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2020-02-24 14:20:52 +0000
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2020-02-24 14:20:52 +0000
commita4defe210b46ea95a8651ce0a4ee7035488d15b2 (patch)
tree5a7e64c588efe2e4bb7bc95e1cff3d788ea526e5
parentsysutils/javaservicewrapper: Update to 3.5.41 (diff)
sysutils/pot: adopt PREFIX in the rc script
Remove hard-coded /usr/local and use %%PREFIX%% Reported by: jbeich@
-rw-r--r--sysutils/pot/Makefile1
-rw-r--r--sysutils/pot/files/pot.in18
2 files changed, 10 insertions, 9 deletions
diff --git a/sysutils/pot/Makefile b/sysutils/pot/Makefile
index 11fa4c7fea41..df9b99dc99fe 100644
--- a/sysutils/pot/Makefile
+++ b/sysutils/pot/Makefile
@@ -3,6 +3,7 @@
PORTNAME= pot
PORTVERSION= 0.10.4
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= pizzamig@FreeBSD.org
diff --git a/sysutils/pot/files/pot.in b/sysutils/pot/files/pot.in
index 9fb06a01702b..eac1d01b6066 100644
--- a/sysutils/pot/files/pot.in
+++ b/sysutils/pot/files/pot.in
@@ -8,7 +8,7 @@
. /etc/rc.subr
-PATH=$PATH:/usr/local/bin
+PATH=$PATH:%%PREFIX%%/bin
name="pot"
desc="Pot containers"
procname="pot"
@@ -41,10 +41,10 @@ pot_deprecated_stop()
pot_start()
{
local _pname _dyn_pot_list _start
- _dyn_pot_list=$(/usr/local/bin/pot ls -q)
+ _dyn_pot_list=$(%%PREFIX%%/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
- if _start=$( /usr/local/bin/pot get-attr -p "$_pname" -A start-at-boot -q ) && [ "$_start" = "YES" ]; then
- /usr/local/bin/pot start "$_pname"
+ if _start=$( %%PREFIX%%/bin/pot get-attr -p "$_pname" -A start-at-boot -q ) && [ "$_start" = "YES" ]; then
+ %%PREFIX%%/bin/pot start "$_pname"
fi
done
}
@@ -52,10 +52,10 @@ pot_start()
pot_stop()
{
local _pname _dyn_pot_list _start
- _dyn_pot_list=$(/usr/local/bin/pot ls -q)
+ _dyn_pot_list=$(%%PREFIX%%/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
- if _start=$( /usr/local/bin/pot get-attr -p "$_pname" -A start-at-boot -q ) && [ "$_start" = "YES" ]; then
- /usr/local/bin/pot stop "$_pname"
+ if _start=$( %%PREFIX%%/bin/pot get-attr -p "$_pname" -A start-at-boot -q ) && [ "$_start" = "YES" ]; then
+ %%PREFIX%%/bin/pot stop "$_pname"
fi
done
}
@@ -73,8 +73,8 @@ pot_status()
{
local _pname _dyn_pot_list _start
for _pname in $_dyn_pot_list ; do
- if _start=$( /usr/local/bin/pot get-attr -p "$_pname" -A start-at-boot -q ) && [ "$_start" = "YES" ]; then
- if /usr/local/bin/pot info -qrp "$_pname" ; then
+ if _start=$( %%PREFIX%%/bin/pot get-attr -p "$_pname" -A start-at-boot -q ) && [ "$_start" = "YES" ]; then
+ if %%PREFIX%%/bin/pot info -qrp "$_pname" ; then
echo "pot $_pname is up and running"
else
echo "pot $_pname is not running"