1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

net-mgmt/netmagis-*: support staging

PR:		191408
Submitted by:	pdagog@gmail.com (maintainer)
This commit is contained in:
Kurt Jaeger 2014-07-12 06:57:47 +00:00
parent bb448dc14c
commit d671fac2f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361601
6 changed files with 15 additions and 21 deletions

View File

@ -11,6 +11,12 @@ PKGNAMESUFFIX?= -common
MAINTAINER?= pdagog@gmail.com
COMMENT?= Netmagis common infrastructure
# Portlint barfs about a MASTERDIR variable if the LICENSE block is defined (black magic?)
#LICENSE= CECILL-B
#LICENSE_NAME= CeCILL-B Free Software License Agreement
#LICENSE_FILE= ${WRKSRC}/LICENSE
#LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= tcl:85+
USE_PGSQL= pgtcl
@ -28,13 +34,9 @@ USE_PGSQL+= server pltcl
.endif
.if ${PKGNAMESUFFIX} == -www
USE_APACHE= 22+
USE_TEX= tex
RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz \
pwgen:${PORTSDIR}/sysutils/pwgen \
${LOCALBASE}/libexec/apache22/mod_auth_pgsql.so:${PORTSDIR}/www/mod_auth_pgsql2
# FIXME compile apache22 with option mod_auth_ldap
# FIXME add ap22-mod_auth_cas
pwgen:${PORTSDIR}/sysutils/pwgen
.endif
.if ${PKGNAMESUFFIX} == -topo
@ -51,10 +53,13 @@ RUN_DEPENDS+= p5-DBD-Pg>0:${PORTSDIR}/databases/p5-DBD-Pg \
p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \
p5-SNMP_Session>=0:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
p5-RRDTool-OO>=0:${PORTSDIR}/devel/p5-RRDTool-OO
USES+= shebangfix
SHEBANG_FILES= metro/bin/metrocreatedb metro/bin/metropoller metro/bin/metropoller-run
.endif
# Variables used in netmagis Makefiles
MAKE_ARGS+= DESTDIR=${DESTDIR} PREFIX=${PREFIX}
MAKE_ARGS+= DESTDIR=${STAGEDIR}${DESTDIR} PREFIX=${PREFIX}
MAKE_ARGS+= TCLSH=${TCLSH} TCLCONF=${TCL_LIBDIR}/tclConfig.sh
.if ${PKGNAMESUFFIX} == -topo || ${PKGNAMESUFFIX} == -www

View File

@ -3,4 +3,4 @@ sbin/detectconfmod
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/radius/server.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/radius/topo.conf
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/radius
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%

View File

@ -6,12 +6,9 @@ PKGNAMESUFFIX= -metro
COMMENT= Netmagis metrology module
MANUAL_PACKAGE_BUILD= Uses non-default version of PostgreSQL
MASTERDIR= ${.CURDIR}/../netmagis-common
PKGMESSAGE= ${.CURDIR}/pkg-message
PLIST= ${.CURDIR}/pkg-plist
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -34,11 +34,7 @@ www/metro/gengraph
@dirrmtry var/netmagis/metro
@dirrmtry var/netmagis
@dirrmtry var
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrmtry lib/netmagis/tmp/netmagis/lib/netmagis
@dirrmtry lib/netmagis/tmp/netmagis/lib
@dirrmtry lib/netmagis/tmp/netmagis
@dirrmtry lib/netmagis/tmp
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
@dirrm lib/netmagis/probes
@dirrm lib/netmagis/plugins
@exec mkdir -p %D/var/netmagis/metro/wifi
@ -49,4 +45,3 @@ www/metro/gengraph
@exec mkdir -p %D/var/netmagis/metro/graph
@exec mkdir -p %D/var/netmagis/metro/db
@exec mkdir -p %D/var/netmagis/metro/cache
@exec mkdir -p %D/lib/netmagis/tmp/netmagis/lib/netmagis

View File

@ -31,8 +31,8 @@ sbin/toposendd
@dirrmtry var/netmagis
@dirrmtry var
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/eqvirt
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
@dirrm lib/netmagis/topo
@dirrm lib/netmagis
@dirrmtry lib/netmagis
@exec mkdir -p %D/var/netmagis/eqvirt
@exec mkdir -p %D/var/netmagis/eqgen

View File

@ -6,12 +6,9 @@ PKGNAMESUFFIX= -www
COMMENT= Netmagis web module
MANUAL_PACKAGE_BUILD= Requires non-default version of PostgreSQL
MASTERDIR= ${.CURDIR}/../netmagis-common
PKGMESSAGE= ${.CURDIR}/pkg-message
PLIST= ${.CURDIR}/pkg-plist
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"