blob: 7e205d7bcd3bafc34babc24dd500fd89b16257c3 (
plain)
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
|
PORTNAME= dhisd
PORTVERSION= 5.5
CATEGORIES= dns
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/ \
LOCAL/meta
MAINTAINER= egypcio@FreeBSD.org
COMMENT= DHIS server for dynamic updates on the server using specific engines
WWW= https://www.dhis.org/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libgmp.so:math/gmp
USE_RC_SUBR= ${PORTNAME}
SUB_LIST= USER="${USERS}" GROUP="${GROUPS}"
PLIST_SUB= USER="${USERS}" GROUP="${GROUPS}"
USERS= dhis
GROUPS= dhis
DOCS= CONTRIBUTORS INSTALL README
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${STAGEDIR}/var/run/dhis ${STAGEDIR}/var/log/dhis
${INSTALL_DATA} ${WRKSRC}/dhisd.conf.sample ${STAGEDIR}${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/dhis.db.sample ${STAGEDIR}${PREFIX}/etc/dhisd.db.sample
${INSTALL_PROGRAM} ${WRKSRC}/dhisd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/dhisgenkeys ${STAGEDIR}${PREFIX}/sbin
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/dhisd
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/dhisgenkeys
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && \
${INSTALL_MAN} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|