# # $Id$ # PORTNAME= dbagent PORTVERSION= 0.01.7 CATEGORIES= security www perl5 MAINTAINER= borodin@unix7.org COMMENT= DBagent RUN_DEPENDS+= p5-Mojolicious>=0:perl/p5-Mojolicious RUN_DEPENDS+= p5-Apache-Htpasswd>=0:perl/p5-Apache-Htpasswd RUN_DEPENDS+= p5-DBI>=0:perl/p5-DBI RUN_DEPENDS+= p5-DBD-SQLite>=0:perl/p5-DBD-SQLite RUN_DEPENDS+= p5-DBD-Pg>=0:perl/p5-DBD-Pg RUN_DEPENDS+= p5-Filesys-Df>=0:perl/p5-Filesys-Df BUILD_DEPENDS+= ${RUN_DEPENDS} BUILD_DEPENDS+= p5-PAR-Packer>=0:perl/p5-PAR-Packer APP_LOGDIR= /var/log/${PORTNAME} APP_RUNDIR= /var/run/${PORTNAME} APP_DBDIR= /var/${PORTNAME} APP_OWNER= www APP_GROUP= www APP_OWNER_ID= 80 APP_GROUP_ID= 80 #USE_GITHUB= yes #GH_ACCOUNT= onborodin #GH_PROJECT= ${PORTNAME} USES= perl5 gmake GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-logdir=${APP_LOGDIR} CONFIGURE_ARGS+= --with-rundir=${APP_RUNDIR} CONFIGURE_ARGS+= --with-user=${APP_OWNER} CONFIGURE_ARGS+= --with-group=${APP_GROUP} SUB_FILES+= pkg-install SUB_LIST+= APP_LOGDIR=${APP_LOGDIR} SUB_LIST+= APP_RUNDIR=${APP_RUNDIR} SUB_LIST+= APP_DATADIR=${APP_DBDIR} SUB_LIST+= APP_OWNER=${APP_OWNER} SUB_LIST+= APP_GROUP=${APP_GROUP} SUB_LIST+= APP_OWNER_ID=${APP_OWNER_ID} SUB_LIST+= APP_GROUP_ID=${APP_GROUP_ID} PORTEXAMPLES= * post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/*.example* ${STAGEDIR}${EXAMPLESDIR} .include #EOF