blob: a707514c1c2adb6dd57344f6a2a15fb158856222 (
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
|
# New ports collection makefile for: glpi-plugins-tracker-server
# Date created: 31 October 2009
# Whom: ddurieux <d.durieux@siprossii.com>
#
# $FreeBSD$
#
PORTNAME= server
DISTVERSION= 2.1.3
CATEGORIES= net-mgmt
MASTER_SITES= https://forge.indepnet.net/attachments/download/512/ \
http://glpi.siprossii.com/distfiles/
PKGNAMEPREFIX= glpi-plugins-tracker-
DISTNAME= glpi-tracker_server-2.1.3
MAINTAINER= d.durieux@siprossii.com
COMMENT= Plugin of glpi to get information of networking devices by SNMP
RUN_DEPENDS= glpi>=0.72:${PORTSDIR}/www/glpi
USE_PHP= zlib
WRKSRC= ${WRKDIR}/tracker
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
CPIOARGS= --quiet -pdum -R
GLPIPLUGINDIR?= www/glpi/plugins/tracker
.include <bsd.port.pre.mk>
post-configure:
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%GLPIPLUGINDIR%%,${GLPIPLUGINDIR},g' pkg-message > ${PKGMESSAGE}
do-install:
@${MKDIR} -m 0755 ${PREFIX}/${GLPIPLUGINDIR}
@cd ${WRKSRC} && ${FIND} * -print | ${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|