blob: ffc597a033f618c09889b33cd7c48e7e52e383b4 (
plain)
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
|
PORTNAME= ss5
DISTVERSION= 3.8.9-8
PORTREVISION= 3
CATEGORIES= net security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
MAINTAINER= raffaele.delorenzo@libero.it
COMMENT= SOCKS v4/v5 application layer gateway with many features
WWW= https://ss5.sourceforge.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/License
USES= ldap ssl
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_ARGS+= CC="${CC}"
MAKE_ENV= DATADIR=${DATADIR} EXAMPLESDIR=${EXAMPLESDIR}
CFLAGS+= -fcommon
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/-[0-9]+//}
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/usr/local/etc/opt/ss5,${PREFIX}/etc/ss5,' \
${WRKSRC}/include/config.h.in
post-install:
${MKDIR} ${STAGEDIR}/var/log/ss5 ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/conf/ss5.conf \
${STAGEDIR}${PREFIX}/etc/ss5/ss5.conf.sample
${INSTALL_DATA} ${WRKSRC}/conf/ss5.ha \
${STAGEDIR}${PREFIX}/etc/ss5/ss5.ha.sample
${INSTALL_DATA} ${WRKSRC}/conf/ss5.passwd \
${STAGEDIR}${PREFIX}/etc/ss5/ss5.passwd.sample
.include <bsd.port.mk>
|