123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?xml version='1.0' standalone='yes'?>
- <!DOCTYPE PLUGIN [
- <!ENTITY name "ewft.getmail">
- <!ENTITY author "EWFT">
- <!ENTITY version "2023.11.15a">
- <!ENTITY launch "Settings/ewft.getmail">
- <!ENTITY pluginURL "https://git.ewft.org/Unraid/ewft.getmail/raw/master/ewft.getmail.plg">
- <!ENTITY pkgURL "https://git.ewft.org/Unraid/ewft.getmail/raw/master/build/">
- <!ENTITY getmailpkg "getmail-6.03-x86_64-3">
- <!ENTITY getmailMD5 "338b106e1dd12d994be41d6815050ba5">
- <!ENTITY ewftgetmailpkg "ewft.getmail-2023.11.15a">
- <!ENTITY ewftgetmailMD5 "a598cb23fcf5611fabd47132c61e9454">
- <!ENTITY pluginLoc "/boot/config/plugins/&name;">
- ]>
- <PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.4.0">
- <CHANGES>
- ##&name;
- ###&version;
- ###2018.10.09
- - initial release
- ###2020.10.04
- - Update with getmail 6
- - patch for gmail
- ###2021.12.17
- - Update for python 3.9
- ### 2023.11.15
- </CHANGES>
- <!-- PRE-INSTALL SCRIPT -->
- <FILE Run="/bin/bash">
- <INLINE>
- </INLINE>
- </FILE>
- <!-- SOURCE PACKAGE -->
- <FILE Name="&pluginLoc;/&getmailpkg;.txz" Run="upgradepkg --install-new --reinstall">
- <URL>&pkgURL;&getmailpkg;.txz</URL>
- <MD5>&getmailMD5;</MD5>
- </FILE>
- <FILE Name="&pluginLoc;/&ewftgetmailpkg;.txz" Run="upgradepkg --install-new --reinstall">
- <URL>&pkgURL;&ewftgetmailpkg;.txz</URL>
- <MD5>&ewftgetmailMD5;</MD5>
- </FILE>
- <!-- POST-INSTALL SCRIPT -->
- <FILE Run="/bin/bash">
- <INLINE>
- # Create cron entry
- cron=/boot/config/plugins/&name;/getmail.cron
- if [[ ! -f $cron ]]; then
- echo '# GetMail' >$cron
- echo -e '0 * * * * /bin/su nobody -mc "getmail --getmaildir /boot/config/plugins/ewft.getmail --rcfile getmailrc --rcfile getmailrc_ewft_bnj" &>/dev/null\n' >>$cron
- /usr/local/sbin/update_cron
- fi
- echo ""
- echo "-----------------------------------------------------------"
- echo " Plugin &name; is installed."
- echo " Version: &version;"
- echo "-----------------------------------------------------------"
- echo ""
- </INLINE>
- </FILE>
- <!-- REMOVE SCRIPT -->
- <FILE Run="/bin/bash" Method="remove">
- <INLINE>
- # Remove plugin related files
- #rm -rf /boot/config/plugins/&name;
- # Uninstall the 'source' package
- removepkg &getmailpkg;
- removepkg &ewftgetmailpkg;
- # Remove cron entry
- #/usr/local/sbin/update_cron
- </INLINE>
- </FILE>
- </PLUGIN>
|