4fee5ffce0
PLIST and delete everything under the @sample'd directory instead of the directory itself to prevent a warning from pkg_delete(1) trying to remove a non existing directory and to help preventing left-over files and directories. ok aja@
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.64 2011/05/11 12:03:20 jasper Exp $
|
|
|
|
COMMENT= Secure Internet Live Conferencing (SILC) server
|
|
|
|
DISTNAME= silc-server-1.1.18
|
|
REVISION= 2
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://www.silcnet.org/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c pthread
|
|
|
|
MASTER_SITES= http://ftp.silcnet.org/server/sources/ \
|
|
ftp://ftp.silcnet.org/silc/server/sources/ \
|
|
ftp://ftp.no.silcnet.org/pub/silc/server/sources/ \
|
|
http://the.wiretapped.net/security/network-security/silc/server/sources/
|
|
|
|
MODULES= converters/libiconv
|
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
BUILD_DEPENDS+= devel/yasm
|
|
.endif
|
|
|
|
FLAVORS= operops
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Moperops}
|
|
PATCH_LIST+= patch-* operops-*
|
|
.endif
|
|
|
|
CONFDIR= ${SYSCONFDIR}/silcd
|
|
SUBST_VARS= CONFDIR
|
|
|
|
USE_LIBTOOL= Yes
|
|
LIBTOOL_FLAGS= --tag=disable-shared
|
|
CONFIGURE_STYLE= autoconf
|
|
AUTOCONF_VERSION= 2.63
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
CONFIGURE_ENV+= ac_cv_path_NASM=no YASM=${LOCALBASE}/bin/yasm
|
|
.endif
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/silcd \
|
|
--with-etcdir=${CONFDIR} \
|
|
--with-logsdir=/var/log/silcd \
|
|
--with-silcd-config-file=${CONFDIR}/silcd.conf \
|
|
--with-silcd-pid-file=/var/run/silcd.pid \
|
|
--enable-debug
|
|
|
|
.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "i386"
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/silcd
|
|
${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${PREFIX}/share/doc/silcd
|
|
${INSTALL_DATA} ${WRKSRC}/doc/example_silcd.conf \
|
|
${PREFIX}/share/examples/silcd/silcd.conf
|
|
${INSTALL_DATA} ${WRKSRC}/doc/silcalgs.conf \
|
|
${PREFIX}/share/examples/silcd
|
|
|
|
.include <bsd.port.mk>
|