From 24f344bb5a2865e1ea9347ff7e98f9d5034e5dd0 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 22 Aug 2022 16:11:39 +0000 Subject: [PATCH] Add PKG_ROOTDIR support for building pfSense-pkg-* --- net/pfSense-pkg-Avahi/files/pkg-install.in | 2 +- net/pfSense-pkg-LADVD/files/pkg-install.in | 2 +- net/pfSense-pkg-Status_Traffic_Totals/files/pkg-install.in | 2 +- net/pfSense-pkg-WireGuard/files/pkg-install.in | 2 +- net/pfSense-pkg-arping/files/pkg-install.in | 2 +- net/pfSense-pkg-cellular/files/pkg-install.in | 2 +- net/pfSense-pkg-freeradius3/files/pkg-install.in | 2 +- net/pfSense-pkg-frr/files/pkg-install.in | 2 +- net/pfSense-pkg-haproxy-devel/files/pkg-install.in | 2 +- net/pfSense-pkg-haproxy/files/pkg-install.in | 2 +- net/pfSense-pkg-mtr-nox11/files/pkg-install.in | 2 +- net/pfSense-pkg-ntopng/files/pkg-install.in | 2 +- net/pfSense-pkg-pfBlockerNG-devel/files/pkg-install.in | 2 +- net/pfSense-pkg-pfBlockerNG/files/pkg-install.in | 2 +- net/pfSense-pkg-pimd/files/pkg-install.in | 2 +- net/pfSense-pkg-siproxd/files/pkg-install.in | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/net/pfSense-pkg-Avahi/files/pkg-install.in b/net/pfSense-pkg-Avahi/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-Avahi/files/pkg-install.in +++ b/net/pfSense-pkg-Avahi/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-LADVD/files/pkg-install.in b/net/pfSense-pkg-LADVD/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-LADVD/files/pkg-install.in +++ b/net/pfSense-pkg-LADVD/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-Status_Traffic_Totals/files/pkg-install.in b/net/pfSense-pkg-Status_Traffic_Totals/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-Status_Traffic_Totals/files/pkg-install.in +++ b/net/pfSense-pkg-Status_Traffic_Totals/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-WireGuard/files/pkg-install.in b/net/pfSense-pkg-WireGuard/files/pkg-install.in index 469f52120815..c192d05db62d 100644 --- a/net/pfSense-pkg-WireGuard/files/pkg-install.in +++ b/net/pfSense-pkg-WireGuard/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} \ No newline at end of file +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-arping/files/pkg-install.in b/net/pfSense-pkg-arping/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-arping/files/pkg-install.in +++ b/net/pfSense-pkg-arping/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-cellular/files/pkg-install.in b/net/pfSense-pkg-cellular/files/pkg-install.in index 469f52120815..c192d05db62d 100644 --- a/net/pfSense-pkg-cellular/files/pkg-install.in +++ b/net/pfSense-pkg-cellular/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} \ No newline at end of file +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-freeradius3/files/pkg-install.in b/net/pfSense-pkg-freeradius3/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-freeradius3/files/pkg-install.in +++ b/net/pfSense-pkg-freeradius3/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-frr/files/pkg-install.in b/net/pfSense-pkg-frr/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-frr/files/pkg-install.in +++ b/net/pfSense-pkg-frr/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-haproxy-devel/files/pkg-install.in b/net/pfSense-pkg-haproxy-devel/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-haproxy-devel/files/pkg-install.in +++ b/net/pfSense-pkg-haproxy-devel/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-haproxy/files/pkg-install.in b/net/pfSense-pkg-haproxy/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-haproxy/files/pkg-install.in +++ b/net/pfSense-pkg-haproxy/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-mtr-nox11/files/pkg-install.in b/net/pfSense-pkg-mtr-nox11/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-mtr-nox11/files/pkg-install.in +++ b/net/pfSense-pkg-mtr-nox11/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-ntopng/files/pkg-install.in b/net/pfSense-pkg-ntopng/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-ntopng/files/pkg-install.in +++ b/net/pfSense-pkg-ntopng/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-pfBlockerNG-devel/files/pkg-install.in b/net/pfSense-pkg-pfBlockerNG-devel/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-pfBlockerNG-devel/files/pkg-install.in +++ b/net/pfSense-pkg-pfBlockerNG-devel/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-pfBlockerNG/files/pkg-install.in b/net/pfSense-pkg-pfBlockerNG/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-pfBlockerNG/files/pkg-install.in +++ b/net/pfSense-pkg-pfBlockerNG/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-pimd/files/pkg-install.in b/net/pfSense-pkg-pimd/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-pimd/files/pkg-install.in +++ b/net/pfSense-pkg-pimd/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2} diff --git a/net/pfSense-pkg-siproxd/files/pkg-install.in b/net/pfSense-pkg-siproxd/files/pkg-install.in index 25b18865994c..c192d05db62d 100644 --- a/net/pfSense-pkg-siproxd/files/pkg-install.in +++ b/net/pfSense-pkg-siproxd/files/pkg-install.in @@ -4,4 +4,4 @@ if [ "${2}" != "POST-INSTALL" ]; then exit 0 fi -/usr/local/bin/php -f /etc/rc.packages %%PORTNAME%% ${2} +${PKG_ROOTDIR}/usr/local/bin/php -f ${PKG_ROOTDIR}/etc/rc.packages %%PORTNAME%% ${2}