PORTNAME=	icapeg
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.0
PORTREVISION=	14
CATEGORIES=	www

MAINTAINER=	support@egirna.com
COMMENT=	ICAP server implementation with Multi vendor support
WWW=		https://github.com/egirna/icapeg

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
GO_MODULE=	github.com/egirna/icapeg

post-install:
	${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_DATA} ${WRKSRC}/config.toml ${STAGEDIR}${ETCDIR}/config.toml.sample
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/temp/exception-page.html ${STAGEDIR}${DATADIR}/exception-page.html

PLIST_FILES=	"${DATADIR}/exception-page.html" \
		"@sample ${ETCDIR}/config.toml.sample" \
		bin/icapeg

.include <bsd.port.mk>
