1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/japanese/mnews/Makefile

65 lines
1.7 KiB
Makefile
Raw Normal View History

1996-09-24 17:03:37 +00:00
# New ports collection makefile for: mnews
# Version required: 1.21
1996-09-24 17:03:37 +00:00
# Date created: 23 Sep 1996
# 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
#
DISTNAME= mnews121
PKGNAME?= ja-mnews-1.21
CATEGORIES= japanese news
1996-09-24 17:03:37 +00:00
MASTER_SITES= ftp://ftp.mei.co.jp/free/Network/news/readers/
MAINTAINER= seiken@ARGV.AC
1996-09-24 17:03:37 +00:00
WRKSRC= ${WRKDIR}/mnews-1.21/build
MAN1= mnews.1
MANLANG= ja
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
GNSPOOL?= 0
1996-09-24 17:03:37 +00:00
do-configure:
.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
${MKDIR} ${PREFIX}/lib/mnews
${INSTALL_DATA} ${WRKSRC}/../etc/jnames.fj ${PREFIX}/lib/mnews/jnames
${MKDIR} ${PREFIX}/share/examples/mnews
1996-09-24 17:03:37 +00:00
.for f in ${SAMPLES}
${INSTALL_DATA} ${WRKSRC}/../etc/$f ${PREFIX}/share/examples/mnews
1996-09-24 17:03:37 +00:00
.endfor
${INSTALL_MAN} ${WRKSRC}/../doc/mnews.1 ${PREFIX}/man/ja/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/mnews
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/../doc/$f ${PREFIX}/share/doc/mnews
.endfor
.endif
1996-09-24 17:03:37 +00:00
post-install:
.if !defined(BATCH)
@( \
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
@${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
@${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>