-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.PL
66 lines (55 loc) · 1.72 KB
/
Makefile.PL
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
# DESCRIPTION: Perl ExtUtils: Type 'perl Makefile.PL' to create a Makefile for this package
#
# Copyright 1999-2022 by Wilson Snyder. This program is free software;
# you can redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
require 5.005;
use ExtUtils::MakeMaker;
use Carp;
sub MY::postamble {
q{
install::
@echo
@echo '-NOTE: You may want to'
@echo '-NOTE: cp init.d/pidstatd init.d/lockerd /etc/init.d'
@echo '-NOTE: And setup appropriate links in /etc/rc.d/rc*.d,'
@echo '-NOTE: and if using nagios,'
@echo '-NOTE: cp nagios/check_pidstatd nagios/check_lockerd /usr/lib/nagios/plugins'
install-here::
make install
## Maintainer use:
preexist:
svnorcvs nexists $(DISTNAME)_$(VERSION_SYM)
tag:
svnorcvs tag $(DISTNAME)_$(VERSION_SYM)
maintainer-diff:
svnorcvs diff $(DISTNAME)_$(VERSION_SYM)
maintainer-dist: preexist dist tag
svnorcvs release $(DISTVNAME).tar.gz
maintainer-clean: distclean
-$(RM_RF) README Makefile
dist: distcheck
};
}
## Remember to upgrade version number!
WriteMakefile(
DISTNAME => 'IPC-Locker',
NAME => 'IPC::Locker',
AUTHOR => 'Wilson Snyder <[email protected]>',
ABSTRACT_FROM => 'lib/IPC/Locker.pm',
VERSION_FROM => 'lib/IPC/Locker.pm',
PREREQ_PM => {'Net::Domain' => 0,
'Pod::Usage' => 1.34,
'Test::More' => 0,
'Time::HiRes' => 0,
},
NO_META => 1,
EXE_FILES => [qw( script/lockerd script/lockersh
script/pidstat script/pidstatd
script/pidwatch
script/uriexec )],
'dist' => {COMPRESS => 'gzip -9f',
SUFFIX => '.gz',
DIST_DEFAULT => 'all tardist',
},
);