PORTNAME=	phpLiteAdmin
DISTVERSION=	1-9-8-2
CATEGORIES=	databases www
MASTER_SITES=	https://bitbucket.org/phpliteadmin/public/downloads/
DISTNAME=	${PORTNAME}_v${DISTVERSION}

MAINTAINER=	ports@freebsd.org
COMMENT=	Web-based database management tool for Sqlite
WWW=		https://www.phpliteadmin.org/

LICENSE=	GPLv3

USES=		cpe php:web zip

NO_ARCH=	yes
NO_BUILD=	yes
USE_PHP=	pdo_sqlite session

PLIST_FILES=	${WWWDIR}/phpliteadmin.php \
		${WWWDIR}/phpliteadmin.config.sample.php

SUB_FILES=	pkg-message

do-install:
	@${MKDIR} ${STAGEDIR}/${WWWDIR}
	${INSTALL_DATA} ${WRKDIR}/phpliteadmin.php \
		${STAGEDIR}${WWWDIR}
	${INSTALL_DATA} ${WRKDIR}/phpliteadmin.config.sample.php \
		${STAGEDIR}${WWWDIR}

.include <bsd.port.mk>
