aboutsummaryrefslogtreecommitdiffstats
path: root/net/sslh/Makefile
blob: b4368b644a52357b1387406552929c4b4c81cc73 (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
# New ports collection makefile for:    sslh
# Date created:     2010-03-29
# Whom:         Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   sslh
PORTVERSION=    1.13
CATEGORIES= net
MASTER_SITES=   http://www.rutschle.net/tech/

MAINTAINER= olivier@cochard.me
COMMENT=    A ssl/ssh multiplexer

LICENSE=    GPLv2

DISTFILES=  ${PORTNAME}-${PORTVERSION}b.tar.gz

LIB_DEPENDS=    config:${PORTSDIR}/devel/libconfig

USE_GMAKE=  yes
USE_PERL5_BUILD=    yes

OPTIONS_DEFINE= MANPAGES EXAMPLES
OPTIONS_DEFAULT=    MANPAGES EXAMPLES

CFLAGS+=    -I${LOCALBASE}/include
MAKE_ENV+=  LIBS="-L${LOCALBASE}/lib"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMANPAGES}
MAN8=       sslh.8
.endif

USE_RC_SUBR=    sslh

PORTEXAMPLES=   example.cfg
MANCOMPRESSED=  yes

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/sslh-fork ${PREFIX}/sbin
    @${INSTALL_PROGRAM} ${WRKSRC}/sslh-select ${PREFIX}/sbin
    #@${MKDIR} ${VARDIR}/run/${PORTNAME}
    #@${CHOWN} -R nobody:nobody ${VARDIR}/run/${PORTNAME}
.if ${PORT_OPTIONS:MMANPAGES}
    @${INSTALL_MAN} ${WRKSRC}/sslh.8.gz ${MANPREFIX}/man/man8
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>