# $OpenBSD$

COMMENT=		"InterNetNews - a complete Usenet system"

DISTNAME=		inn-2.4.2
CATEGORIES=		news

HOMEPAGE=		http://www.isc.org/sw/inn/

MAINTAINER=		Marc Balmer <mbalmer@openbsd.org>

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=		c

MASTER_SITES=		ftp://ftp.isc.org/isc/inn/

CONFIGURE_STYLE=	gnu
CONFIGURE_ARGS+=	--with-etc-dir=${SYSCONFDIR}/news \
			--with-doc-dir=${LOCALBASE}/share/doc/inn \
			--with-control-dir=${LOCALBASE}/news/control \
			--with-db-dir=/var/news/db \
			--with-filter-dir=${LOCALBASE}/news/filter \
			--with-lib-dir=${LOCALBASE}/lib \
			--with-log-dir=/var/log \
			--with-run-dir=/var/run \
			--with-spool-dir=/var/spool/news \
			--with-tmp-dir=/var/news/tmp \
			--with-news-user=_inn \
			--with-news-group=_inn

CONFIGURE_ENV=	

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples
	mv ${WRKINST}${SYSCONFDIR}/news ${PREFIX}/share/examples/inn
	mv ${WRKINST}/var/news ${PREFIX}/share/examples/inn

.include <bsd.port.mk>
