unRAID-NerdTools/plugin/NerdTools.plg
2022-10-10 00:57:01 +02:00

145 lines
3.8 KiB
XML

<?xml version='1.0' standalone='yes'?>
<!DOCTYPE PLUGIN [
<!ENTITY name "NerdTools">
<!ENTITY author "UnRAIDES">
<!ENTITY version "2022.10.10">
<!ENTITY md5 "1d54648f587ee7ad92756848000057f2">
<!ENTITY launch "Settings/&name;">
<!ENTITY github "UnRAIDES/unRAID-&name;">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/plugin/&name;.plg">
<!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;" min="6.11">
<CHANGES>
##&name;
###2022.10.10
Changed: axel-2.17.11
Added: ddrescue-1.26
Added: exiftool-12.47
Added: iftop-1.0pre4
Added: iotop-0.6
Added: lftp-4.9.2
Added: llfuse-1.4.2 package as dependency of borgbackup
Added: powertop-2.13
Changed: python-setuptools-57.5.0
Added: rsnapshot-1.4.4
###2022.10.09
Fixed: Reinstall packages
###2022.10.08
Fixed: The plugins column is changed by the current version
Fixed: The functionality to compare old versions is updated
###2022.10.05
Fixed: Remove packages on uninstalling plugin
###2022.10.04d
Fixed: Dependency for mediainfo package
Added: vim-9.0.0623 package
Added: libsodium-1.0.18 package as dependency of vim
Changed: jdupes-1.21
###2022.10.04c
Fixed: Bug with json file
###2022.10.04b
Fixed: Minor change for developer tools
###2022.10.04a
Fixed: Clean old code
Enhanced: Delete old packages
Changed: unrar6.12
Changed: uar-6.12
Changed: p7zip-17.04
Changed: mediainfo-22.06
Changed: libzen-0.4.39
Changed: libmediainfo-22.06 package as dependency of mediainfo
###2022.10.04
- Initial release
- Plugin based on NerdPack of dmacias72
- Cleaned code and deleted packages unused that are include on UnRAID 6.11
- New system for install packages
</CHANGES>
<!-- The 'pre-install' script. -->
<FILE Run="/usr/bin/php">
<INLINE>
<![CDATA[
<?
$version = parse_ini_file("/etc/unraid-version");
if ( version_compare($version['version'],"6.11", "<") )
{
echo "**********************************************************************\n";
echo "\n";
echo "NerdTools Requires Unraid version 6.11.0 or greater to run\n";
echo "\n";
echo "**********************************************************************\n";
exit(1);
}
?>
]]>
</INLINE>
</FILE>
<FILE Run="/bin/bash">
<INLINE>
# Remove old 'source' files
rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null &#124; grep -v '&version;')
</INLINE>
</FILE>
<!--
The 'install' script.
-->
<FILE Run="/bin/bash" Method="install">
<INLINE>
echo ""
echo "-----------------------------------------------------------"
echo " &name; has been installed."
echo ""
echo " Copyright 2022, &author;"
echo " Credits, based on NerdPack plugin of dmacias72, eschultz"
echo " Version: &version;"
echo "-----------------------------------------------------------"
echo ""
</INLINE>
</FILE>
<FILE Name="/boot/config/plugins/&name;/&name;-&version;-x86_64-1.txz" Run="upgradepkg --install-new --reinstall">
<URL>https://raw.githubusercontent.com/UnRAIDES/unRAID-&name;/main/archive/&name;-&version;-x86_64-1.txz</URL>
<MD5>&md5;</MD5>
</FILE>
<!--
The 'remove' script.
-->
<FILE Run="/bin/bash" Method="remove">
<INLINE>
removepkg &plgPATH;/&plgNAME;.txz
rm -rf &emhttp;
rm -f &plgPATH;/&plgNAME;.txz
removepkg /boot/extra/*_nerdtools.txz 1>/dev/null
rm -f /boot/exta/*_nerdtools.txz 1>/dev/null
rm -f /boot/config/plugins/NerdTools 1>/dev/null
echo ""
echo "-----------------------------------------------------------"
echo " &name; has been removed."
echo " Copyright 2022, &author;"
echo " Credits, based on NerdPack plugin of dmacias72, eschultz"
echo " Version: &version;"
echo "-----------------------------------------------------------"
echo ""
</INLINE>
</FILE>
</PLUGIN>