summaryrefslogtreecommitdiff
path: root/news/knews/Makefile
blob: 35754d2a8a043204a3ba8c7c1513135df20234d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $NetBSD: Makefile,v 1.7 1998/04/22 14:22:47 agc Exp $
#

DISTNAME=	knews-0.9.8
CATEGORIES=	news
MASTER_SITES=	ftp://ftp.nada.kth.se/home/su95-kjo/knews/ \
		ftp://ftp.cs.tu-berlin.de/pub/net/news/knews/

MAINTAINER=	tron@netbsd.org

DEPENDS+=	xpm-3.4j:../../graphics/xpm

USE_IMAKE=	yes
WRKSRC=		${WRKDIR}/knews

# Set DOMAIN_NAME to a string appended to the From: header or
# assign it a file from which the domain name is read.
post-extract:
.if !defined(DOMAIN_NAME)
	@${ECHO_MSG} "Type \"make DOMAIN_NAME=xyz\" to set the domain name."
.else
	@${ECHO_MSG} "Using \"${DOMAIN_NAME}\" as the From: domain name."
.endif

post-patch:
.if defined(DOMAIN_NAME)
	${ECHO_MSG} >>${WRKSRC}/configure.h \
	"#define DOMAIN_NAME \"${DOMAIN_NAME}\""
.endif

.include "../../mk/bsd.pkg.mk"