2001-11-09 08:50:55 +01:00
|
|
|
# New ports collection makefile for: silc server
|
|
|
|
# Date created: Thu Nov 8 01:50:05 BRST 2001
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= silc
|
2009-08-04 19:50:09 +02:00
|
|
|
PORTVERSION= 1.1.17
|
2002-02-03 21:07:35 +01:00
|
|
|
CATEGORIES= net ipv6 security
|
2002-12-31 21:33:56 +01:00
|
|
|
MASTER_SITES= http://www.silcnet.org/download/%SUBDIR%/ \
|
|
|
|
http://ftp.silcnet.org/%SUBDIR%/ \
|
|
|
|
http://www.nic.funet.fi/pub/mirrors/ftp.silcnet.org/silc/%SUBDIR%/ \
|
|
|
|
http://www.fi.silcnet.org/download/%SUBDIR%/ \
|
|
|
|
http://munitions.vipul.net/software/mirrors/silc/%SUBDIR%/ \
|
|
|
|
http://www.pl.silcnet.org/download/%SUBDIR%/ \
|
|
|
|
http://ftp.sunet.se/pub/network/silc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.silcnet.org/silc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.au.silcnet.org/pub/silcnet/%SUBDIR%/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.silcnet.org/silc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.pl.silcnet.org/pub/silc/%SUBDIR%/ \
|
2003-02-07 16:43:57 +01:00
|
|
|
ftp://ftp.sunet.se/pub/network/silc/%SUBDIR%/
|
2002-12-31 21:33:56 +01:00
|
|
|
MASTER_SITE_SUBDIR= server/sources
|
2001-11-09 08:50:55 +01:00
|
|
|
PKGNAMESUFFIX= -server
|
|
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
|
|
|
|
|
2008-03-18 02:06:46 +01:00
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= Secure Internet Live Conferencing (SILC) network server
|
2001-11-09 08:50:55 +01:00
|
|
|
|
2009-03-25 19:04:28 +01:00
|
|
|
LIB_DEPENDS= silc-1.1:${PORTSDIR}/devel/silc-toolkit
|
|
|
|
|
2009-05-09 04:46:09 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2008-03-18 02:06:46 +01:00
|
|
|
SUB_FILES= pkg-message pkg-deinstall
|
|
|
|
USE_RC_SUBR= silcd
|
2001-11-09 08:50:55 +01:00
|
|
|
USE_BZIP2= yes
|
2003-10-27 12:19:21 +01:00
|
|
|
USE_GMAKE= yes
|
2001-11-09 08:50:55 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-03-18 02:06:46 +01:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}"
|
2001-11-09 08:50:55 +01:00
|
|
|
CONFIGURE_ARGS= --with-silcd-config-file=${PREFIX}/etc/${PORTNAME}/silcd.conf \
|
2008-03-18 02:06:46 +01:00
|
|
|
--sysconfdir=${PREFIX}/etc/${PORTNAME} \
|
2001-11-09 08:50:55 +01:00
|
|
|
--with-helpdir=share/${PORTNAME}/help \
|
2003-10-27 12:19:21 +01:00
|
|
|
--with-logsdir=/var/log/${PORTNAME} \
|
2007-10-04 01:53:46 +02:00
|
|
|
--with-silcd-pid-file=/var/run/silcd.pid \
|
2008-03-18 02:06:46 +01:00
|
|
|
--enable-ipv6 \
|
|
|
|
--enable-debug
|
2001-11-09 08:50:55 +01:00
|
|
|
|
2002-12-31 21:33:56 +01:00
|
|
|
MAN5= silcd.conf.5
|
|
|
|
MAN8= silcd.8
|
|
|
|
|
2007-10-04 01:53:46 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
WITHOUT_OPTIMIZED_ASM= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(WITHOUT_OPTIMIZED_ASM)
|
|
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
|
|
.endif
|
|
|
|
|
2001-11-09 08:50:55 +01:00
|
|
|
pre-everything::
|
|
|
|
.ifndef(WITHOUT_OPTIMIZED_ASM)
|
|
|
|
@${ECHO_MSG} '===> Define WITHOUT_OPTIMIZED_ASM to disable assembler optimizations'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2008-05-28 15:46:44 +02:00
|
|
|
.ifdef(NOPORTEXAMPLES)
|
2002-12-31 21:33:56 +01:00
|
|
|
@${REINPLACE_CMD} -E -e \
|
2008-05-28 15:46:44 +02:00
|
|
|
'/examples-install.*\\/d' \
|
|
|
|
${WRKSRC}/apps/silcd/Makefile.in
|
2002-12-31 21:33:56 +01:00
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e 's/--libtool-enable-shared//' \
|
|
|
|
${WRKSRC}/lib/silccrypt/Makefile.in
|
|
|
|
|
2001-11-09 23:16:11 +01:00
|
|
|
post-install:
|
2008-03-18 02:06:46 +01:00
|
|
|
@if [ ! -f ${PREFIX}/etc/silc/silcd.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/silc/silcd.conf.sample ${PREFIX}/etc//silc/silcd.conf; \
|
|
|
|
fi
|
|
|
|
@if [ ! -f ${PREFIX}/etc/silc/silcalgs.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/silc/silcalgs.conf.sample ${PREFIX}/etc/silc/silcalgs.conf; \
|
2003-10-27 12:19:21 +01:00
|
|
|
fi
|
2008-03-18 02:06:46 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-11-09 23:16:11 +01:00
|
|
|
|
2001-11-09 08:50:55 +01:00
|
|
|
.include <bsd.port.post.mk>
|