1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
class SigningParty < Formula
homepage "http://pgp-tools.alioth.debian.org/"
url "http://ftp.debian.org/debian/pool/main/s/signing-party/signing-party_1.1.10.orig.tar.gz"
sha256 "b8d6fca8b7a64938436b3d825052513d9b22317241d134707ec5d1d48c0642fd"
bottle do
sha1 "d8214823c908caf3d8793915b1f9a39c040830f2" => :yosemite
sha1 "acb48de86cd5524f5ba4631e2d49c03ecc2b4e4c" => :mavericks
sha1 "8070e9cebac432ce0033f9b27b439ea2c16acd06" => :mountain_lion
end
option "with-rename-pgpring", "Install pgpring as pgppubring to avoid conflicting with mutt"
if build.without? "rename-pgpring"
conflicts_with "mutt",
:because => "mutt installs a private copy of pgpring"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "dialog"
depends_on "qprint"
depends_on :gpg
resource "GnuPG::Interface" do
url "http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/GnuPG-Interface-0.50.tar.gz"
mirror "http://search.mcpan.org/CPAN/authors/id/A/AL/ALEXMV/GnuPG-Interface-0.50.tar.gz"
sha256 "66e58e41c20d4ecd4e387e1ab1eee887f1c3c9fb0c65d0af2f95620e7b97141e"
end
resource "Text::Iconv" do
url "http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-1.7.tar.gz"
mirror "http://search.mcpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-1.7.tar.gz"
sha256 "5b80b7d5e709d34393bcba88971864a17b44a5bf0f9e4bcee383d029e7d2d5c3"
end
resource "Text::Template" do
url "http://search.cpan.org/CPAN/authors/id/M/MJ/MJD/Text-Template-1.46.tar.gz"
mirror "http://search.mcpan.org/CPAN/authors/id/M/MJ/MJD/Text-Template-1.46.tar.gz"
sha256 "77d812cb86e48091bcd59aa8522ef887b33a0ff758f8a269da8c2b733889d580"
end
resource "Net::IDN::Encode" do
url "http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/Net-IDN-Encode-2.200.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/Net-IDN-Encode-2.200.tar.gz"
sha256 "c7ce0bb438bb22c755c958d02ff8d9385ec71b213efaf77b3723d91d562b9360"
end
resource "MooX::late" do
url "http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/MooX-late-0.014.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/MooX-late-0.014.tar.gz"
sha256 "7bc00d77a720319b1baf7fbde99d42beac87de256cee44d2f32be25014a5e707"
end
resource "MooX::HandlesVia" do
url "http://search.cpan.org/CPAN/authors/id/M/MA/MATTP/MooX-HandlesVia-0.001005.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/M/MA/MATTP/MooX-HandlesVia-0.001005.tar.gz"
sha256 "a69de0c201269a4ad2bfce51b200a91bf7f20c0a1d392f130185c8ae533f9360"
end
resource "Type::Tiny" do
url "http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Type-Tiny-1.000005.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Type-Tiny-1.000005.tar.gz"
sha256 "42ed36c011825aa1e6995a4e8638621a1b2103a0970b15764ca3919368042365"
end
resource "Exporter::Tiny" do
url "http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-0.042.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-0.042.tar.gz"
sha256 "8f1622c5ebbfbcd519ead81df7917e48cb16cc527b1c46737b0459c3908a023f"
end
resource "Data::Perl" do
url "http://search.cpan.org/CPAN/authors/id/M/MA/MATTP/Data-Perl-0.002009.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/M/MA/MATTP/Data-Perl-0.002009.tar.gz"
sha256 "b62b2225870c2c3b16fb78c429f8729ddb8ed0e342f4209ec3c261b764c36f8b"
end
resource "CPAN::Meta::Requirements" do
url "http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.126.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.126.tar.gz"
sha256 "4b4ec24844692482b9c69a231a2145adb44356f0d0e9b56b171263f0f56db622"
end
# gpgparticipants data on OS X behaves differently from linux version
# https://github.com/Homebrew/homebrew/pull/21628
patch :DATA
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
ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"
resources.each do |r|
r.stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make", "install"
end
end
doc.install "README"
cd "caff" do
inreplace "caff", "/usr/share/doc/signing-party", HOMEBREW_PREFIX/"share/doc/signing-party"
system "make"
man1.install Dir["*.1"]
bin.install "caff", "pgp-clean", "pgp-fixkey"
(doc/"caff").install Dir["README*", "caffrc.sample"]
end
cd "gpg-key2ps" do
system "make"
man1.install "gpg-key2ps.1"
bin.install "gpg-key2ps"
(doc/"key2ps").install "README"
end
cd "gpg-mailkeys" do
inreplace "gpg-mailkeys",
"`getent passwd $USER | cut -d: -f5 | cut -d, -f1`",
'`osascript -e "long user name of (system info)" 2>/dev/null`'
bin.install "gpg-mailkeys"
man1.install "gpg-mailkeys.1"
(doc/"gpg-mailkeys").install "README", "example.gpg-mailkeysrc"
end
cd "gpglist" do
system "make"
bin.install "gpglist"
man1.install "gpglist.1"
end
cd "gpgparticipants" do
bin.install "gpgparticipants"
man1.install "gpgparticipants.1"
end
cd "gpgsigs" do
system "make"
man1.install "gpgsigs.1"
bin.install "gpgsigs"
(doc/"gpgsigs").install Dir["gpgsigs-lt2k5*.txt"]
end
cd "keyanalyze" do
inreplace "pgpring/configure.in", "AM_C_PROTOTYPES", ""
inreplace "Makefile", "automake-1.11 --add-missing && automake-1.11", "autoreconf -fvi"
system "make"
if build.with? "rename-pgpring"
# Install pgpring as pgppubring to avoid conflicting with Mutt.
# Reflect the installed name in manpages.
inreplace %w[keyanalyze.1 pgpring/pgpring.1 process_keys.1], /pgpring/, "pgppubring"
bin.install "pgpring/pgpring" => "pgppubring"
man1.install "pgpring/pgpring.1" => "pgppubring.1"
else
bin.install "pgpring/pgpring"
man1.install "pgpring/pgpring.1"
end
bin.install "keyanalyze", "process_keys"
man1.install "keyanalyze.1", "process_keys.1"
end
cd "keylookup" do
bin.install "keylookup"
man1.install "keylookup.1"
end
cd "sig2dot" do
bin.install "sig2dot"
man1.install "sig2dot.1"
(doc/"sig2dot").install "README.sig2dot"
end
bin.env_script_all_files(libexec+"bin", "PERL5LIB" => ENV["PERL5LIB"])
end
end
__END__
diff --git a/gpgparticipants/gpgparticipants b/gpgparticipants/gpgparticipants
index aaf97bb..7a6bd38 100755
--- a/gpgparticipants/gpgparticipants
+++ b/gpgparticipants/gpgparticipants
@@ -65,7 +65,7 @@ title=$(echo "$5"|tr a-z A-Z|sed 's/\(.\)/\1 /g')
[ "$output" = - ] && output=/path/to/ksp-file.txt || { exec > "$output"; }
# Date of event
-LC_ALL=C date --date="$date" +"%A, %B %e, %Y; %H:%M"
+LC_ALL=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
|