diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-14 11:16:34 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-14 11:16:34 +1300 |
commit | ac03f31601545551a44f256379fb02cc8f8b4ce7 (patch) | |
tree | 229b72b32547f160f21e02f0beb8df3c0efe1e4a /README.markdown | |
parent | Initial commit (diff) | |
download | Mail-Run-Crypt-ac03f31601545551a44f256379fb02cc8f8b4ce7.tar.gz Mail-Run-Crypt-ac03f31601545551a44f256379fb02cc8f8b4ce7.zip |
First code commit
Very bare bones at the moment. Needs perldoc or man(1) help and possibly
a Makefile to install it.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..f877739 --- /dev/null +++ b/README.markdown @@ -0,0 +1,45 @@ +Croncrypt +========= + +Wrapper to sign and encrypt `cron(8)` output and errors with PGP/MIME before +sending them to the default MAILTO destination. + + CRONCRYPT_KEYID=0x0A1B2C3D4E5F6G7H + CRONCRYPT_PASSPHRASE=hibbityboo + MAILTO=tom@sanctum.geek.nz + 0 1 * * * tom croncrypt rsync /home/tom/important-file /home/backups + +The main design goal is simplicity; just whack `croncrypt` in front of all your +`crontab(5)` entries, provided they don't use pipes or stderr/stdout redirects, +in which case you should consider putting it all into a script file anyway. + +Don't use your own GPG key for signing! I recommend you create a dedicated key +just for Croncrypt, and sign it locally with `gpg --lsign` so that your +software trusts it locally. + +Installation +------------ + +Put the `croncrypt` binary somewhere in your `crontab`'s `PATH`, and install +the following Perl modules: + +* `Carp` +* `Data::Dumper` +* `IPC::Open3` +* `Mail::GnuPG` +* `MIME::Entity` +* `Symbol` + +On Debian-derived systems, this should do the trick: + + # aptitude install perl-base perl-modules \ + libmail-gnupg-perl libmime-tools-perl + +License +------- + +Copyright (c) [Tom Ryder][1]. Distributed under Perl's [Artistic License][2]. + +[1]: http://www.sanctum.geek.nz/about/tom-ryder +[2]: http://dev.perl.org/licenses/artistic.html + |