summaryrefslogtreecommitdiff
path: root/net-mgmt/lg/Makefile
blob: bccb53cb32a5d08c34dd0b542d50742b76550634 (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
31
32
33
34
35
36
37
38
39

PORTNAME=	lg
PORTVERSION=	1.9.s20140622
PORTREVISION=	1
CATEGORIES=	net-mgmt perl5
MASTER_SITES=	LOCAL/mat/lg \
		GH

MAINTAINER=	mat@FreeBSD.org
COMMENT=	Looking Glass written in Perl as a CGI script

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		perl5 shebangfix

USE_GITHUB=	yes
GH_ACCOUNT=	Cougar
GH_TAGNAME=	0d53e4b

USE_PERL5=	run
SHEBANG_FILES=	lg.cgi makeaslist.pl makedb.pl

NO_ARCH=	yes
NO_BUILD=	yes

OPTIONS_DEFINE=	DOCS

do-install:
	${MKDIR} ${STAGEDIR}${WWWDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/lg.cgi ${STAGEDIR}${WWWDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} lg.conf favicon.ico ${STAGEDIR}${WWWDIR}
	${MKDIR} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC} && ${INSTALL_SCRIPT} makeaslist.pl makedb.pl ${STAGEDIR}${DATADIR}
	cd ${WRKSRC} && ${INSTALL_DATA} as.txt communities.txt ${STAGEDIR}${DATADIR}
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG COPYING README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>