Lines 2-8
Link Here
|
2 |
# Date created: 2011-08-18 |
2 |
# Date created: 2011-08-18 |
3 |
# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com> |
3 |
# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/net-mgmt/p5-FusionInventory-Agent/Makefile,v 1.7 2012/08/15 06:46:08 rm Exp $ |
5 |
# $FreeBSD: ports/net-mgmt/p5-FusionInventory-Agent/Makefile,v 1.6 2012/06/01 05:23:16 dinoex Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= FusionInventory-Agent |
8 |
PORTNAME= FusionInventory-Agent |
Lines 15-48
Link Here
|
15 |
MAINTAINER= g.veniamin@googlemail.com |
15 |
MAINTAINER= g.veniamin@googlemail.com |
16 |
COMMENT= Agent for OCS Inventory server and FusionInventory for GLPI servers |
16 |
COMMENT= Agent for OCS Inventory server and FusionInventory for GLPI servers |
17 |
|
17 |
|
|
|
18 |
OPTIONS= CUPS "Enable CUPS" OFF \ |
19 |
HTTP "Enable HTTP daemon mode" OFF \ |
20 |
ZLIB "Enable Zlib compression" ON \ |
21 |
SSL "Enable SSL" OFF \ |
22 |
DMIDECODE "Enable dmidecode hardware information" ON \ |
23 |
PCIUTILS "Enable pciutils hardware information" ON \ |
24 |
NMAP "Enable NMAP network inventory" OFF |
25 |
|
18 |
LICENSE= GPLv2 |
26 |
LICENSE= GPLv2 |
19 |
|
27 |
|
20 |
BUILD_DEPENDS= p5-Crypt-SSLeay>=0:${PORTSDIR}/security/p5-Crypt-SSLeay \ |
28 |
USE_GMAKE= yes |
21 |
p5-File-ShareDir>=0:${PORTSDIR}/devel/p5-File-ShareDir \ |
29 |
|
22 |
p5-HTTP-Daemon>=0:${PORTSDIR}/www/p5-HTTP-Daemon \ |
30 |
BUILD_DEPENDS= p5-Text-Template>=0:${PORTSDIR}/textproc/p5-Text-Template \ |
23 |
p5-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple \ |
31 |
p5-ExtUtils-MakeMaker>=6.59:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker \ |
24 |
p5-HTTP-Server-Simple-Authen>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple-Authen \ |
|
|
25 |
p5-Net-CUPS>=0.6:${PORTSDIR}/print/p5-Net-CUPS \ |
26 |
p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP \ |
27 |
p5-Proc-Daemon>=0:${PORTSDIR}/devel/p5-Proc-Daemon \ |
28 |
p5-Proc-PID-File>=0:${PORTSDIR}/devel/p5-Proc-PID-File \ |
29 |
p5-UNIVERSAL-require>=0:${PORTSDIR}/devel/p5-UNIVERSAL-require \ |
32 |
p5-UNIVERSAL-require>=0:${PORTSDIR}/devel/p5-UNIVERSAL-require \ |
30 |
p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \ |
33 |
p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP \ |
|
|
34 |
p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5 \ |
31 |
p5-XML-TreePP>=0:${PORTSDIR}/textproc/p5-XML-TreePP \ |
35 |
p5-XML-TreePP>=0:${PORTSDIR}/textproc/p5-XML-TreePP \ |
32 |
p5-libwww>=0:${PORTSDIR}/www/p5-libwww |
36 |
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \ |
|
|
37 |
p5-File-Which>=0:${PORTSDIR}/sysutils/p5-File-Which |
33 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
38 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
34 |
RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode \ |
|
|
35 |
lspci:${PORTSDIR}/sysutils/pciutils \ |
36 |
nmap:${PORTSDIR}/security/nmap |
37 |
|
39 |
|
38 |
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception |
40 |
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception \ |
|
|
41 |
p5-Test-MockModule>=0:${PORTSDIR}/devel/p5-Test-MockModule \ |
42 |
p5-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple \ |
43 |
p5-HTTP-Server-Simple-Authen>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple-Authen \ |
44 |
p5-HTTP-Proxy>=0:${PORTSDIR}/www/p5-HTTP-Proxy \ |
45 |
p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run \ |
46 |
p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML \ |
47 |
p5-IO-Capture>=0:${PORTSDIR}/devel/p5-IO-Capture \ |
39 |
|
48 |
|
40 |
PERL_CONFIGURE= yes |
49 |
PERL_CONFIGURE= yes |
41 |
MAN3PREFIX= ${PREFIX} |
|
|
42 |
|
50 |
|
43 |
MAN1= fusioninventory-agent.1 \ |
51 |
MAN1= fusioninventory-agent.1 \ |
44 |
fusioninventory-injector.1 |
52 |
fusioninventory-injector.1 |
45 |
|
|
|
46 |
MAN3= FusionInventory::Agent.3 \ |
53 |
MAN3= FusionInventory::Agent.3 \ |
47 |
FusionInventory::Agent::Config.3 \ |
54 |
FusionInventory::Agent::Config.3 \ |
48 |
FusionInventory::Agent::HTTP::Client.3 \ |
55 |
FusionInventory::Agent::HTTP::Client.3 \ |
Lines 84-92
Link Here
|
84 |
|
91 |
|
85 |
.include <bsd.port.pre.mk> |
92 |
.include <bsd.port.pre.mk> |
86 |
|
93 |
|
87 |
.if ${PERL_LEVEL} < 501000 |
94 |
.if defined(WITH_CUPS) |
88 |
BUILD_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress |
95 |
RUN_DEPENDS+= p5-Net-CUPS>=0.6:${PORTSDIR}/print/p5-Net-CUPS |
89 |
RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress |
96 |
.endif |
|
|
97 |
|
98 |
.if defined(WITH_HTTP) |
99 |
RUN_DEPENDS+= p5-HTTP-Daemon>=0:${PORTSDIR}/www/p5-HTTP-Daemon |
90 |
.endif |
100 |
.endif |
91 |
|
101 |
|
|
|
102 |
.if defined(WITH_ZLIB) |
103 |
RUN_DEPENDS+= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib |
104 |
.endif |
105 |
|
106 |
.if defined(WITH_SSL) |
107 |
RUN_DEPENDS+= p5-Crypt-SSLeay>=0:${PORTSDIR}/security/p5-Crypt-SSLeay \ |
108 |
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https |
109 |
.endif |
110 |
|
111 |
.if defined(WITH_DMIDECODE) |
112 |
RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode |
113 |
.endif |
114 |
|
115 |
.if defined(WITH_PCIUTILS) |
116 |
RUN_DEPENDS+= lspci:${PORTSDIR}/sysutils/pciutils |
117 |
.endif |
118 |
|
119 |
.if defined(WITH_NMAP) |
120 |
RUN_DEPENDS+= nmap:${PORTSDIR}/security/nmap |
121 |
.endif |
122 |
|
123 |
post-patch-script: |
124 |
@${ECHO_MSG} -n ">> Removing unneeded patched files..." |
125 |
@${FIND} ${WRKSRC} -type f \( -name '*.orig' \) -delete |
126 |
@${ECHO_MSG} " [ DONE ]" |
127 |
|
92 |
.include <bsd.port.post.mk> |
128 |
.include <bsd.port.post.mk> |