# $NetBSD: Makefile,v 1.23 2003/05/02 11:54:06 wiz Exp $ # DISTNAME= silc-server-0.9.13 PKGREVISION= 1 CATEGORIES= chat security MASTER_SITES= http://www.silcnet.org/download/server/sources/ \ ftp://ftp.silcnet.org/silc/server/sources/ \ http://www.fi.silcnet.org/download/server/sources/ \ ftp://ftp.au.silcnet.org/pub/silcnet/server/sources/ \ http://www.at.silcnet.org/download/server/sources/ EXTRACT_SUFX= .tar.bz2 MAINTAINER= salo@netbsd.org HOMEPAGE= http://www.silcnet.org/ COMMENT= Server for the Secure Internet Live Conferencing (SILC) protocol USE_BUILDLINK2= YES USE_PKGINSTALL= YES GNU_CONFIGURE= YES USE_GMAKE= YES USE_LIBTOOL= YES SHLIBTOOL_OVERRIDE= ${WRKSRC}/libtool ${WRKSRC}/lib/silcmath/mpi/libtool .include "../../mk/bsd.prefs.mk" SILCD_USER?= silcd SILCD_GROUP?= silcd PKG_GROUPS= ${SILCD_GROUP} PKG_USERS= ${SILCD_USER}:${SILCD_GROUP}::SILC\\ Server\\ user PKG_SYSCONFSUBDIR?= silcd MAKE_ENV+= examplesdir=${PREFIX}/share/examples/silcd CONF_FILES_MODE= 0600 CONF_FILES+= ${PREFIX}/share/examples/silcd/silcd.conf.default \ ${PKG_SYSCONFDIR}/silcd.conf CONF_FILES+= ${PREFIX}/share/examples/silcd/silcalgs.conf.default \ ${PKG_SYSCONFDIR}/silcalgs.conf CONF_FILES_PERMS+= ${PREFIX}/share/examples/silcd/motd.txt.default \ ${PKG_SYSCONFDIR}/motd.txt \ ${ROOT_USER} ${ROOT_GROUP} 0644 RCD_SCRIPTS= silcd .if ${OPSYS} == "NetBSD" RCD_SCRIPT_SRC.silcd= ${FILESDIR}/silcd.sh .else RCD_SCRIPT_SRC.silcd= ${FILESDIR}/silcd.generic .endif OWN_DIRS_PERMS+= /var/log/silcd ${SILCD_USER} ${SILCD_GROUP} 0700 CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/silcd CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/silcd CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR} CONFIGURE_ARGS+= --with-silcd-config-file=${PKG_SYSCONFDIR}/silcd.conf CONFIGURE_ARGS+= --with-simdir=${PREFIX}/lib/silcd/modules CONFIGURE_ARGS+= --with-logsdir=/var/log/silcd CONFIGURE_ARGS+= --with-silcd-pid-file=/var/run/silcd.pid CONFIGURE_ARGS+= --without-iconv CONFIGURE_ARGS+= --without-libtoolfix # List it into IPv6-ready packages. BUILD_DEFS+= USE_INET6 CONFIGURE_ARGS+= --enable-ipv6 # If you want to debug silc-server, uncomment this. # #CONFIGURE_ARGS+= --enable-debug .if (${MACHINE_ARCH} != "i386") CONFIGURE_ARGS+= --disable-asm .endif post-install: @${SED} ${FILES_SUBST_SED} ${FILESDIR}/motd.txt \ > ${PREFIX}/share/examples/silcd/motd.txt.default .include "../../devel/glib/buildlink2.mk" .include "../../mk/bsd.pkg.mk"