* [spk] install executable by linking to /usr/local/bin/filebot

This commit is contained in:
Reinhard Pointner 2015-05-16 04:52:25 +00:00
parent 10ff5e8711
commit 784c1e2efc
4 changed files with 20 additions and 7 deletions

View File

@ -535,9 +535,14 @@
<info name="distributor" value="FileBot" />
<info name="distributor_url" value="http://www.filebot.net/" />
<info name="support_url" value="http://www.filebot.net/forums/" />
<info name="firmware" value="5.0" />
<info name="startable" value="no" />
<info name="helpurl" value="http://www.filebot.net/cli.html" />
<info name="firmware" value="5.0-4360" />
<info name="startable" value="no" />
<info name="silent_install" value="yes" />
<info name="silent_uninstall" value="yes" />
<info name="silent_upgrade" value="yes" />
<info name="thirdparty" value="yes" />
<info name="start_dep_services" value="ssh" />
<icon size="72" file="${dir.installer}/icons/icon72.png" />
<icon size="256" file="${dir.installer}/icons/icon256.png" />
@ -778,7 +783,7 @@
<include name="getting-started/**" />
</fileset>
</copy>
<!-- copy files and resolve ant variables -->
<echo message="Replace Ant variables" />
<copy todir="${dir.dist}/website" overwrite="yes" encoding="UTF-8" verbose="true">

View File

@ -4,8 +4,11 @@
mkdir -m 777 "$SYNOPKG_PKGDEST/data"
chown -R admin.users "$SYNOPKG_PKGDEST/data"
# create /usr/local/bin/[package] program link
ln -s "$SYNOPKG_PKGDEST/$SYNOPKG_PKGNAME.sh" "/usr/local/bin/$SYNOPKG_PKGNAME"
# create /usr/local/[package] link
ln -s "/var/packages/$SYNOPKG_PKGNAME/target" "/usr/local/$SYNOPKG_PKGNAME"
ln -s "$SYNOPKG_PKGDEST" "/usr/local/$SYNOPKG_PKGNAME"
# return successfully
exit 0

View File

@ -1,2 +1,9 @@
#!/bin/sh
# remove /usr/local/bin/[package] program link
rm "/usr/local/bin/$SYNOPKG_PKGNAME"
# remove /usr/local/[package] link
rm "/usr/local/$SYNOPKG_PKGNAME"
exit 0

View File

@ -1,19 +1,17 @@
#!/bin/sh
# symlink to /bin on START and unlink on STOP
APP_LINK="/usr/bin/$SYNOPKG_PKGNAME"
APP_LINK="/usr/local/bin/$SYNOPKG_PKGNAME"
APP_ROOT="$SYNOPKG_PKGDEST"
case "$1" in
start)
# When the user clicks the button "Run" to run the package, after the package is installed, or when the DiskStation is turned on.
ln -s "$APP_ROOT/filebot.sh" "$APP_LINK"
exit 0
;;
stop)
# When the user clicks the button "Stop" to stop the running package, before the package is uninstalled, or when the DiskStation is turned off.
rm -f "$APP_LINK"
exit 0
;;