From 3e96cf129ba5fc2834b691314c504aa363fd5cf4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 9 Jan 2014 23:13:37 +0000 Subject: initial commit --- Makefile.PL | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Makefile.PL (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 00000000..e7aea949 --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,38 @@ +#!/usr/bin/perl -w +# Copyright (C) 2013, Eric Wong and all contributors +# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt) +use strict; +use ExtUtils::MakeMaker; +WriteMakefile( + NAME => 'public-inbox', + VERSION => '0.0.0', + AUTHOR => 'Eric Wong ', + ABSTRACT => 'public-inbox.org infrastructure', + EXE_FILES => [qw/public-inbox-mda/], + PREREQ_PM => { + # note: we use ssoma(1) and spamc(1), + # NOT the Perl modules + 'Email::MIME' => 0, + 'Email::MIME::ContentType' => 0, + 'Email::Filter' => 0, + }, +); + +sub MY::postamble { + <<'EOF'; +RSYNC_DEST = public-inbox.org:/srv/public-inbox/ +docs = README COPYING $(shell git ls-files Documentation/ '*.txt') +gz_docs = $(addsuffix .gz, $(docs)) +%.gz: % + gzip -9 --rsyncable < $< > $@+ + touch -r $< $@+ + mv $@+ $@ + +gz-docs: $(gz_docs) +rsync-docs: + git set-file-times $(docs) + $(MAKE) gz-docs + rsync --chmod=Fugo=r -av $(gz_docs) $(docs) $(RSYNC_DEST) + +EOF +} -- cgit v1.2.3-24-ge0c7