freebsd-ports/www/hs-postgrest/Makefile
Kevin Bowling db78da8f8b devel/libffi: Bump deps PORTREVISION for shlib change
PR:		263764
Reported by:	VVD <vvd@unislabs.com>
2022-05-09 12:23:51 -07:00

55 lines
1.3 KiB
Makefile

PORTNAME= postgrest
DISTVERSION= 8.0.0
PORTREVISION= 1
CATEGORIES= www databases haskell
MAINTAINER= dmitry.wagin@ya.ru
COMMENT= PostgREST create a REST API to an existing Postgres database
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 i386
BUILD_DEPENDS= pg_config:databases/postgresql${PGSQL_DEFAULT}-client
USES= cabal pgsql
USE_RC_SUBR= postgrest
SKIP_CABAL_PLIST= yes
POSTGREST_USER?= postgrest
POSTGREST_GROUP?= postgrest
SUB_FILES= default.conf
SUB_LIST= ETCDIR=${ETCDIR} \
POSTGREST_GROUP=${POSTGREST_GROUP} \
POSTGREST_USER=${POSTGREST_USER}
USERS= ${POSTGREST_USER}
GROUPS= ${POSTGREST_GROUP}
PLIST_FILES= "@sample ${ETCDIR}/default.conf.sample" \
sbin/postgrest
PLIST_SUB= ETCDIR=${ETCDIR} \
POSTGREST_GROUP=${POSTGREST_GROUP} \
POSTGREST_USER=${POSTGREST_USER}
# This file includes the USE_CABAL. For generate it's need do:
# 1) make extract
# 2) make cabal-extract
# 3) make cabal-extract-deps
# 4) make make-use-cabal && paste the USE_CABAL section to Makefile.modules
# 4) make make-use-cabal-revs
.include "Makefile.modules"
do-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKDIR}/default.conf ${STAGEDIR}${ETCDIR}/default.conf.sample
${INSTALL_PROGRAM} \
$$(find ${WRKSRC}/dist-newstyle -name ${EXECUTABLES} -type f -perm +111) \
${STAGEDIR}${PREFIX}/sbin/${EXECUTABLES}
.include <bsd.port.mk>