1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/japanese/mnews/Makefile
1996-09-24 17:03:37 +00:00

62 lines
2.0 KiB
Makefile

# New ports collection makefile for: mnews
# Version required: 1.19PL2
# Date created: 23 Sep 1996
# Whom: Masafumi NAKANE <max@FreeBSD.ORG>
#
# $Id: porting.sgml,v 1.16 1996/03/21 14:15:01 asami Exp $
#
DISTNAME= mnews119
PKGNAME= jp-mnews-1.19.2
CATEGORIES+= japanese news
MASTER_SITES= ftp://ftp.mei.co.jp/free/Network/news/readers/
DISTFILES= mnews119.tar.gz mnews119_119PL1.tar.gz mnews119PL1_PL2.tar.gz
MAINTAINER= max@FreeBSD.ORG
NO_WRKSUBDIR=yes
PATCH_DIST_STRIP= -p1
DOCS= FAQ.doc board.doc mnews.doc mnews.1 prerel.doc \
present.doc read1ST.doc readme.doc update.doc
SAMPLES= jnames.fj jnames.jp jnames.smp jnames.tnn
pre-patch:
@for f in mnews119PL1.patch mnews119PL2.patch; do \
${PATCH} ${PATCH_DIST_ARGS} < ${WRKSRC}/$$f ; done
do-configure:
@for f in Makefile site_dep.h ; do \
sed s+@PREFIX@+${PREFIX}+ ${FILESDIR}/$$f.in > ${WRKSRC}/$$f ; done
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mnews ${PREFIX}/bin
if [ ! -d ${PREFIX}/lib/mnews ] ; \
then /bin/mkdir -p ${PREFIX}/lib/mnews ; fi
${INSTALL_DATA} ${WRKSRC}/jnames.fj ${PREFIX}/lib/mnews/jnames
if [ ! -d ${PREFIX}/share/mnews ] ; \
then /bin/mkdir -p ${PREFIX}/share/mnews ; fi
if [ ! -d ${PREFIX}/share/mnews/doc ] ; \
then /bin/mkdir ${PREFIX}/share/mnews/doc ; fi
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/mnews/doc
.endfor
if [ ! -d ${PREFIX}/share/mnews/samples ] ; \
then /bin/mkdir ${PREFIX}/share/mnews/samples ; fi
.for f in ${SAMPLES}
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/mnews/samples
.endfor
post-install:
.if !defined(BATCH)
@(while [ X$$domain = X ]; do \
echo -n "Enter the domain name of this host>"; read domain ; \
done; \
echo $$domain > ${PREFIX}/lib/mnews/default-domain)
.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
.endif
@echo "Refer to the files in ${PREFIX}/share/mnews."
.include <bsd.port.mk>