File: Makefile.PL

package info (click to toggle)
libnet-ip-perl 1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 464 kB
  • ctags: 280
  • sloc: perl: 1,321; makefile: 17
file content (37 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (4)
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
use ExtUtils::MakeMaker;
use Config;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

# RIPE NCC common configuration
my %PARAM = ();

if ($Config{vendorprefix} eq '/usr/local/ncc') {
    
    warn "\nConfiguring for RIPE NCC Perl installation...\n\n";
    
    $PARAM{'INSTALLDIRS'}	= 'vendor';
    $PARAM{'INSTALLSCRIPT'}	= '$(INSTALLVENDORBIN)'; # Hack for Perl prior 5.8.1
    $PARAM{'macro'}		= { 'INSTALLPREFIX' => '$(VENDORPREFIX)' };
}

$PARAM{'dist'} = {
	'COMPRESS'  => 'gzip', 
        'SUFFIX'    => '.gz',
        'CI'        => 'cvs ci',
        'RCS_LABEL' => 'cvs tag -c -F $(NAME_SYM)-$(VERSION_SYM)',
};

$PARAM{'ABSTRACT_FROM'}	= 'IP.pm';
$PARAM{'AUTHOR'}	= 'Manuel Valente <manuel.valente@gmail.com>';

$PARAM{'clean'} = {FILES => "Net-IP.spec"};

WriteMakefile(
    'NAME'		=> 'Net::IP',
    'VERSION_FROM'	=> 'IP.pm',
    'PREREQ_PM'		=> {},
    'EXE_FILES'         => [qw(ipcount iptab)],
    'PL_FILES'		=> { 'Net-IP.spec.PL'	=>	'Net-IP.spec' },
    %PARAM
);