pkgsrc/net/netcat/Makefile

61 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.37 2013/04/10 08:00:10 obache Exp $
1998-09-30 01:11:12 +02:00
DISTNAME= nc110
1998-09-30 01:11:12 +02:00
PKGNAME= netcat-1.10
PKGREVISION= 3
1998-09-30 01:11:12 +02:00
CATEGORIES= net
2009-06-13 00:17:28 +02:00
MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/
2000-02-05 20:52:29 +01:00
EXTRACT_SUFX= .tgz
1998-09-30 01:11:12 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://nc110.sourceforge.net/
COMMENT= Read and write data across network connections
1998-09-30 01:11:12 +02:00
2004-01-05 12:28:07 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
1998-09-30 01:11:12 +02:00
MAKE_ENV+= DFLAGS="-DGAPING_SECURITY_HOLE -DTELNET"
.include "../../mk/bsd.prefs.mk"
NC_TARGET.${OPSYS}?= ${LOWER_OPSYS}
NC_TARGET.IRIX= irix
2004-10-22 01:55:12 +02:00
NC_TARGET.Interix= netbsd
NC_TARGET.OpenBSD= netbsd
NC_TARGET.DragonFly= freebsd
2005-09-08 19:40:30 +02:00
NC_TARGET.Darwin= generic
BUILD_TARGET= ${NC_TARGET.${OPSYS}}
1998-09-30 01:11:12 +02:00
EXTRA_PROGS= data rservice xor
EXAMPLE_DIR= share/examples/nc
PLIST_SRC= ${PKGDIR}/PLIST ${WRKSRC}/data/PLIST.data
2006-11-12 21:58:51 +01:00
INSTALLATION_DIRS= ${PKGMANDIR}/man1 sbin
2004-01-05 12:28:07 +01:00
1998-09-30 01:11:12 +02:00
post-build:
@cd ${WRKSRC}/data && ${SETENV} ${MAKE_ENV} ${MAKE} ${EXTRA_PROGS}
1998-09-30 01:11:12 +02:00
# Note: the nc binary is installed into sbin to avoid a conflict with
# editors/nedit.
1998-09-30 01:11:12 +02:00
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nc ${DESTDIR:Q}${PREFIX:Q}/sbin
1998-09-30 01:11:12 +02:00
.for i in ${EXTRA_PROGS}
${INSTALL_PROGRAM} ${WRKSRC}/data/${i} \
${DESTDIR:Q}${PREFIX:Q}/sbin/nc-${i}
1998-09-30 01:11:12 +02:00
.endfor
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/${EXAMPLE_DIR}
@( \
cd ${WRKSRC}/data; \
${RM} -f PLIST.data; \
for i in README Makefile *.c *.d; \
do \
${INSTALL_DATA} $$i ${DESTDIR:Q}${PREFIX:Q}/${EXAMPLE_DIR}; \
${ECHO} ${EXAMPLE_DIR}/$$i >> PLIST.data; \
done; \
1998-09-30 01:11:12 +02:00
)
${INSTALL_MAN} ${FILESDIR}/nc.1 \
${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1/nc.1
1998-09-30 01:11:12 +02:00
.include "../../mk/bsd.pkg.mk"