blob: 2f63ae568968d848648ff9efa891df0ffa6ee8d2 (
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
|
# New ports collection makefile for: minder
# Date created: Sun Jan 16 01:16:28 UTC 2005
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= minder
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.alhem.net/project/minder/
MAINTAINER= lioux@FreeBSD.org
COMMENT= A small network application for automatic maintenance of peer lists
BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets.a:${PORTSDIR}/net/Sockets
USE_GMAKE= yes
USE_OPENSSL= yes
WITH_OPENSSL_BASE= yes
MAKE_ENV= CXX="${CXX}"
USE_REINPLACE= yes
# ssl support
CFLAGS+= ${PTHREAD_CFLAGS} -DHAVE_OPENSSL
PLIST_DIRS= \
%%EXAMPLESDIR%%
PLIST_FILES= \
%%EXAMPLESDIR%%/minder.cfg \
bin/${PORTNAME}
post-patch:
# CXX safeness
# CXXFLAGS safeness
# SSL include safeness
@${REINPLACE_CMD} -E \
-e 's|-O2||' \
-e 's|g\+\+|${CXX}|' \
-e 's|^INCLUDE.+$$|INCLUDE=-I${OPENSSLINC} -I${LOCALBASE}/include/Sockets|' \
-e 's|^LIBS.+$$|LIBS=-L${OPENSSLLIB} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \\|' \
${BUILD_WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -E \
-e 's|\(__sighandler_t\)||' \
${WRKSRC}/minder.cpp
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${FILESDIR}/minder.cfg.sample \
${EXAMPLESDIR}/minder.cfg
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
IGNORE= FreeBSD prior to 500000 does not support uuid(3) required\
for building
.endif
.include <bsd.port.post.mk>
|