File: Makefile.PL.todo

package info (click to toggle)
dyndns 2010.0301+gitdd160bd-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 488 kB
  • ctags: 219
  • sloc: perl: 3,299; makefile: 185
file content (87 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/perl
#
#   Copyright information
#
#	Copyright (C) 2003-2009 Jari Aalto
#
#   License
#
#	This program is free software; you can redistribute it and/or
#	modify it under the terms of the GNU General Public License as
#	published by the Free Software Foundation; either version 2 of the
#	License, or (at your option) any later version
#
#	This program is distributed in the hope that it will be useful, but
#	WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#	General Public License for more details at
#	Visit <http://www.gnu.org/copyleft/gpl.html>.
#
#   Description
#
#	run 'perl *.PL' to generate Makefile

use ExtUtils::MakeMaker;

WriteMakefile (	NAME => 'perl-dyndns',
		AUTHOR => 'Jari Aalto <jari.aalto@cante.net>',
		LICENSE => 'GPL v2 or (at your option) later',
		ABSTRACT => 'A Perl Dynamic DNS (DDNS) update client',
		PREREQ_PM =>
		{
		    'HTTP::Request::Common' => 5.8,
		    'HTTP::Headers'	    => 5.8,
		    'LWP::Simple'	    => 5.8,
		    'Sys::Syslog'	    => 0.20
		},
		# VERSION => '2008.1111',
		MAN1EXT => 1,  # Not "1p"
		VERSION_FROM => 'bin/dyndns.pl',
		EXE_FILES => [qw(bin/dyndns.pl)]
		);

package MY;

# Install without the "*.pl" extension
# See: perldoc ExtUtils::MakeMaker; perldoc ExtUtils::MM_Unix

sub manifypods
{
    local $_ = shift->SUPER::manifypods(@_);
    s,(MAN1DIR./.+?).pl,$1,gm;
    $_;
}

sub installbin
{
    local $_ = shift->SUPER::installbin(@_);
    s,(SCRIPT./.+?).pl,$1,gm;
    $_;
}

sub postamble
{
    return '
include install.mk

install-test::
	$(MAKE) DESTDIR=tmp install

doc-doc:
	$(MAKE) -C doc

doc:: doc-doc

clean-pod-cruft:
	rm -f *.tmp doc/*.tmp

clean:: clean-pod-cruft

# Maintainer rule
www::
	$(MAKE) -C doc www

';
}

# End of file