1996-09-24 17:03:37 +00:00
|
|
|
# New ports collection makefile for: mnews
|
|
|
|
# Date created: 23 Sep 1996
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Masafumi NAKANE <max@FreeBSD.org>
|
1996-09-24 17:03:37 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1996-09-24 17:03:37 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
PORTNAME= mnews
|
|
|
|
PORTVERSION= 1.22
|
2000-01-18 12:34:34 +00:00
|
|
|
CATEGORIES= japanese news ipv6
|
2000-01-03 19:36:07 +00:00
|
|
|
MASTER_SITES= ftp://ftp.leo.chubu.ac.jp/pub/network/mnews/
|
2000-04-11 14:15:53 +00:00
|
|
|
DISTNAME= mnews${PORTVERSION:S/.//}
|
1996-09-24 17:03:37 +00:00
|
|
|
|
1999-05-01 15:45:49 +00:00
|
|
|
MAINTAINER= seiken@ARGV.AC
|
1996-09-24 17:03:37 +00:00
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
WRKSRC= ${WRKDIR}/mnews-${PORTVERSION}/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
|
|
|
|
2000-01-03 19:36:07 +00:00
|
|
|
DOCS= FAQ.doc IPv6.doc IPv6_en.doc board.doc gnspool.doc mnews.doc \
|
|
|
|
prerel.doc present.doc read1ST.doc readme.doc update.doc \
|
|
|
|
year2000.doc youbin.doc
|
1997-02-15 17:21:26 +00:00
|
|
|
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
|
2000-01-03 19:36:07 +00:00
|
|
|
IMPUT?= 0
|
1998-03-20 17:40:13 +00:00
|
|
|
|
2000-01-25 22:01:31 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
MAKE_ENV+= USE_INET6=yes
|
|
|
|
.endif
|
|
|
|
|
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
|
2000-01-03 19:36:07 +00:00
|
|
|
${SED} -e s+@PREFIX@+${PREFIX}+ \
|
|
|
|
-e s+@GNSPOOL@+${GNSPOOL}+ \
|
|
|
|
-e s+@IMPUT@+${IMPUT}+ \
|
|
|
|
${FILESDIR}/${f}.in > ${WRKSRC}/${f}
|
1998-08-24 01:30:37 +00:00
|
|
|
.endfor
|
1996-09-24 17:03:37 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mnews ${PREFIX}/bin
|
2000-01-03 19:36:07 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/mnews
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../etc/jnames.fj ${PREFIX}/etc/mnews/jnames.default
|
|
|
|
.if !exists(${PREFIX}/etc/mnews/jnames)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../etc/jnames.fj ${PREFIX}/etc/mnews/jnames
|
|
|
|
.endif
|
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}
|
2000-01-03 19:36:07 +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}
|
2000-01-03 19:36:07 +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:
|
2000-01-03 19:36:07 +00:00
|
|
|
@${ECHO} my.domain.com > ${PREFIX}/etc/mnews/default-domain.default
|
|
|
|
@if [ \! -e ${PREFIX}/etc/mnews/default-domain ]; then \
|
|
|
|
if [ X${BATCH} = X ]; then \
|
1998-03-20 17:40:13 +00:00
|
|
|
while [ X$$domain = X ]; do \
|
|
|
|
read -p "Enter the domain name of this host>" domain; \
|
|
|
|
done; \
|
2000-01-03 19:36:07 +00:00
|
|
|
${ECHO} $$domain > ${PREFIX}/etc/mnews/default-domain; \
|
|
|
|
else \
|
|
|
|
${ECHO} "Now, you need to make sure ${PREFIX}/etc/mnews/default-domain"; \
|
|
|
|
${ECHO} "contains correct domain name."; \
|
|
|
|
${CP} ${PREFIX}/etc/mnews/default-domain.default ${PREFIX}/etc/mnews/default-domain; \
|
|
|
|
fi \
|
|
|
|
fi
|
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
|
|
|
|
2000-01-25 22:01:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|