[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / ucspi-tcp6

File: [cvs.NetBSD.org] / pkgsrc / net / ucspi-tcp6 / Makefile (download)

Revision 1.2, Thu Jul 26 10:05:01 2018 UTC (7 months, 4 weeks ago) by schmonz
Branch: MAIN
Changes since 1.1: +7 -3 lines

Use ${INSTALL_SCRIPT} for scripts.

# $NetBSD: Makefile,v 1.2 2018/07/26 10:05:01 schmonz Exp $

DISTNAME=		ucspi-tcp6-1.06
CATEGORIES=		net
MASTER_SITES=		https://www.fehcom.de/ipnet/ucspi-tcp6/
EXTRACT_SUFX=		.tgz

MAINTAINER=		schmonz@NetBSD.org
HOMEPAGE=		https://www.fehcom.de/ipnet/ucspi-tcp6.html
COMMENT=		Command-line tools for building TCP client-server applications
LICENSE=		public-domain

CONFLICTS+=		ucspi-tcp-[0-9]*

WRKSRC=			${WRKDIR}/host/${PKGNAME_NOREV}
DJB_SLASHPACKAGE=	yes
DJB_RESTRICTED=		no
DJB_CONFIG_DIR=		${WRKSRC}

INSTALLATION_DIRS=	bin

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

SUBST_CLASSES+=		manz
SUBST_STAGE.manz=	do-configure
SUBST_FILES.manz=	package/man
.if !defined(MANZ)
SUBST_SED.manz=		-e 's|safe gzip |safe true |g'
SUBST_SED.manz+=	-e 's|\.gz||g'
.endif

post-configure:
	${RUN}cd ${DJB_CONFIG_DIR};	\
	${ECHO} ${PKGMANDIR} > conf-man

do-install:
	cd ${WRKSRC};							\
	for i in addcr argv0 delcr fixcrio mconnect-io rblsmtpd		\
		recordio tcpclient tcprules tcprulescheck tcpserver; do	\
	  ${INSTALL_PROGRAM} command/$${i} ${DESTDIR}${PREFIX}/bin;	\
	done;								\
	for i in date@ finger@ http@ mconnect tcpcat who@; do		\
	  ${INSTALL_SCRIPT} command/$${i} ${DESTDIR}${PREFIX}/bin;	\
	done;								\
	./package/man

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