summaryrefslogtreecommitdiff
path: root/net/stripes/Makefile
blob: 5cc11de2d9f1401b9194f2057d6f1745f00e2b2d (plain)
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
# $NetBSD: Makefile,v 1.23 2018/08/22 09:46:07 wiz Exp $

DISTNAME=		stripes-2.1
PKGREVISION=		7
CATEGORIES=		net
MASTER_SITES=		# ftp://ftp.gw.com/sw/stripes/

MAINTAINER=		kim@tac.nyc.ny.us
#HOMEPAGE=		http://www.gw.com/sw/stripes/
COMMENT=		Looking Glass for Zebra and Cisco Routers

DEPENDS+=		p5-CGI>=2.66:../../www/p5-CGI
DEPENDS+=		p5-Net-Telnet>=3.02:../../net/p5-Net-Telnet

PKG_SYSCONFSUBDIR?=	httpd
BUILD_TARGET=		all
MAKE_FLAGS+=		DEST=${PREFIX:Q} PERL=${PERL5:Q} \
			CONFIGFILE=${PKG_SYSCONFDIR}/lg.conf
MAKE_FLAGS+=		MANDIR=${PREFIX}/${PKGMANDIR}/man8

USE_TOOLS+=		perl:run
REPLACE_PERL=		lg.pl

INSTALLATION_DIRS=	libexec/cgi-bin ${PKGMANDIR}/man8

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/lg ${DESTDIR}${PREFIX}/libexec/cgi-bin
	${INSTALL_MAN} ${WRKSRC}/lg.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8

.include "../../mk/bsd.pkg.mk"