2015-12-13 18:56:35 +00:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
|
|
|
|
<!DOCTYPE PLUGIN [
|
|
|
|
<!ENTITY name "NerdPack">
|
|
|
|
<!ENTITY author "dmacias72">
|
2017-10-01 08:32:53 +00:00
|
|
|
<!ENTITY version "2017.10.01b">
|
2015-12-13 18:56:35 +00:00
|
|
|
<!ENTITY launch "Settings/&name;">
|
2017-06-17 09:38:05 +00:00
|
|
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-&name;/master">
|
2017-06-17 10:34:42 +00:00
|
|
|
<!ENTITY pluginURL "&gitURL;/plugin/&name;.plg">
|
2016-09-16 20:39:44 +00:00
|
|
|
<!ENTITY pkgURL "&gitURL;/source/packages">
|
2016-10-10 23:06:04 +00:00
|
|
|
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
|
|
|
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
2016-09-16 20:39:44 +00:00
|
|
|
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
2015-12-13 18:56:35 +00:00
|
|
|
]>
|
|
|
|
|
|
|
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
|
|
|
|
|
|
|
<CHANGES>
|
2016-10-23 02:00:39 +00:00
|
|
|
##&name;
|
2017-10-01 08:32:53 +00:00
|
|
|
###2017.10.01b
|
2017-10-01 07:36:57 +00:00
|
|
|
- fix stickyheaders for new themes
|
|
|
|
- show status for installed packages but no dpwnloaded
|
|
|
|
- update tablesorter to 2.29.0
|
2017-09-25 03:54:33 +00:00
|
|
|
###2017.09.24
|
|
|
|
- show status of packages that are not installed
|
2017-07-09 04:58:18 +00:00
|
|
|
###2017.07.08
|
|
|
|
- fix check for downloaded package
|
2017-06-17 09:38:05 +00:00
|
|
|
###2017.06.17
|
|
|
|
- combine delete and uninstall switch
|
|
|
|
- add cleanup of old packages
|
|
|
|
- add support for azure and gray themes
|
|
|
|
- change to separate repo
|
|
|
|
- update tablesorter
|
|
|
|
###2017.02.06
|
2017-02-06 15:20:14 +00:00
|
|
|
- fix support link
|
|
|
|
- add perl toggle for vim
|
|
|
|
###2017.01.31
|
2017-01-31 05:38:30 +00:00
|
|
|
- move local tablesorter to cdn
|
|
|
|
- add support link to readme
|
|
|
|
###2016.10.20
|
2016-10-20 19:24:56 +00:00
|
|
|
- fix: php7 compatibility
|
2016-10-09 13:51:55 +00:00
|
|
|
###2016.10.09
|
|
|
|
- fix: not creating package directory
|
2016-10-08 21:41:48 +00:00
|
|
|
###2016.10.08
|
|
|
|
- fix: false positive of installed packages
|
2017-06-17 09:38:05 +00:00
|
|
|
- fix: packagemanager bug if cookies are missing
|
2016-09-18 19:51:12 +00:00
|
|
|
###2016.09.18
|
|
|
|
- fix: packagemanager array errors
|
2016-09-16 17:06:38 +00:00
|
|
|
###2016.09.16
|
2016-09-16 17:13:43 +00:00
|
|
|
- fix: empty package list on new install or upgrade
|
2016-09-16 17:06:38 +00:00
|
|
|
- update tablesorter to 2.27.6
|
2016-09-10 06:22:09 +00:00
|
|
|
###2016.09.10
|
|
|
|
- add: popup for unRAID version change or empty downloads folder
|
|
|
|
- add: always compare package checksums
|
|
|
|
- fix: remove corrupted packages
|
|
|
|
- fix: remove failed downloads
|
|
|
|
- fix: add package desc and json to scandir filter
|
2016-03-15 15:05:45 +00:00
|
|
|
###2016.03.15
|
|
|
|
- enable apply button if update ready
|
|
|
|
- fix: remove old package settings from config after package update
|
|
|
|
- create separate package repos for 6.1 and 6.2
|
|
|
|
- update plugin for unRAID 6.2 compatibility
|
|
|
|
- update packages for 6.2
|
2016-02-23 16:09:43 +00:00
|
|
|
###2016.02.23
|
|
|
|
- fix: search for a partial match of packages used in other plugins
|
2016-02-17 09:58:18 +00:00
|
|
|
###2016.02.17
|
|
|
|
- remove curl progress bar
|
|
|
|
- separate plugin depends by comma
|
|
|
|
- only show update status of selected packages when processing
|
2016-02-16 04:57:41 +00:00
|
|
|
###2016.02.15
|
|
|
|
- update tablesorter
|
2016-02-17 09:58:18 +00:00
|
|
|
- fix spacing of processing messages
|
2016-02-16 04:57:41 +00:00
|
|
|
- remove array start event package install
|
|
|
|
- move initial package install to plugin install
|
2016-02-08 20:06:36 +00:00
|
|
|
###2016.02.08
|
|
|
|
- fix permissions on event script
|
2016-02-02 18:39:07 +00:00
|
|
|
###2016.02.02
|
|
|
|
- add check for other plugin dependencies on uninstall
|
2016-01-25 15:58:25 +00:00
|
|
|
###2016.01.25
|
|
|
|
- Merge eschultz pull request
|
2016-09-16 20:39:44 +00:00
|
|
|
- tweaks to tablesorter to restore saved filters
|
2016-01-25 15:58:25 +00:00
|
|
|
- minor optimizations
|
2016-01-25 05:29:20 +00:00
|
|
|
###2016.01.24
|
|
|
|
- Merged eschultz's package repo and following fixes
|
|
|
|
- Fixed first time running warnings about missing packages.json / desc files
|
|
|
|
- Fixed bug preventing Select All from being toggle-able
|
|
|
|
- Fixed bug in Select All and dependent package checkboxes / race condition
|
|
|
|
- Eliminated vertical space gap between page header and table
|
2016-01-16 22:53:31 +00:00
|
|
|
###2016.01.16a
|
|
|
|
- add metric parser to sort units
|
2016-01-16 20:49:49 +00:00
|
|
|
###2016.01.16
|
|
|
|
- minor diplay changes
|
|
|
|
- add tablesorter as a separate package
|
2016-01-15 08:48:05 +00:00
|
|
|
###2016.01.15
|
|
|
|
- fix filter save
|
|
|
|
- add filter reset button
|
2016-01-10 11:13:58 +00:00
|
|
|
###2016.01.10a-c
|
2016-01-10 10:40:26 +00:00
|
|
|
- fix name of package description file
|
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-10-10 23:06:04 +00:00
|
|
|
<FILE Name="&plgPATH;/&name;.cfg">
|
2016-01-18 02:07:58 +00:00
|
|
|
<INLINE>
|
|
|
|
<![CDATA[
|
|
|
|
|
|
|
|
]]>
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
2015-12-13 18:56:35 +00:00
|
|
|
<!--
|
|
|
|
The 'plugin' package file.
|
|
|
|
-->
|
2016-10-10 23:06:04 +00:00
|
|
|
<FILE Name="&plgPATH;/&plgNAME;.txz">
|
|
|
|
<URL>&gitURL;/archive/&plgNAME;.txz</URL>
|
2015-12-13 18:56:35 +00:00
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'plugin' package MD5 hash.
|
|
|
|
-->
|
2016-10-10 23:06:04 +00:00
|
|
|
<FILE Name="&plgPATH;/&plgNAME;.md5">
|
|
|
|
<URL>&gitURL;/archive/&plgNAME;.md5</URL>
|
2015-12-13 18:56:35 +00:00
|
|
|
</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
|
2016-03-15 15:05:45 +00:00
|
|
|
VER=${version:0:3}
|
|
|
|
if [[ $VER == 6.0 ]]; then
|
2015-12-20 08:58:07 +00:00
|
|
|
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
|
2016-10-10 23:06:04 +00:00
|
|
|
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
|
|
|
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
2015-12-13 18:56:35 +00:00
|
|
|
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
2016-09-16 20:39:44 +00:00
|
|
|
echo "Wrong 'plugin' package md5 hash."
|
2016-10-10 23:06:04 +00:00
|
|
|
rm &plgPATH;/&plgNAME;.txz \
|
|
|
|
&plgPATH;/&plgNAME;.md5
|
2016-09-16 20:39:44 +00:00
|
|
|
exit 1
|
2015-12-13 18:56:35 +00:00
|
|
|
else
|
2016-09-16 20:39:44 +00:00
|
|
|
count=`ls -1 /boot/config/plugins/NerdPack/packages/*.txz 2>/dev/null | wc -l`
|
|
|
|
if [ $count != 0 ]; then
|
2016-10-10 23:06:04 +00:00
|
|
|
if [ ! -d &plgPATH;/packages/6.1 ]; then
|
|
|
|
mkdir -p &plgPATH;/packages/6.1
|
2016-09-16 20:39:44 +00:00
|
|
|
fi
|
|
|
|
echo "Moving package files..."
|
2016-10-10 23:06:04 +00:00
|
|
|
mv &plgPATH;/packages/*txz &plgPATH;/packages/6.1
|
2016-09-16 20:39:44 +00:00
|
|
|
fi
|
|
|
|
|
2016-10-10 23:06:04 +00:00
|
|
|
if [ ! -d &plgPATH;/packages/$VER ]; then
|
2017-06-17 09:49:20 +00:00
|
|
|
echo "Creating package directory.."
|
2016-10-10 23:06:04 +00:00
|
|
|
mkdir -p &plgPATH;/packages/$VER
|
2017-06-17 10:34:42 +00:00
|
|
|
|
|
|
|
#check for previous version
|
|
|
|
OLD=$(echo | awk "{print ${VER} - 0.1}")
|
2017-06-17 09:49:20 +00:00
|
|
|
if [ -d &plgPATH;/packages/${OLD} ]; then
|
2017-06-17 09:38:05 +00:00
|
|
|
count2=`ls -1 /boot/config/plugins/NerdPack/packages/${OLD}/*.txz 2>/dev/null | wc -l`
|
|
|
|
if [ $count2 != 0 ]; then
|
|
|
|
echo "Copying package files..."
|
|
|
|
cp &plgPATH;/packages/${OLD}/* &plgPATH;/packages/${VER}/
|
|
|
|
fi
|
2017-06-17 10:34:42 +00:00
|
|
|
else
|
|
|
|
#check for two versions ago
|
|
|
|
OLD2=$(echo | awk "{print ${VER} - 0.2}")
|
|
|
|
if [ -d &plgPATH;/packages/${OLD2} ]; then
|
|
|
|
count3=`ls -1 /boot/config/plugins/NerdPack/packages/${OLD2}/*.txz 2>/dev/null | wc -l`
|
|
|
|
if [ $count3 != 0 ]; then
|
|
|
|
echo "Copying package files..."
|
|
|
|
cp &plgPATH;/packages/${OLD2}/* &plgPATH;/packages/${VER}/
|
|
|
|
fi
|
|
|
|
fi
|
2017-06-17 09:38:05 +00:00
|
|
|
fi
|
2016-10-08 21:41:48 +00:00
|
|
|
fi
|
|
|
|
|
2016-10-10 23:06:04 +00:00
|
|
|
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
2016-09-16 20:39:44 +00:00
|
|
|
|
|
|
|
/usr/sbin/packagemanager
|
|
|
|
|
|
|
|
# Cleaning old source files
|
2016-10-10 23:06:04 +00:00
|
|
|
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
|
|
|
find &plgPATH;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
2015-12-13 18:56:35 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo " &name; has been installed."
|
|
|
|
echo " This plugin requires Dynamix webGui to operate"
|
2017-01-31 05:38:30 +00:00
|
|
|
echo " Copyright 2016-2017, &author;, eschultz"
|
2015-12-13 18:56:35 +00:00
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
2016-03-15 15:05:45 +00:00
|
|
|
fi
|
2015-12-13 18:56:35 +00:00
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'remove' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash" Method="remove">
|
|
|
|
<INLINE>
|
2016-10-10 23:06:04 +00:00
|
|
|
removepkg &plgPATH;/&plgNAME;.txz
|
2015-12-14 08:41:21 +00:00
|
|
|
rm -rf &emhttp;
|
2016-10-10 23:06:04 +00:00
|
|
|
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."
|
2017-01-31 05:38:30 +00:00
|
|
|
echo " Copyright 2016-2017, &author;, eschultz"
|
2015-12-13 18:56:35 +00:00
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
2016-02-16 04:57:41 +00:00
|
|
|
</PLUGIN>
|