Lines 4-10
DISTVERSION= 6.3.3
Link Here
|
4 |
CATEGORIES= databases |
4 |
CATEGORIES= databases |
5 |
|
5 |
|
6 |
MAINTAINER= zi@FreeBSD.org |
6 |
MAINTAINER= zi@FreeBSD.org |
7 |
COMMENT= High performance fork of Redis--a persistent key-value database |
7 |
COMMENT= High performance persistent key-value database |
8 |
WWW= https://docs.keydb.dev/ |
8 |
WWW= https://docs.keydb.dev/ |
9 |
|
9 |
|
10 |
LICENSE= BSD3CLAUSE |
10 |
LICENSE= BSD3CLAUSE |
Lines 13-21
LICENSE_FILE= ${WRKSRC}/COPYING
Link Here
|
13 |
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \ |
13 |
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \ |
14 |
liblz4.so:archivers/liblz4 \ |
14 |
liblz4.so:archivers/liblz4 \ |
15 |
libsnappy.so:archivers/snappy \ |
15 |
libsnappy.so:archivers/snappy \ |
16 |
libzstd.so:archivers/zstd |
16 |
libzstd.so:archivers/zstd \ |
|
|
17 |
liblinenoise.so:devel/linenoise |
17 |
|
18 |
|
18 |
USES= compiler:c11 cpe gmake pkgconfig:build tcl:test |
19 |
USES= compiler:c++14-lang cpe gmake localbase:ldflags pkgconfig \ |
|
|
20 |
tcl:test |
19 |
|
21 |
|
20 |
USE_GITHUB= yes |
22 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= Snapchat |
23 |
GH_ACCOUNT= Snapchat |
Lines 23-33
GH_PROJECT= KeyDB
Link Here
|
23 |
USE_RC_SUBR= keydb keydb_sentinel |
25 |
USE_RC_SUBR= keydb keydb_sentinel |
24 |
|
26 |
|
25 |
MAKE_ENV= OPTIMIZATION= \ |
27 |
MAKE_ENV= OPTIMIZATION= \ |
26 |
V=yo |
28 |
V=1 |
27 |
|
29 |
|
28 |
CFLAGS+= -I${LOCALBASE}/include |
30 |
LDFLAGS+= -lm -lexecinfo |
29 |
LDFLAGS+= -lpthread -lm -lexecinfo -L${LOCALBASE}/lib |
|
|
30 |
|
31 |
|
|
|
32 |
EXTRACT_AFTER_ARGS= --exclude deps/linenoise |
31 |
SUB_FILES= pkg-message |
33 |
SUB_FILES= pkg-message |
32 |
SUB_LIST= PORTNAME=${PORTNAME} \ |
34 |
SUB_LIST= PORTNAME=${PORTNAME} \ |
33 |
KEYDB_DBDIR=${KEYDB_DBDIR} \ |
35 |
KEYDB_DBDIR=${KEYDB_DBDIR} \ |
Lines 38-43
SUB_LIST= PORTNAME=${PORTNAME} \
Link Here
|
38 |
USERS= keydb |
40 |
USERS= keydb |
39 |
GROUPS= keydb |
41 |
GROUPS= keydb |
40 |
|
42 |
|
|
|
43 |
KEYDB_DBDIR?= /var/db/keydb |
44 |
KEYDB_RUNDIR?= /var/run/keydb |
45 |
KEYDB_LOGDIR?= /var/log/keydb |
46 |
|
47 |
BIN_FILES= keydb-benchmark keydb-check-aof keydb-check-rdb keydb-cli \ |
48 |
keydb-sentinel keydb-server |
49 |
|
41 |
PLIST_SUB= KEYDB_DBDIR=${KEYDB_DBDIR} \ |
50 |
PLIST_SUB= KEYDB_DBDIR=${KEYDB_DBDIR} \ |
42 |
KEYDB_GROUP=${GROUPS} \ |
51 |
KEYDB_GROUP=${GROUPS} \ |
43 |
KEYDB_LOGDIR=${KEYDB_LOGDIR} \ |
52 |
KEYDB_LOGDIR=${KEYDB_LOGDIR} \ |
Lines 47-72
PLIST_SUB= KEYDB_DBDIR=${KEYDB_DBDIR} \
Link Here
|
47 |
OPTIONS_DEFINE= TLS |
56 |
OPTIONS_DEFINE= TLS |
48 |
OPTIONS_DEFAULT= TLS |
57 |
OPTIONS_DEFAULT= TLS |
49 |
|
58 |
|
50 |
TLS_DESC= Use TLS (openssl req.) |
59 |
TLS_DESC= Use TLS (openssl req.) |
51 |
|
60 |
|
52 |
TLS_USES= ssl |
61 |
TLS_USES= ssl |
53 |
TLS_MAKE_ENV= BUILD_TLS=yes |
62 |
TLS_MAKE_ENV= BUILD_TLS=yes |
54 |
|
63 |
|
55 |
BIN_FILES= keydb-benchmark keydb-check-aof keydb-check-rdb keydb-cli \ |
|
|
56 |
keydb-sentinel keydb-server |
57 |
|
58 |
KEYDB_DBDIR?= /var/db/keydb |
59 |
KEYDB_RUNDIR?= /var/run/keydb |
60 |
KEYDB_LOGDIR?= /var/log/keydb |
61 |
|
62 |
.include <bsd.port.pre.mk> |
64 |
.include <bsd.port.pre.mk> |
63 |
|
65 |
|
64 |
.if ${ARCH} == i386 && !${CFLAGS:M-march=*} |
66 |
.if ${ARCH} == i386 && !defined(CPUTYPE) |
65 |
# Needed for __atomic_fetch_add_8 |
67 |
#LIB_DEPENDS+= |
66 |
USE_GCC= yes |
68 |
CPUTYPE= pentium |
67 |
CFLAGS+= -march=i586 |
|
|
68 |
.endif |
69 |
.endif |
69 |
|
70 |
|
|
|
71 |
#.if ${ARCH} == i386 && !${CFLAGS:M-march=*} |
72 |
# Needed for __atomic_fetch_add_8 |
73 |
#USE_GCC= yes |
74 |
#CFLAGS+= -march=i586 |
75 |
#.endif |
76 |
|
70 |
.if defined(_ADDFLAGS) |
77 |
.if defined(_ADDFLAGS) |
71 |
CFLAGS+= -fPIC |
78 |
CFLAGS+= -fPIC |
72 |
LDFLAGS+= -Wl,-E |
79 |
LDFLAGS+= -Wl,-E |