blob: 1d823bc85295295c45791ba9794c1a8f483852f8 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Created by: Dmitry Yu Okunev dyokunev@ut.mephi.ru
# $FreeBSD$
PORTNAME= clsync
DISTVERSION= 0.4~rc2
PORTREVISION= 1
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}-${GH_COMMIT}
CATEGORIES= sysutils
MAINTAINER= dyokunev@ut.mephi.ru
COMMENT= Live file sync daemon based on inotify, written in GNU C
LICENSE= GPLv3
LIB_DEPENDS= libinotify.so:${PORTSDIR}/devel/libinotify \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
GNU_CONFIGURE= yes
USES= gmake libtool pkgconfig
USE_GNOME= glib20
USE_RC_SUBR= clsync
SUB_FILES= pkg-message
USE_GITHUB= yes
GH_ACCOUNT= xaionaro
GH_PROJECT= clsync
GH_COMMIT= 85e5475
GH_TAGNAME= ${GH_COMMIT}
USE_AUTOTOOLS= autoconf aclocal automake libtoolize
OPTIONS_DEFINE= PARANOID VERYPARANOID SOCKET DEBUG LIBCLSYNC
PARANOID_DESC= Enable paranoid secure routines
VERYPARANOID_DESC=Enable extra paranoid secure routines and disable some extra features
SOCKET_DESC= Enable control socket support
LIBCLSYNC_DESC= Build libclsync.so for control socket clients
OPTIONS_DEFAULT=PARANOID
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVERYPARANOID}
CONFIGURE_ARGS+= --enable-paranoid=2
.else
.if ${PORT_OPTIONS:MPARANOID}
CONFIGURE_ARGS+= --enable-paranoid=1
.else
CONFIGURE_ARGS+= --enable-paranoid=0
.endif
.endif
.if ${PORT_OPTIONS:MSOCKET}
CONFIGURE_ARGS+= --enable-socket
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${PORT_OPTIONS:MLIBCLSYNC}
CONFIGURE_ARGS+= --enable-libclsync
.endif
.include <bsd.port.pre.mk>
pre-configure:
cd "${WRKSRC}" && ${AUTORECONF} -fi
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/clsync ${STAGEDIR}/${PREFIX}/sbin/clsync
${INSTALL_DATA} ${WRKSRC}/man/man1/clsync.1 ${STAGEDIR}/${PREFIX}/man/man1/clsync.1
${MKDIR} ${STAGEDIR}/${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/freebsd/usr/local/etc/clsync/${PORTNAME}.conf ${STAGEDIR}/${ETCDIR}/${PORTNAME}.conf.sample
.include <bsd.port.post.mk>
|