2004-08-05 16:47:46 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2004/08/05 14:47:46 drochner Exp $
|
1998-09-30 01:11:12 +02:00
|
|
|
|
1999-03-07 01:40:40 +01:00
|
|
|
DISTNAME= nc110
|
1998-09-30 01:11:12 +02:00
|
|
|
PKGNAME= netcat-1.10
|
2004-08-05 16:47:46 +02:00
|
|
|
PKGREVISION= 2
|
1998-09-30 01:11:12 +02:00
|
|
|
CATEGORIES= net
|
2000-11-20 05:47:17 +01:00
|
|
|
MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
|
|
|
|
ftp://zippy.telcom.arizona.edu/pub/mirrors/avian.org/hacks/ \
|
1998-09-30 01:11:12 +02:00
|
|
|
ftp://ftp.sterling.com/mirrors/avian.org/src/hacks/ \
|
|
|
|
ftp://ftp.rge.com/pub/security/coast/mirrors/avian.org/netcat/ \
|
|
|
|
ftp://ftp.gw.com/pub/unix/netcat/ \
|
|
|
|
ftp://avian.org/src/hacks/
|
2000-02-05 20:52:29 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
1998-09-30 01:11:12 +02:00
|
|
|
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
2003-09-07 01:04:16 +02:00
|
|
|
HOMEPAGE= http://www.atstake.com/research/tools/network_utilities/
|
2001-02-17 18:52:59 +01:00
|
|
|
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
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2004-01-05 12:28:07 +01:00
|
|
|
USE_BUILDLINK3= yes
|
1998-09-30 01:11:12 +02:00
|
|
|
MAKE_ENV+= DFLAGS="-DGAPING_SECURITY_HOLE -DTELNET"
|
2004-02-24 10:15:47 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
NC_TARGET.${OPSYS}?= ${LOWER_OPSYS}
|
|
|
|
NC_TARGET.OpenBSD= netbsd
|
|
|
|
ALL_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
|
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
INSTALLATION_DIRS= man/man1 sbin
|
|
|
|
|
1998-09-30 01:11:12 +02:00
|
|
|
post-build:
|
2003-08-12 08:51:39 +02:00
|
|
|
@cd ${WRKSRC}/data && ${SETENV} ${MAKE_ENV} ${MAKE} ${EXTRA_PROGS}
|
1998-09-30 01:11:12 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/sbin
|
|
|
|
.for i in ${EXTRA_PROGS}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/data/$i ${PREFIX}/sbin/nc-$i
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${EXAMPLE_DIR}
|
|
|
|
@( \
|
|
|
|
cd ${WRKSRC}/data; \
|
1999-03-07 01:34:36 +01:00
|
|
|
${RM} -f PLIST.data; \
|
1998-09-30 01:11:12 +02:00
|
|
|
for i in README Makefile *.c *.d; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/${EXAMPLE_DIR}; \
|
|
|
|
${ECHO} ${EXAMPLE_DIR}/$$i >> PLIST.data; \
|
|
|
|
done; \
|
|
|
|
${ECHO} "@dirrm ${EXAMPLE_DIR}" >> PLIST.data; \
|
|
|
|
)
|
2001-01-12 01:44:23 +01:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/nc.1 ${PREFIX}/man/man1/nc.1
|
1998-09-30 01:11:12 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|