2001-11-09 02:50:55 -05: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
|
2004-03-04 03:39:42 -05:00
|
|
|
PORTVERSION= 0.9.18
|
2002-02-03 15:07:35 -05:00
|
|
|
CATEGORIES= net ipv6 security
|
2002-12-31 15:33:56 -05: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 10:43:57 -05:00
|
|
|
ftp://ftp.sunet.se/pub/network/silc/%SUBDIR%/
|
2002-12-31 15:33:56 -05:00
|
|
|
MASTER_SITE_SUBDIR= server/sources
|
2001-11-09 02:50:55 -05:00
|
|
|
PKGNAMESUFFIX= -server
|
|
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
|
|
|
|
|
2004-04-16 03:47:21 -04:00
|
|
|
MAINTAINER= aquatique-ports@rambler.ru
|
2003-02-23 14:58:35 -05:00
|
|
|
COMMENT= Secure Internet Live Conferencing (SILC) network server
|
2001-11-09 02:50:55 -05:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2003-10-27 06:19:21 -05:00
|
|
|
USE_GMAKE= yes
|
2002-07-17 18:28:04 -04:00
|
|
|
USE_REINPLACE= yes
|
2001-11-09 02:50:55 -05:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-silcd-config-file=${PREFIX}/etc/${PORTNAME}/silcd.conf \
|
|
|
|
--with-etcdir=${PREFIX}/etc/${PORTNAME} \
|
|
|
|
--with-helpdir=share/${PORTNAME}/help \
|
2003-10-27 06:19:21 -05:00
|
|
|
--with-logsdir=/var/log/${PORTNAME} \
|
2001-11-15 19:25:52 -05:00
|
|
|
--with-silcd-pid-file=/var/run/silcd.pid
|
2003-10-27 06:19:21 -05:00
|
|
|
|
2001-11-09 02:50:55 -05:00
|
|
|
PLIST_SUB= INSTALL_DIR="${INSTALL_DIR}"
|
2001-11-09 17:16:11 -05:00
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
2001-11-09 02:50:55 -05:00
|
|
|
|
|
|
|
INSTALL_DIR?= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
|
|
|
|
|
2002-12-31 15:33:56 -05:00
|
|
|
MAN5= silcd.conf.5
|
|
|
|
MAN8= silcd.8
|
|
|
|
|
2001-11-09 02:50:55 -05:00
|
|
|
.ifndef(WITH_PTHREADS)
|
2003-10-27 06:19:21 -05:00
|
|
|
CONFIGURE_ARGS+= --without-pthreads
|
2001-11-09 02:50:55 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.ifndef(WITHOUT_OPTIMIZED_ASM)
|
|
|
|
@${ECHO_MSG} '===> Define WITHOUT_OPTIMIZED_ASM to disable assembler optimizations'
|
|
|
|
.endif
|
|
|
|
.ifndef(WITH_PTHREADS)
|
|
|
|
@${ECHO_MSG} '===> Define WITH_PTHREADS to enable pthreads support'
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
2003-10-27 06:19:21 -05:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/silcd.sh \
|
|
|
|
> ${WRKSRC}/silcd.sh
|
2001-11-09 02:50:55 -05:00
|
|
|
|
|
|
|
post-patch:
|
2002-12-31 15:33:56 -05:00
|
|
|
.ifdef(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's/(install-data-hook:.*)example-install/\1/' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e 's/--libtool-enable-shared//' \
|
|
|
|
${WRKSRC}/lib/silccrypt/Makefile.in
|
|
|
|
|
2001-11-09 17:16:11 -05:00
|
|
|
post-install:
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
|
|
|
${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2003-10-27 06:19:21 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/silcd.sh ${PREFIX}/etc/rc.d/silcd.sh-dist
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/silcd.sh ]; then \
|
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/silcd.sh startup file."; \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/silcd.sh ${PREFIX}/etc/rc.d/silcd.sh; \
|
|
|
|
fi
|
2001-11-09 17:16:11 -05:00
|
|
|
|
2001-11-09 02:50:55 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
WITHOUT_OPTIMIZED_ASM= yes
|
|
|
|
.endif
|
|
|
|
|
2002-02-03 15:07:35 -05:00
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2002-01-21 14:33:16 -05:00
|
|
|
.ifdef(WITHOUT_OPTIMIZED_ASM)
|
|
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
|
|
.endif
|
|
|
|
|
2001-11-09 02:50:55 -05:00
|
|
|
.include <bsd.port.post.mk>
|