1994-10-01 21:28:26 +01:00
|
|
|
# New ports collection makefile for: nntp
|
|
|
|
# Date created: 29 September 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1999-08-30 16:33:04 +02:00
|
|
|
# $FreeBSD$
|
1994-10-01 21:28:26 +01:00
|
|
|
#
|
|
|
|
|
2000-04-09 19:33:32 +02:00
|
|
|
PORTNAME= nntp
|
|
|
|
PORTVERSION= 1.5.12.2
|
2003-07-25 19:19:05 +02:00
|
|
|
PORTREVISION= 4
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= news
|
2003-12-24 12:57:56 +01:00
|
|
|
MASTER_SITES= ftp://ftp.dinoex.org/pub/c-news/
|
2000-04-09 19:33:32 +02:00
|
|
|
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
2000-01-12 06:51:25 +01:00
|
|
|
|
2003-11-16 19:03:49 +01:00
|
|
|
PATCH_SITES= ftp://ftp.dinoex.org/pub/c-news/
|
2000-04-21 09:52:25 +02:00
|
|
|
PATCHFILES= nntp-patch-y2k
|
1994-10-01 21:28:26 +01:00
|
|
|
|
2003-03-04 21:02:46 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 19:26:42 +01:00
|
|
|
COMMENT= NNTP with NOV support
|
1996-03-20 02:49:59 +01:00
|
|
|
|
1999-11-26 19:22:26 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/news/cnews
|
1995-04-18 16:37:45 +02:00
|
|
|
|
2000-01-12 06:51:25 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
1996-11-18 15:17:24 +01:00
|
|
|
MAN1= nntpxmit.1
|
2000-01-12 06:51:25 +01:00
|
|
|
MAN8= nntpd.8c acttimes.8c
|
2003-06-13 06:11:06 +02:00
|
|
|
PLIST_SUB+= VARBASE=${VARBASE}
|
|
|
|
PLIST_SUB+= NEWSBIN=${NEWSBIN:S=^${PREFIX}/==}
|
|
|
|
PLIST_SUB+= NEWSCTL=${NEWSCTL:S=^${VARBASE}/==}
|
1999-11-26 19:22:26 +01:00
|
|
|
|
2000-01-12 06:51:25 +01:00
|
|
|
MODIFY= conf.h Makefile
|
2002-02-20 16:36:33 +01:00
|
|
|
DOCSFILES1= AUTHORIZE CHANGES README README-conf.h SYSLOG doc/rfc977
|
|
|
|
DOCSFILES2= server support xfer xmit
|
1999-11-26 19:22:26 +01:00
|
|
|
|
2003-06-13 06:11:06 +02:00
|
|
|
VARBASE?= /var
|
2002-09-01 13:06:43 +02:00
|
|
|
NEWSBIN?= ${PREFIX}/libexec/cnews
|
2003-06-13 06:11:06 +02:00
|
|
|
NEWSCTL?= ${VARBASE}/lib/news
|
|
|
|
NEWSARTS?= ${VARBASE}/news
|
|
|
|
NEWSOV?= ${VARBASE}/news
|
1996-11-18 15:17:24 +01:00
|
|
|
|
2002-12-05 19:13:49 +01:00
|
|
|
MAKE_ENV+= DBLIBS="${LOCALBASE}/lib/libcnews.a -lcrypt -lutil"
|
|
|
|
MAKE_ENV+= ETCDIR="${LOCALBASE}/sbin" BINDIR="${NEWSBIN}"
|
|
|
|
MAKE_ENV+= MANDIR="${LOCALBASE}/man"
|
|
|
|
|
1996-03-20 02:49:59 +01:00
|
|
|
post-extract:
|
1999-08-23 01:33:47 +02:00
|
|
|
@${CP} ${WRKSRC}/conf.h.dist ${WRKSRC}/conf.h
|
1994-10-01 21:28:26 +01:00
|
|
|
|
1999-11-26 19:22:26 +01:00
|
|
|
pre-configure:
|
|
|
|
.for i in ${MODIFY}
|
|
|
|
@${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed
|
|
|
|
${SED} \
|
|
|
|
-e "s=/usr/local/news/lib/bin/config=${NEWSBIN}/config=" \
|
|
|
|
-e "s=/usr/local/news/cnewsbin=${NEWSBIN}=" \
|
|
|
|
-e "s=/usr/local/news/lib=${NEWSCTL}=" \
|
|
|
|
-e "s=/var/news/over.view=${NEWSOV}=" \
|
|
|
|
-e "s=/var/news=${NEWSARTS}=" \
|
|
|
|
-e "s=/usr/local/bin=${PREFIX}/bin=" \
|
2000-01-12 06:51:25 +01:00
|
|
|
-e "s=/usr/local/sbin=${PREFIX}/sbin=" \
|
|
|
|
-e "s=/usr/local/man=${PREFIX}/man=" \
|
1999-11-26 19:22:26 +01:00
|
|
|
${WRKSRC}/${i}.sed >${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
|
2000-01-12 06:51:25 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/overview.fmt ${NEWSCTL}/overview.fmt
|
2002-02-20 16:36:33 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${DOCSFILES1}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.for i in ${DOCSFILES2}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/${i}-README
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-01-12 06:51:25 +01:00
|
|
|
|
1994-10-01 21:28:26 +01:00
|
|
|
.include <bsd.port.mk>
|