PORTNAME= sqlpage DISTVERSIONPREFIX= v DISTVERSION= 0.24.0 CATEGORIES= www databases MASTER_SITES= https://cdn.jsdelivr.net/npm/:npm DISTFILES= ${NPM_DISTFILES} EXTRACT_ONLY= ${_DISTFILES:M*${EXTRACT_SUFX}} ${_DISTFILES:M*crate} MAINTAINER= girgen@FreeBSD.org COMMENT= SQL-only webapp builder. WWW= https://github.com/lovasoa/SQLpage LICENSE= MIT LIB_DEPENDS= libzstd.so:archivers/zstd USES= cargo USE_RC_SUBR= ${PORTNAME} USE_GITHUB= yes GH_ACCOUNT= lovasoa GH_PROJECT= SQLpage USERS= sqlpage GROUPS= sqlpage NPM_DISTFILES= apexcharts@3.49.1/dist/apexcharts.min.js:npm \ @tabler/core@1.0.0-beta20/dist/css/tabler.min.css:npm \ @tabler/core@1.0.0-beta20/dist/css/tabler-vendors.min.css:npm \ @tabler/core@1.0.0-beta20/dist/js/tabler.min.js:npm \ list.js-fixed@2.3.4/dist/list.min.js:npm \ @tabler/icons-sprite@3.4.0/dist/tabler-sprite.svg:npm \ tom-select@2.3.1/dist/js/tom-select.popular.min.js:npm post-extract: cd ${DISTDIR}; ${PAX} -rw ${NPM_DISTFILES:C/\/.*//g} ${WRKSRC} post-install: ${MKDIR} ${STAGEDIR}/${ETCDIR} ;\ ${INSTALL_DATA} ${FILESDIR}/sqlpage.json ${STAGEDIR}${ETCDIR}/sqlpage.json.sample ${MKDIR} ${STAGEDIR}/${WWWDIR} ${STAGEDIR}${DATADIR} ;\ ${INSTALL_DATA} ${WRKSRC}/index.sql ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d ;\ ${INSTALL_DATA} ${FILESDIR}/sqlpage.conf ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/sqlpage.conf.sample ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include