source: trunk/debathena/debathena/libmail-expandaliases-perl/Makefile.PL @ 24013

Revision 24013, 1.8 KB checked in by broder, 15 years ago (diff)
Create a package for the Mail::ExpandAliases Perl module. This will be used for an updated version of the debathena-msmtp-mta which can understand /etc/aliases files.
Line 
1package Mail::ExpandAliases;
2
3# ----------------------------------------------------------------------
4# Makefile.PL - Generate a Makefile
5# Copyright (C) 2002 darren chamberlain <darren@cpan.org>
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License as
9# published by the Free Software Foundation; version 2.
10#
11# This program is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19# 02111-1307  USA
20# ----------------------------------------------------------------------
21
22use strict;
23
24use ExtUtils::MakeMaker;
25use File::Basename qw(basename);
26
27my $dist = '$(DISTNAME)-$(VERSION).tar.gz';
28my @EXE_FILES = ('expand-alias');
29my %PREREQ_PM = ('IO::File');
30my %clean     = ('FILES' => "$dist $dist.asc distdir");
31my %macro     = (
32    'GPG' => 'gpg',
33    'AUTHOR' => 'darren@cpan.org',
34    'SIGN'  => '--detach-sign --armor',
35);
36
37WriteMakefile(
38    NAME            => __PACKAGE__,
39    VERSION_FROM    => 'ExpandAliases.pm',
40    EXE_FILES       => \@EXE_FILES,
41    PREREQ_PM       => \%PREREQ_PM,
42    clean           => \%clean,
43    macro           => \%macro,
44);
45
46package MY;
47sub dist_dir {
48        my $self = shift;
49        my $stuff = $self->SUPER::dist_dir(@_);
50
51        return "$stuff\ttouch distdir\n\n";
52}
53
54sub postamble {
55    return <<'P';
56distsign :: $(DISTVNAME).tar$(SUFFIX)
57        $(GPG) $(SIGN) -u $(AUTHOR) $(DISTVNAME).tar$(SUFFIX)
58        @cat $(DISTVNAME).tar$(SUFFIX).asc
59P
60}
61
62__END__
Note: See TracBrowser for help on using the repository browser.