2011-11-07 00:26:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-03-27 22:36:07 +00:00
|
|
|
class GnupgInstalled < Requirement
|
2013-01-19 01:30:43 +00:00
|
|
|
fatal true
|
2013-05-10 12:35:38 +00:00
|
|
|
default_formula 'gnupg2'
|
2013-01-20 02:45:59 +00:00
|
|
|
satisfy { which('gpg') || which('gpg2') }
|
2012-03-27 22:36:07 +00:00
|
|
|
end
|
|
|
|
|
2011-11-07 00:26:27 +00:00
|
|
|
class SigningParty < Formula
|
|
|
|
homepage 'http://pgp-tools.alioth.debian.org/'
|
2012-02-25 19:46:49 +00:00
|
|
|
url 'http://ftp.debian.org/debian/pool/main/s/signing-party/signing-party_1.1.4.orig.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '092b7d644b7a8a8d2e82fd6ddb453ca58020ed31'
|
2011-11-07 00:26:27 +00:00
|
|
|
|
2013-01-27 22:48:39 +00:00
|
|
|
depends_on GnupgInstalled
|
2011-11-07 00:26:27 +00:00
|
|
|
depends_on 'dialog'
|
|
|
|
depends_on 'qprint'
|
|
|
|
depends_on 'MIME::Tools' => :perl
|
|
|
|
depends_on 'Text::Template' => :perl
|
|
|
|
depends_on 'Text::Iconv' => :perl
|
|
|
|
depends_on 'GnuPG::Interface' => :perl
|
|
|
|
|
2013-08-03 09:09:09 +00:00
|
|
|
# gpgparticipants data on OS X behaves differently from linux version
|
|
|
|
# https://github.com/mxcl/homebrew/pull/21628
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2011-11-07 00:26:27 +00:00
|
|
|
def install
|
|
|
|
# gpgdir and gpgwrap are not included as they have their own homepages
|
|
|
|
# springraph is not included because it depends on the 'GD' perl module
|
|
|
|
# which has its own dependency issues
|
|
|
|
|
|
|
|
doc.install 'README'
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'caff' do
|
2012-03-27 22:35:53 +00:00
|
|
|
inreplace 'caff', '/usr/share/doc/signing-party', HOMEBREW_PREFIX/'share/doc/signing-party'
|
2011-11-07 00:26:27 +00:00
|
|
|
system "make"
|
|
|
|
man1.install Dir['*.1']
|
2013-08-31 03:30:00 +00:00
|
|
|
bin.install 'caff', 'pgp-clean', 'pgp-fixkey'
|
|
|
|
(doc/'caff').install Dir['README*', 'caffrc.sample']
|
2011-11-07 00:26:27 +00:00
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'gpg-key2ps' do
|
2011-11-07 00:26:27 +00:00
|
|
|
system "make"
|
|
|
|
man1.install 'gpg-key2ps.1'
|
|
|
|
bin.install 'gpg-key2ps'
|
2013-08-31 03:30:00 +00:00
|
|
|
(doc/'key2ps').install 'README'
|
2011-11-07 00:26:27 +00:00
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'gpg-mailkeys' do
|
2012-02-25 19:46:49 +00:00
|
|
|
inreplace 'gpg-mailkeys',
|
2012-02-21 06:04:21 +00:00
|
|
|
%q[`getent passwd $USER | cut -d: -f5 | cut -d, -f1`],
|
2011-11-07 00:26:27 +00:00
|
|
|
%q[`osascript -e "long user name of (system info)" 2>/dev/null`]
|
2012-02-21 06:04:21 +00:00
|
|
|
|
2011-11-07 00:26:27 +00:00
|
|
|
bin.install 'gpg-mailkeys'
|
|
|
|
man1.install 'gpg-mailkeys.1'
|
2013-08-31 03:30:00 +00:00
|
|
|
(doc/'gpg-mailkeys').install 'README', 'example.gpg-mailkeysrc'
|
2011-11-07 00:26:27 +00:00
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'gpglist' do
|
2011-11-07 00:26:27 +00:00
|
|
|
system "make"
|
|
|
|
bin.install 'gpglist'
|
|
|
|
man1.install 'gpglist.1'
|
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'gpgparticipants' do
|
2011-11-07 00:26:27 +00:00
|
|
|
bin.install 'gpgparticipants'
|
|
|
|
man1.install 'gpgparticipants.1'
|
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'gpgsigs' do
|
2011-11-07 00:26:27 +00:00
|
|
|
system "make"
|
|
|
|
man1.install 'gpgsigs.1'
|
2012-02-21 06:04:21 +00:00
|
|
|
bin.install 'gpgsigs', 'gpgsigs-eps-helper'
|
2013-08-31 03:30:00 +00:00
|
|
|
(doc/'gpgsigs').install Dir['gpgsigs-lt2k5*.txt']
|
2011-11-07 00:26:27 +00:00
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'keyanalyze' do
|
2011-11-07 00:26:27 +00:00
|
|
|
system "make"
|
2012-02-21 06:04:21 +00:00
|
|
|
bin.install 'keyanalyze', 'process_keys', 'pgpring/pgpring'
|
|
|
|
man1.install 'keyanalyze.1', 'process_keys.1', 'pgpring/pgpring.1'
|
2011-11-07 00:26:27 +00:00
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'keylookup' do
|
2011-11-07 00:26:27 +00:00
|
|
|
bin.install 'keylookup'
|
|
|
|
man1.install 'keylookup.1'
|
|
|
|
end
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'sig2dot' do
|
2011-11-07 00:26:27 +00:00
|
|
|
bin.install 'sig2dot'
|
|
|
|
man1.install 'sig2dot.1'
|
2013-08-31 03:30:00 +00:00
|
|
|
(doc/'sig2dot').install 'README.sig2dot'
|
2011-11-07 00:26:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-08-03 09:09:09 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/gpgparticipants/gpgparticipants b/gpgparticipants/gpgparticipants
|
|
|
|
index 4dd06e8..ea76aff 100755
|
|
|
|
--- a/gpgparticipants/gpgparticipants
|
|
|
|
+++ b/gpgparticipants/gpgparticipants
|
|
|
|
@@ -29,7 +29,7 @@ title=$(echo "$5"|tr a-z A-Z|sed 's/\(.\)/\1 /g')
|
|
|
|
exec > "$output"
|
|
|
|
|
|
|
|
# Date of event
|
|
|
|
-LANG=C date --date="$date" +"%A, %B %e, %Y; %H:%M"
|
|
|
|
+LANG=C date -j -f "%Y%m%d %H%M" "$date" +"%A, %B %e, %Y; %H:%M"
|
|
|
|
# Organiser contact
|
|
|
|
printf "%80s\n\n\n" "$org"
|
|
|
|
# Title
|