aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/confregdecode/Makefile
blob: b249e598ac8b561e37030b837647e2f7c85c9d77 (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
PORTNAME=	confregdecode
PORTVERSION=	1.2.1
PORTREVISION=	3
CATEGORIES=	net-mgmt java
MASTER_SITES=	SF/cosi-nms/${PORTNAME}/${PORTVERSION}
DISTNAME=	confregdecode-src-${PORTVERSION}

MAINTAINER=	marcus@FreeBSD.org
COMMENT=	Cisco Systems IOS(tm) configuration register decoder
WWW=		https://cosi-nms.sourceforge.net/

USE_JAVA=	yes
ALL_TARGET=	jar
MAKE_ENV=	JAVAC="${JAVAC}" JAR="${JAR}"
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
SUB_FILES=	confregdecode
NO_ARCH=	yes

OPTIONS_DEFINE=	DOCS

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/confregdecode.jar ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/confregdecode ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in README.txt ConfregDecode.html
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>