1#
2# $Id: Makefile.PL,v 1.12 2003-01-21 15:44:14-05 mprewitt Exp $
3#
4#  Lisgroup Makefile
5#
6#  Run:
7#
8#    perl Makefile.PL
9#    make
10#    make install
11#
12#  To change the install prefix, pass a --prefix option to 'perl Makefile.PL' as in:
13#
14#    perl Makefile.PL --prefix=/usr/local/
15#
16# --------------------------------------------------------------------------
17#
18# This file is part of listgroup
19#
20# listgroup is free software; you can redistribute it and/or modify it under the
21# terms of the GNU General Public License as published by the Free Software
22# Foundation; either version 2 of the License, or (at your option) any later
23# version.
24#
25# listgroup is distributed in the hope that it will be useful, but WITHOUT ANY
26# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
27# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
28# details.
29#
30# You should have received a copy of the GNU General Public License along
31# with this program; if not, write to the Free Software Foundation, Inc.,
32# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33#
34use strict;
35use ExtUtils::MakeMaker;
36use Getopt::Long;
37
38my $opt_prefix;
39
40GetOptions(
41    "prefix:s"=>\$opt_prefix,
42);
43
44my ( $y, $m, $d ) = (localtime(time))[5, 4, 3];
45$y += 1900;
46$m++;
47
48$m = "0$m" if $m < 9;
49$d = "0$d" if $d < 9;
50
51my $release = "$y$m$d";
52my $version = "1.0.0";
53
54my %opts =  (
55    ABSTRACT      => 'Utilities to view the nis netgroup map',
56    AUTHOR        => 'Marc Prewitt <mprewitt@chelsea.net>',
57    NAME          => 'Net::NIS::Listgroup',
58    DISTNAME      => 'Net-NIS-Listgroup',
59    VERSION       => $version,
60    DEFINE        => '-DMAKEFILE_PL_VER=' . (qw$Revision: 1.12 $)[1],
61    dist          => { COMPRESS=>'gzip -9f', SUFFIX => 'gz',
62                     ZIP=>'/usr/bin/zip',ZIPFLAGS=>'-rl'},
63    INST_SCRIPT   => './blib/bin',
64    EXE_FILES     => [ 'listgroup', 'make_cron' ],
65    PREREQ_PM     => { 'Getopt::Long' => 0, 'Net::NIS' => 0 }
66);
67
68# Uncomment the next line to customize the install location
69# or run:
70#
71#  perl Makefile.PL --prefix=/opt/mtop/
72#
73#$opts{PREFIX} = "/usr/local/";
74
75$opts{PREFIX} = $opt_prefix if $opt_prefix;
76
77WriteMakefile( %opts );
78