aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/ocsinventory-ng/Makefile
blob: 587bbf67a56565318fdf0b10f3add66734db0282 (plain) (blame)
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
# $FreeBSD$

PORTNAME=   ocsinventory-ng
PORTVERSION=    2.0.5
CATEGORIES= net-mgmt
MASTER_SITES=   https://launchpadlibrarian.net/99500930/
DISTNAME=   OCSNG_UNIX_SERVER-${PORTVERSION}

MAINTAINER= araujo@FreeBSD.org
COMMENT=    Open Computer and Software Inventory Next Generation

LICENSE=    GPLv2

RUN_DEPENDS=    p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
        p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib \
        p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
        p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
        p5-Apache-DBI>=0:${PORTSDIR}/www/p5-Apache-DBI \
        p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP \
        p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite \
        p5-XML-Entities>=0:${PORTSDIR}/textproc/p5-XML-Entities

USE_APACHE_RUN= 22+
USE_MYSQL=  41+
USE_PERL5=  yes
WANT_PHP_WEB=   yes
DEFAULT_PHP_VER=    5
USE_PHP=    mysql pcre zlib session xml gd zip openssl mbstring
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${DISTNAME}

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500903
RUN_DEPENDS+=   p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
.endif

do-install:
    @${MKDIR} ${DATADIR}
    @(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "Apache binutils dtd etc ocsreports" ${DATADIR}/)
    @${INSTALL_SCRIPT} ${WRKSRC}/setup.sh ${DATADIR}/
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif

.include <bsd.port.post.mk>