2 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
3 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
5 use ExtUtils::MakeMaker;
7 NAME => 'public-inbox',
9 AUTHOR => 'Eric Wong <normalperson@yhbt.net>',
10 ABSTRACT => 'public-inbox server infrastructure',
11 EXE_FILES => [qw/public-inbox-mda public-inbox.cgi
14 # note: we use ssoma(1) and spamc(1), NOT the Perl modules
15 # We also depend on git through ssoma.
16 # Keep this sorted and synced to the INSTALL document
19 'Email::Address' => 0,
22 'Email::MIME::ContentType' => 0,
23 'Encode::MIME::Header' => 0,
24 'File::Path::Expand' => 0,
26 'Mail::Thread' => '2.5', # 2.5+ needed for Email::Simple compat
28 'XML::Atom::SimpleFeed' => 0,
29 # We have more test dependencies, but do not force
30 # users to install them
36 RSYNC_DEST = public-inbox.org:/srv/public-inbox/
37 docs = README COPYING INSTALL $(shell git ls-files Documentation/ '*.txt')
38 gz_docs = $(addsuffix .gz, $(docs))
40 gzip -9 --rsyncable < $< > $@+
46 git set-file-times $(docs)
48 rsync --chmod=Fugo=r -av $(gz_docs) $(docs) $(RSYNC_DEST)
50 N = $(shell echo $$(( $$(nproc 2>/dev/null || echo 2) + 1)))