<?xml version="1.0"?>
<!DOCTYPE PLUGIN [
<!ENTITY name "backupper">
<!ENTITY author "Backupper Project">
<!ENTITY version "0.1.0">
<!ENTITY pluginURL "https://git.casaderoll.de/michael/BackUpper/raw/branch/main/dist/backupper.plg">
<!ENTITY packageURL "https://git.casaderoll.de/michael/BackUpper/raw/branch/main/dist/backupper-&version;-x86_64-1.txz">
<!ENTITY packageSHA256 "9c8cff4604b2a2ddf9b961e0f006d68202862598c17e384f5bab4186a5185f23">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0" support="https://github.com/backupper-unraid/backupper/issues">
  <CHANGES>
### 0.1.0
- Initial MVP release.
  </CHANGES>
  <FILE Name="/boot/config/plugins/&name;/backupper-&version;-x86_64-1.txz" Run="upgradepkg --install-new">
    <URL>&packageURL;</URL>
    <SHA256>&packageSHA256;</SHA256>
  </FILE>
  <FILE Run="/bin/bash">
    <INLINE>
chmod 0700 /boot/config/plugins/&name;
/etc/rc.d/rc.backupper start
    </INLINE>
  </FILE>
  <FILE Run="/bin/bash" Method="remove">
    <INLINE>
/etc/rc.d/rc.backupper stop || true
removepkg &name;
rm -rf /usr/local/emhttp/plugins/&name; /usr/local/libexec/&name; /usr/local/sbin/backupperd /etc/rc.d/rc.backupper /run/backupper /var/lib/backupper
    </INLINE>
  </FILE>
</PLUGIN>
