aboutsummaryrefslogtreecommitdiff
path: root/www/resin2/files/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/resin2/files/install.sh')
-rw-r--r--www/resin2/files/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/www/resin2/files/install.sh b/www/resin2/files/install.sh
index b7497633e60d..76eb53923d07 100644
--- a/www/resin2/files/install.sh
+++ b/www/resin2/files/install.sh
@@ -1,4 +1,6 @@
#! /bin/sh
+#
+# $FreeBSD$
set -e
@@ -28,7 +30,7 @@ install %%WRKDIR%%/resin.sh.in %%PREFIX%%/etc/rc.d/%%APP_NAME%%.sh
chmod 755 %%PREFIX%%/etc/rc.d/%%APP_NAME%%.sh
echo Installed %%PREFIX%%/etc/rc.d/%%APP_NAME%%.sh
-install %%WRKSRC%%/bin/wrapper.pl %%PREFIX%%/sbin/%%APP_NAME%%ctl
+install %%WRKDIR%%/resinctl %%PREFIX%%/sbin/%%APP_NAME%%ctl
echo Installed %%PREFIX%%/sbin/%%APP_NAME%%ctl
test -d %%APP_HOME%% || mkdir %%APP_HOME%%
@@ -45,4 +47,4 @@ list()
( cd %%WRKSRC%% && find %%COPYDIRS%% -type d -empty -delete )
echo Installing in %%APP_HOME%%
-list | xargs tar -C %%WRKSRC%% -cf- | tar -C %%APP_HOME%% -xpf-
+list | ( cd %%WRKSRC%% && cpio -pdm -L -R $RUNASUSER:$GROUP %%APP_HOME%% )