Files
bsdports/my/sqm/Makefile
2019-12-26 07:26:06 +00:00

58 lines
1.4 KiB
Makefile

#
# $Id$
#
PORTNAME= sqm
PORTVERSION= 0.02.2
CATEGORIES= security www perl5
MASTER_SITES= http://wiki.unix7.org/_media/dist/
MAINTAINER= borodin@unix7.org
COMMENT= Squit account manager and auth helper
USE_GITHUB= yes
GH_ACCOUNT= onborodin
GH_PROJECT= ${PORTNAME}
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
BUILD_DEPENDS+= ${RUN_DEPENDS}
APP_LOGDIR= /var/log/${PORTNAME}
APP_RUNDIR= /var/run/${PORTNAME}
APP_DBDIR= /var/db/${PORTNAME}
APP_OWNER= squid
APP_GROUP= squid
APP_OWNER_ID= 190
APP_GROUP_ID= 190
USES= perl5 gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-logfile=${APP_LOGDIR}/${PORTNAME}.log
CONFIGURE_ARGS+= --with-pidfile=${APP_RUNDIR}/${PORTNAME}.pid
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_DBDIR=${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 <bsd.port.mk>
#EOF