aboutsummaryrefslogtreecommitdiff
path: root/databases/pgagroal/Makefile
blob: cee37e863bbbc3437d7bdea4841cb6ca4683a7c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PORTNAME=	pgagroal
DISTVERSION=	1.6.0
CATEGORIES=	databases
MASTER_SITES=	https://github.com/agroal/${PORTNAME}/releases/download/${DISTVERSION}/

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	High-performance protocol-native connection pool for PostgreSQL
WWW=		https://agroal.github.io/pgagroal/

LICENSE=	BSD3CLAUSE

BROKEN_armv7=	wants long to be a 64 bit type
BROKEN_i386=	wants long to be a 64 bit type

BUILD_DEPENDS=	rst2man:textproc/py-docutils
LIB_DEPENDS=	libcjson.so:devel/libcjson \
		libev.so:devel/libev

USES=		cmake ssl
USE_LDCONFIG=	yes
USE_RC_SUBR=	pgagroal

SUB_LIST=	PGAGROAL_RUNDIR="${PGAGROAL_RUNDIR}"

USERS=		pgagroal
GROUPS=		pgagroal

PLIST_SUB+=	PGAGROAL_GROUP="${GROUPS}" \
		PGAGROAL_LOGDIR="${PGAGROAL_LOGDIR}" \
		PGAGROAL_RUNDIR="${PGAGROAL_RUNDIR}" \
		PGAGROAL_USER="${USERS}"  \
		PORTVERSION="${DISTVERSION}"

PGAGROAL_GROUP?=	pgagroal
PGAGROAL_USER?=		pgagroal

PGAGROAL_RUNDIR?=	/var/run/pgagroal
PGAGROAL_LOGDIR?=	/var/log/pgagroal

post-patch:
	@${MV} ${WRKSRC}/doc/etc/pgagroal.conf \
		${WRKSRC}/doc/etc/pgagroal.conf.sample
	@${MV} ${WRKSRC}/doc/etc/pgagroal_hba.conf \
		${WRKSRC}/doc/etc/pgagroal_hba.conf.sample

post-install:
	@${MKDIR} ${STAGEDIR}${PGAGROAL_RUNDIR} \
		${STAGEDIR}${PGAGROAL_LOGDIR}

.include <bsd.port.mk>