aboutsummaryrefslogtreecommitdiffstats
path: root/net/ss5/Makefile
blob: 90f69887f39d76754dfc39d073f838ac61a7c3fc (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
# New ports collection makefile for:   ss5
# Date created:        25 August 2006
# Whom:                Raffaele De Lorenzo  - raffaele.delorenzo@libero.it
#
# $FreeBSD$
#

PORTNAME=   ss5
PORTVERSION=    3.6.4
PORTREVISION=   1
CATEGORIES= net security
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}-3
DISTNAME=   ${PORTNAME}-${PORTVERSION}-3

MAINTAINER= raffaele.delorenzo@libero.it
COMMENT=    SOCKS v4/v5 application layer gateway with many features

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_OPENLDAP=   yes
USE_RC_SUBR=    ${PORTNAME}

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-binpathbase=${PREFIX}/sbin \
        --with-docpathbase=${PREFIX}/share/doc \
        --with-confpathbase=${PREFIX}/etc \
        --with-libpath=${PREFIX}/lib

MAKE_ENV=   DATADIR=${DATADIR} EXAMPLESDIR=${EXAMPLESDIR}
CFLAGS+=    -DLDAP_DEPRECATED

MAN1=       ss5.1
MAN5=       ss5.conf.5 ss5.pam.5 ss5.passwd.5 ss5.ha.5
MANCOMPRESSED=  yes

post-patch:
    @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's,/usr/local/etc/opt/ss5,${PREFIX}/etc/ss5,' \
        ${WRKSRC}/include/config.h.in

post-install:
    ${TOUCH} ${PREFIX}/etc/ss5/ss5.ha.default
.if !exists(${PREFIX}/etc/ss5/ss5.ha)
    ${TOUCH} ${PREFIX}/etc/ss5/ss5.ha
.endif

.include <bsd.port.mk>