1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/news/newsx/Makefile
Pete Fritchman 4893182ac7 Update to 1.4.8 + fix a security vulnerability.
PR:		40618
Submitted by:	maintainer
2002-08-04 23:26:09 +00:00

61 lines
1.6 KiB
Makefile

# New ports collection makefile for: newsx
# Date created: 10th February, 2001
# Whom: Thierry Thomas <tthomas@mail.dotcom.fr>
#
# $FreeBSD$
#
PORTNAME= newsx
PORTVERSION= 1.4.8
CATEGORIES= news
MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.8/pl6/}
MAINTAINER= thierry@pompo.net
.if defined(WITH_CNEWS)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
.else !defined(WITHOUT_INN_2-X)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
.endif
USE_AUTOMAKE= yes
USE_REINPLACE= yes
CONFIGURE_ENV= PATH="${PATH}:${LOCALBASE}/news/bin"
.if !defined(WITH_CNEWS)
.if !defined(WITHOUT_INN_2-X)
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/news/include"
CONFIGURE_ARGS= --with-newslib=${LOCALBASE}/news/lib
.endif
.endif
HDR_DIR= ${LOCALBASE}/news/include
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
post-patch:
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/configure.in
pre-configure:
@${ECHO} "*********************************************************"
@${ECHO} "If the configure step fails, then you probably don't have"
@${ECHO} "a news server package installed. Try installing INN from"
@${ECHO} "${PORTSDIR}/news/inn, and then try building this port"
@${ECHO} "again."
@${ECHO} "*********************************************************"
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.endif
MAN1= newsq.1
MAN5= newsx.conf.5 in.hosts.5
MAN8= newsx.8
.include <bsd.port.mk>