1996-09-24 17:03:37 +00:00
|
|
|
# New ports collection makefile for: mnews
|
|
|
|
# Version required: 1.19PL2
|
|
|
|
# Date created: 23 Sep 1996
|
|
|
|
# Whom: Masafumi NAKANE <max@FreeBSD.ORG>
|
|
|
|
#
|
1998-03-20 17:40:13 +00:00
|
|
|
# $Id: Makefile,v 1.9 1997/09/14 21:35:02 max Exp $
|
1996-09-24 17:03:37 +00:00
|
|
|
#
|
|
|
|
|
1998-03-20 17:40:13 +00:00
|
|
|
DISTNAME= mnews121
|
1996-11-11 10:13:07 +00:00
|
|
|
CATEGORIES= japanese news
|
1996-09-24 17:03:37 +00:00
|
|
|
MASTER_SITES= ftp://ftp.mei.co.jp/free/Network/news/readers/
|
|
|
|
|
1997-02-15 17:21:26 +00:00
|
|
|
MAINTAINER= kiroh@kh.rim.or.jp
|
1996-09-24 17:03:37 +00:00
|
|
|
|
1998-03-20 17:40:13 +00:00
|
|
|
WRKSRC= ${WRKDIR}/mnews-1.21/build
|
1996-12-18 07:59:44 +00:00
|
|
|
MAN1= mnews.1
|
|
|
|
MANLANG= ja_JP.EUC
|
|
|
|
|
1997-02-15 17:21:26 +00:00
|
|
|
DOCS= FAQ.doc board.doc gnspool.doc mnews.doc prerel.doc \
|
|
|
|
present.doc read1ST.doc readme.doc update.doc youbin.doc
|
|
|
|
SAMPLES= _mnews.smp jnames.fj jnames.jp jnames.smp jnames.tnn
|
1996-09-24 17:03:37 +00:00
|
|
|
|
1998-03-20 17:40:13 +00:00
|
|
|
.ifdef WITH_GNSPOOL
|
|
|
|
GNSPOOL= 1
|
|
|
|
PKGNAME= ja-mnews-gnspool-1.21
|
|
|
|
.else
|
|
|
|
GNSPOOL= 0
|
|
|
|
.endif
|
|
|
|
PKGNAME?= ja-mnews-1.21
|
|
|
|
|
1996-09-24 17:03:37 +00:00
|
|
|
do-configure:
|
|
|
|
@for f in Makefile site_dep.h ; do \
|
1998-03-20 17:40:13 +00:00
|
|
|
${SED} -e s+@PREFIX@+${PREFIX}+ -e s+@GNSPOOL@+${GNSPOOL}+ \
|
|
|
|
${FILESDIR}/$$f.in > ${WRKSRC}/$$f ; \
|
|
|
|
done
|
1996-09-24 17:03:37 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mnews ${PREFIX}/bin
|
1996-11-02 03:04:49 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/mnews
|
1997-02-15 17:21:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../etc/jnames.fj ${PREFIX}/lib/mnews/jnames
|
1996-11-02 03:04:49 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/mnews
|
1996-09-24 17:03:37 +00:00
|
|
|
.for f in ${SAMPLES}
|
1997-02-15 17:21:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../etc/$f ${PREFIX}/share/examples/mnews
|
1996-09-24 17:03:37 +00:00
|
|
|
.endfor
|
1997-02-15 17:21:26 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/../doc/mnews.1 ${PREFIX}/man/ja_JP.EUC/man1
|
1996-12-18 07:59:44 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mnews
|
|
|
|
.for f in ${DOCS}
|
1997-02-15 17:21:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/$f ${PREFIX}/share/doc/mnews
|
1996-12-18 07:59:44 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
1996-11-02 03:04:49 +00:00
|
|
|
|
1996-09-24 17:03:37 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(BATCH)
|
1998-03-20 17:40:13 +00:00
|
|
|
@( \
|
|
|
|
while [ X$$domain = X ]; do \
|
|
|
|
read -p "Enter the domain name of this host>" domain; \
|
|
|
|
done; \
|
|
|
|
${ECHO} $$domain > ${PREFIX}/lib/mnews/default-domain \
|
|
|
|
)
|
1996-09-24 17:03:37 +00:00
|
|
|
.else
|
1998-03-20 17:40:13 +00:00
|
|
|
@${ECHO} "Now, you need to make sure ${PREFIX}/lib/mnews/default-domain"
|
|
|
|
@${ECHO} "contains correct domain name."
|
|
|
|
@${ECHO} my.domain.com > ${PREFIX}/lib/mnews/default-domain
|
1996-09-24 17:03:37 +00:00
|
|
|
.endif
|
1998-03-20 17:40:13 +00:00
|
|
|
@${ECHO} "Please refer to the files in:"
|
|
|
|
@${ECHO} "${PREFIX}/share/doc/mnews & ${PREFIX}/share/examples/mnews."
|
1996-09-24 17:03:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|