Files
unraid-age/age.plg
2024-12-19 11:05:14 +01:00

111 lines
3.3 KiB
XML

<?xml version='1.0' standalone='yes'?>
<!DOCTYPE PLUGIN [
<!ENTITY name "age">
<!ENTITY author "ich777">
<!ENTITY version "2024.12.18">
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-age/master">
<!ENTITY pluginURL "&gitURL;/age.plg">
<!ENTITY md5 "b92c92bf1c055dd9c8767e323b9e4a7a">
<!ENTITY plugin "/boot/config/plugins/age">
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="6.9.0" support="https://forums.unraid.net/topic/110023-plugin-age/" icon="lock">
<CHANGES>
###2024.12.18
- Bumped version to age v1.2.1
###2024.06.16
- Bumped version to age v1.2.0
###2023.06.15
- Bumped version to age v1.1.1
###2022.12.26
- Bumped version to age v1.1.0
###2021.09.06
- Bumped version to age v1.0.0
###2021.06.15
- Bumped version to age v1.0.0.-rc3
###2021.06.10
- Fixed age-keygen error
###2021.06.05
- Initial release based on age v1.0.0-rc.2
</CHANGES>
<FILE Run="/bin/bash">
<INLINE>
rm -f $(ls &plugin;/&name;*.txz 2>/dev/null|grep -v '&version;')
</INLINE>
</FILE>
<FILE Name="&plugin;/&name;-&version;.tgz" Run="upgradepkg --install-new">
<URL>&gitURL;/packages/&name;-&version;.tgz</URL>
<MD5>&md5;</MD5>
</FILE>
<FILE Name="&emhttp;/README.md">
<INLINE>
**age**
Is a simple, modern and secure file encryption tool. It features small explicit keys, no config options, and UNIX-style composability. You can get more details here: https://github.com/FiloSottile/age
For examples how to use age please visit the support thread.
</INLINE>
</FILE>
<FILE Run="/bin/bash">
<INLINE>
if [ ! -f /boot/config/key.age ]; then
echo
echo "---Creating 'key.age'---"
age-keygen -o /boot/config/key.age &gt; /dev/null 2&gt;&amp;1
echo
echo "----------------------------------------------------------------------------"
echo "-----'key.age' successfully created in directory '/boot/config' please------"
echo "--------------make sure to also save this key somewhere save!---------------"
echo "----------------------------------------------------------------------------"
echo
echo "---------ATTENTION - ATTENTION - ATTENTION - ATTENTION - ATTENTION----------"
echo "---IF YOU LOOSE THIS KEY YOU CAN'T DECRYPT FILES ENCRYPTED WITH THIS KEY!---"
echo "---------ATTENTION - ATTENTION - ATTENTION - ATTENTION - ATTENTION----------"
else
echo
echo "----------------Found existing 'key.age' in '/boot/config'!-----------------"
fi
echo
</INLINE>
</FILE>
<FILE Run="/bin/bash" Method="remove">
<INLINE>
echo "------------------------------"
echo "-------Uninstalling age-------"
echo "------------------------------"
# Remove plugin related files
removepkg &name;-&version;.tgz
rm -rf &plugin;
echo
echo "----------------------------------------------------------"
echo "--------------------age uninstalled!----------------------"
echo "----------------------------------------------------------"
echo
echo "------ATTENTION - ATTENTION - ATTENTION - ATTENTION-------"
echo "---Please don't forget to save your 'key.age' file that---"
echo "---is located in your config directory on your USB Boot---"
echo "------device if you have somewhere encrypted files!-------"
echo "------ATTENTION - ATTENTION - ATTENTION - ATTENTION-------"
echo
</INLINE>
</FILE>
</PLUGIN>