summaryrefslogtreecommitdiff
path: root/news/nntpclnt/Makefile
blob: 969ff3632e6792cf24de86c6b691f9ef39f125e4 (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
32
33
34
35
36
37
38
39
40
41
42
# $NetBSD: Makefile,v 1.19 2003/06/02 01:17:35 jschauma Exp $

DISTNAME=	nntpclnt-1.6.1
PKGREVISION=	3
CATEGORIES=	news
MASTER_SITES=	ftp://ftp.uu.net/networking/news/nntp/

MAINTAINER=	tech-pkg@netbsd.org
COMMENT=	NNTP client library and inews client posting program

CONFLICTS+=	inn-[0-9]*

LICENSE=	nntpclnt-license
RESTRICTED=	"Do not sell, rent, trade, market, or use for monetary profit"
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}

ALL_TARGET=	inews
PKG_GROUPS=	news
USE_PKGINSTALL=	yes

.include "../../mk/bsd.prefs.mk"

CONFIG_SH=	${FILESDIR}/config.${OPSYS}.sh

do-configure:
	${SED} -e s,@PREFIX@,${PREFIX}, ${CONFIG_SH} >${WRKSRC}/config.sh
	@cd ${WRKSRC} && ${SH} Makefile.SH && ${SH} config.h.SH

post-build:
	cd ${WRKSRC} && \
		${AR} clq libnntpclnt.a nntpclnt.o && ${RANLIB} libnntpclnt.a

do-install:
	${INSTALL_PROGRAM} -g ${PKG_GROUPS} -m 2555 ${WRKSRC}/inews \
	  ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/nntp.h ${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${PREFIX}/lib/
	${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${PREFIX}/man/man3/
	${INSTALL_DATA_DIR} ${PREFIX}/etc/nntp

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