# $NetBSD: Makefile,v 1.38 2015/01/01 11:19:28 dholland Exp $ DISTNAME= nntpclnt-1.6.1 PKGREVISION= 6 CATEGORIES= news MASTER_SITES= http://ftp.sunet.se/pub/news/nntp/ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= NNTP client library and inews client posting program LICENSE= nntpclnt-license RESTRICTED= Do not sell, rent, trade, market, or use for monetary profit # No permission granted for derivative works. NO_BIN_ON_FTP= ${RESTRICTED} NO_SRC_ON_CDROM=${RESTRICTED} NO_BIN_ON_CDROM=${RESTRICTED} CONFLICTS+= inn-[0-9]* BUILD_TARGET= inews PKG_GROUPS= news PKG_SYSCONFSUBDIR= nntp PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} .include "../../mk/bsd.prefs.mk" CONFIG_SH= ${FILESDIR}/config.${OPSYS}.sh BROKEN_EXCEPT_ON_PLATFORM= NetBSD-*-* DragonFly-*-* \ SunOS-*-* Linux-*-* Darwin-*-* INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man3 do-configure: ${SED} -e s,@PREFIX@,${PREFIX}, -e s,@PKGSYSCONFDIR@,${PKG_SYSCONFDIR}, \ ${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} ${WRKSRC}/inews ${DESTDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/nntp.h ${DESTDIR}${PREFIX}/include/ ${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${DESTDIR}${PREFIX}/lib/ ${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/ SPECIAL_PERMS+= bin/inews ${REAL_ROOT_USER} ${PKG_GROUPS} 2555 .include "../../mk/bsd.pkg.mk"