View | Details | Raw Unified | Return to bug 246383 | Differences between
and this patch

Collapse All | Expand All

(-)www/hs-postgrest/Makefile (-7 / +5 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	postgrest
3
PORTNAME=	postgrest
4
PORTVERSION=	7.0.1
4
PORTVERSION=	7.0.1
5
PORTREVISION=	1
5
CATEGORIES=	www databases haskell
6
CATEGORIES=	www databases haskell
6
7
7
MAINTAINER=	dmitry.wagin@ya.ru
8
MAINTAINER=	dmitry.wagin@ya.ru
Lines 202-211 Link Here
202
GROUPS=		${POSTGREST_GROUP}
203
GROUPS=		${POSTGREST_GROUP}
203
204
204
SUB_FILES=	default.conf
205
SUB_FILES=	default.conf
205
SUB_LIST=	ETCDIR=${ETCDIR} \
206
SUB_LIST=	CABAL_LIBEXEC=${CABAL_LIBEXEC} \
207
		ETCDIR=${ETCDIR} \
206
		POSTGREST_USER=${POSTGREST_USER} \
208
		POSTGREST_USER=${POSTGREST_USER} \
207
		POSTGREST_GROUP=${POSTGREST_GROUP}
209
		POSTGREST_GROUP=${POSTGREST_GROUP}
208
210
211
PLIST_FILES=	"@sample ${ETCDIR}/default.conf.sample"
209
PLIST_SUB=	ETCDIR=${ETCDIR} \
212
PLIST_SUB=	ETCDIR=${ETCDIR} \
210
		POSTGREST_USER=${POSTGREST_USER} \
213
		POSTGREST_USER=${POSTGREST_USER} \
211
		POSTGREST_GROUP=${POSTGREST_GROUP}
214
		POSTGREST_GROUP=${POSTGREST_GROUP}
Lines 212-224 Link Here
212
215
213
USE_RC_SUBR=	postgrest
216
USE_RC_SUBR=	postgrest
214
217
215
SKIP_CABAL_PLIST=	yes
218
post-install:
216
217
do-install:
218
	@${MKDIR} ${STAGEDIR}${ETCDIR}
219
	@${MKDIR} ${STAGEDIR}${ETCDIR}
219
	${INSTALL_DATA} ${WRKDIR}/default.conf ${STAGEDIR}${ETCDIR}/default.conf.sample
220
	${INSTALL_DATA} ${WRKDIR}/default.conf ${STAGEDIR}${ETCDIR}/default.conf.sample
220
	${INSTALL_PROGRAM} \
221
		$$(find ${WRKSRC}/dist-newstyle -name ${EXECUTABLES} -type f -perm +111) \
222
		${STAGEDIR}${PREFIX}/sbin/${EXECUTABLES}
223
221
224
.include <bsd.port.mk>
222
.include <bsd.port.mk>
(-)www/hs-postgrest/files/postgrest.in (-1 / +1 lines)
Lines 91-97 Link Here
91
		fi
91
		fi
92
	fi
92
	fi
93
93
94
	procname="%%PREFIX%%/sbin/postgrest"
94
	procname="%%PREFIX%%/%%CABAL_LIBEXEC%%/postgrest"
95
	command="/usr/sbin/daemon"
95
	command="/usr/sbin/daemon"
96
	command_args="-f ${_syslog_output_flags} -p ${_child_pidfile} -P ${_pidfile} -t ${name}.${_profile} ${procname} ${_config}"
96
	command_args="-f ${_syslog_output_flags} -p ${_child_pidfile} -P ${_pidfile} -t ${name}.${_profile} ${procname} ${_config}"
97
97
(-)www/hs-postgrest/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
sbin/postgrest
2
@sample %%ETCDIR%%/default.conf.sample

Return to bug 246383