-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
82 lines (74 loc) · 1.82 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
use 5.013;
# Need at least perl 5.13; older versions don't provide some xs macro used here.
# However, fanotify was released in 2011; perl 5.13 was released in 2010. We
# probably will not loose any users when relying on a newer perl.
use ExtUtils::MakeMaker;
use ExtUtils::Liblist;
use ExtUtils::Constant 0.23 'WriteConstants';
#
# Do not try to build on systems /known/ not to work
#
if ($^O ne 'linux') {
print("OS $^O unsupported (fanotify is Linux only)\n");
exit(0);
}
WriteMakefile(
NAME => 'Linux::Fanotify',
AUTHOR => 'Bastian Friedrich <[email protected]>',
VERSION_FROM => 'lib/Linux/Fanotify.pm',
ABSTRACT_FROM => 'lib/Linux/Fanotify.pm',
PREREQ_PM => {
'Exporter' => 0,
'Test::More' => 0,
'Test::Builder' => 0,
},
NEEDS_LINKING => 1,
INC => '-I.',
# TYPEMAPS => [qw(typemap)],
EXE_FILES => [],
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Linux-Fanotify-*.tar.* const-c.inc const-xs.inc' },
);
my @consts = qw(
FAN_ACCESS
FAN_MODIFY
FAN_CLOSE_WRITE
FAN_CLOSE_NOWRITE
FAN_OPEN
FAN_Q_OVERFLOW
FAN_OPEN_PERM
FAN_ACCESS_PERM
FAN_ONDIR
FAN_EVENT_ON_CHILD
FAN_CLOSE
FAN_CLOEXEC
FAN_NONBLOCK
FAN_CLASS_NOTIF
FAN_CLASS_CONTENT
FAN_CLASS_PRE_CONTENT
FAN_ALL_CLASS_BITS
FAN_UNLIMITED_QUEUE
FAN_UNLIMITED_MARKS
FAN_ALL_INIT_FLAGS
FAN_MARK_ADD
FAN_MARK_REMOVE
FAN_MARK_DONT_FOLLOW
FAN_MARK_ONLYDIR
FAN_MARK_MOUNT
FAN_MARK_IGNORED_MASK
FAN_MARK_IGNORED_SURV_MODIFY
FAN_MARK_FLUSH
FAN_ALL_MARK_FLAGS
FAN_ALL_EVENTS
FAN_ALL_PERM_EVENTS
FAN_ALL_OUTGOING_EVENTS
FANOTIFY_METADATA_VERSION
FAN_ALLOW
FAN_DENY
FAN_NOFD
);
WriteConstants(
PROXYSUBS => {autoload => 1},
NAME => 'Linux::Fanotify',
NAMES => \@consts,
);