1996-09-24 17:03:37 +00:00
|
|
|
# New ports collection makefile for: mnews
|
1998-08-24 01:30:37 +00:00
|
|
|
# Version required: 1.21
|
1996-09-24 17:03:37 +00:00
|
|
|
# Date created: 23 Sep 1996
|
|
|
|
# Whom: Masafumi NAKANE <max@FreeBSD.ORG>
|
|
|
|
#
|
1999-05-01 15:45:49 +00:00
|
|
|
# $Id: Makefile,v 1.13 1999/02/05 22:45:56 sada Exp $
|
1996-09-24 17:03:37 +00:00
|
|
|
#
|
|
|
|
|
1998-03-20 17:40:13 +00:00
|
|
|
DISTNAME= mnews121
|
1998-08-24 01:30:37 +00:00
|
|
|
PKGNAME?= ja-mnews-1.21
|
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/
|
|
|
|
|
1999-05-01 15:45:49 +00:00
|
|
|
MAINTAINER= seiken@ARGV.AC
|
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
|
1998-06-06 03:45:17 +00:00
|
|
|
MANLANG= ja
|
1996-12-18 07:59:44 +00:00
|
|
|
|
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-08-24 01:30:37 +00:00
|
|
|
GNSPOOL?= 0
|
1998-03-20 17:40:13 +00:00
|
|
|
|
1996-09-24 17:03:37 +00:00
|
|
|
do-configure:
|
1998-08-24 01:30:37 +00:00
|
|
|
.for f in Makefile site_dep.h
|
|
|
|
${SED} -e s+@PREFIX@+${PREFIX}+ -e s+@GNSPOOL@+${GNSPOOL}+ \
|
|
|
|
${FILESDIR}/$f.in > ${WRKSRC}/$f
|
|
|
|
.endfor
|
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
|
1998-06-06 03:45:17 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/../doc/mnews.1 ${PREFIX}/man/ja/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>
|