2015-12-13 18:56:35 +00:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
|
|
|
|
<!DOCTYPE PLUGIN [
|
|
|
|
<!ENTITY name "NerdPack">
|
|
|
|
<!ENTITY author "dmacias72">
|
2016-01-10 10:20:03 +00:00
|
|
|
<!ENTITY version "2016.01.10">
|
2015-12-13 18:56:35 +00:00
|
|
|
<!ENTITY launch "Settings/&name;">
|
|
|
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
|
|
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
|
|
|
<!ENTITY pkgURL "&gitURL;/source/packages">
|
|
|
|
<!ENTITY plgpath "/boot/config/plugins/&name;">
|
|
|
|
<!ENTITY plgname "&name;-&version;-x86_64-1">
|
|
|
|
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
|
|
|
|
|
|
|
<CHANGES>
|
2016-01-10 10:20:03 +00:00
|
|
|
###2016.01.10
|
|
|
|
- added dynamic package description tootips
|
|
|
|
- updated tablesorter to v2.25.0
|
|
|
|
- add tablesorter widgets (filter, saveSort, stickyHeaders, hover-highlight)
|
|
|
|
- added cli options to packagemanager script
|
2015-12-30 10:07:49 +00:00
|
|
|
###2015.12.30
|
2015-12-30 10:00:11 +00:00
|
|
|
- create packages directory on install
|
2015-12-15 14:50:23 +00:00
|
|
|
###2015.12.15a
|
|
|
|
- remove command output
|
2015-12-15 07:21:53 +00:00
|
|
|
###2015.12.15
|
|
|
|
- minor fixes
|
2015-12-15 06:27:33 +00:00
|
|
|
###2015.12.14
|
2015-12-15 04:52:11 +00:00
|
|
|
- add update functions
|
2015-12-15 07:21:53 +00:00
|
|
|
- add delete package function
|
2015-12-14 08:28:47 +00:00
|
|
|
- fix some minor bugs
|
2015-12-13 18:56:35 +00:00
|
|
|
###2015.12.13
|
|
|
|
- initial commit of wrapper plugin for packages in repo
|
|
|
|
###2015.12.07
|
|
|
|
- Added perl 5.22.0
|
|
|
|
- Added vim 7.4.898 (thanks Ryan Detzel)
|
|
|
|
|
|
|
|
###2015.09.09
|
|
|
|
- Keep all packages installed after NerdPack uninstall so we don't break other plugin's dependancies. (thanks David Coppit)
|
|
|
|
|
|
|
|
###2015.08.09
|
|
|
|
- Added p7zip 9.38.1
|
|
|
|
|
|
|
|
###2015.07.31
|
|
|
|
- Added iperf 3.0.11
|
|
|
|
|
|
|
|
###2015.06.27
|
|
|
|
- Added sshfs 2.5
|
|
|
|
|
|
|
|
###2015.06.23
|
|
|
|
- Added python 2.7.9 (fixes iotop dependency)
|
|
|
|
|
|
|
|
###2015.05.16
|
|
|
|
- Added subversion 1.7.16
|
|
|
|
- Added MD5 checks for all packages
|
|
|
|
|
|
|
|
###2015.05.15
|
|
|
|
- Added lftp 4.6.1
|
|
|
|
- Replaced installpkg with upgradepkg to allow package upgrading
|
2016-01-10 10:20:03 +00:00
|
|
|
- Added removal of packages upon uninstall of NerdPack
|
2015-12-13 18:56:35 +00:00
|
|
|
|
|
|
|
###2015.04.29
|
|
|
|
- Added git 2.3.5
|
|
|
|
|
|
|
|
###2015.04.24
|
|
|
|
- Added strace 4.10
|
|
|
|
|
|
|
|
###2015.04.23
|
|
|
|
- Added bwm-ng 0.6
|
|
|
|
|
|
|
|
###2015.02.07
|
|
|
|
- Added unrar 5.2.5
|
|
|
|
|
|
|
|
###2015.01.06
|
|
|
|
- Inital release. includes:
|
|
|
|
- iftop 1.0pre2
|
|
|
|
- iotop 0.6
|
|
|
|
- screen 4.2.1
|
|
|
|
- lshw B.02.17
|
|
|
|
- kbd 1.15.3
|
|
|
|
- inotify-tools 3.14
|
|
|
|
- cpio 2.11
|
|
|
|
</CHANGES>
|
|
|
|
|
2016-01-10 10:20:03 +00:00
|
|
|
<!--
|
|
|
|
The Github repo packages file.
|
|
|
|
-->
|
|
|
|
<FILE Name="&plgpath;/packages.json">
|
|
|
|
<URL>&gitURL;/plugins/packages.json</URL>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The package description file.
|
|
|
|
-->
|
|
|
|
<FILE Name="&plgpath;/packages/packages-desc">
|
|
|
|
<URL>&gitURL;/plugins/packages/packages-desc</URL>
|
|
|
|
</FILE>
|
|
|
|
|
2015-12-13 18:56:35 +00:00
|
|
|
<!--
|
|
|
|
The 'plugin' package file.
|
|
|
|
-->
|
|
|
|
<FILE Name="&plgpath;/&plgname;.txz">
|
|
|
|
<URL>&gitURL;/archive/&plgname;.txz</URL>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'plugin' package MD5 hash.
|
|
|
|
-->
|
|
|
|
<FILE Name="&plgpath;/&plgname;.md5">
|
|
|
|
<URL>&gitURL;/archive/&plgname;.md5</URL>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'install' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash" Method="install">
|
|
|
|
<INLINE>
|
2015-12-20 08:58:07 +00:00
|
|
|
#Verify unRAID Version
|
|
|
|
source /etc/unraid-version
|
|
|
|
if [[ ${version:0:3} == 6.0 ]]; then
|
|
|
|
echo "unRAID version 6.1 or higher is required"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-12-13 18:56:35 +00:00
|
|
|
# Verify and install plugin package
|
|
|
|
sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz)
|
|
|
|
sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5)
|
|
|
|
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
|
|
|
echo "Wrong 'plugin' package md5 hash."
|
|
|
|
rm &plgpath;/&plgname;.txz \
|
|
|
|
&plgpath;/&plgname;.md5
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
upgradepkg --install-new &plgpath;/&plgname;.txz
|
|
|
|
fi
|
|
|
|
|
2015-12-30 10:00:11 +00:00
|
|
|
if [ ! -d &plgpath;/packages ]; then
|
|
|
|
mkdir &plgpath;/packages
|
|
|
|
fi
|
|
|
|
|
2015-12-13 18:56:35 +00:00
|
|
|
# Update file permissions of scripts
|
|
|
|
chmod +0755 &emhttp;/scripts/*
|
|
|
|
|
|
|
|
# Cleaning old source files
|
|
|
|
find &plgpath;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
|
|
|
find &plgpath;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo " &name; has been installed."
|
|
|
|
echo " This plugin requires Dynamix webGui to operate"
|
2016-01-10 10:20:03 +00:00
|
|
|
echo " Copyright 2016, &author;, eschultz"
|
2015-12-13 18:56:35 +00:00
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'remove' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash" Method="remove">
|
|
|
|
<INLINE>
|
2015-12-14 08:41:21 +00:00
|
|
|
removepkg &plgpath;/&plgname;.txz
|
|
|
|
rm -rf &emhttp;
|
|
|
|
rm -f &plgpath;/&plgname;.txz
|
|
|
|
rm -f &plgpath;/&plgname;.md5
|
2015-12-13 18:56:35 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo " &name; has been removed."
|
2016-01-10 10:20:03 +00:00
|
|
|
echo " Copyright 2016, &author;, eschultz"
|
2015-12-13 18:56:35 +00:00
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
</PLUGIN>
|
2015-12-20 08:58:07 +00:00
|
|
|
|