2013-04-10 10:00:10 +02:00
|
|
|
# $NetBSD: Makefile,v 1.37 2013/04/10 08:00:10 obache 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
|
2011-01-13 16:09:58 +01:00
|
|
|
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
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2013-04-10 10:00:10 +02:00
|
|
|
HOMEPAGE= http://nc110.sourceforge.net/
|
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}
|
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}
|
2004-10-26 06:47:05 +02:00
|
|
|
NC_TARGET.IRIX= irix
|
2004-10-22 01:55:12 +02:00
|
|
|
NC_TARGET.Interix= netbsd
|
2004-02-24 10:15:47 +01:00
|
|
|
NC_TARGET.OpenBSD= netbsd
|
2005-03-27 00:51:06 +01:00
|
|
|
NC_TARGET.DragonFly= freebsd
|
2005-09-08 19:40:30 +02:00
|
|
|
NC_TARGET.Darwin= generic
|
2004-12-03 16:14:50 +01:00
|
|
|
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:
|
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
|
|
|
|
2007-07-19 13:10:03 +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:
|
2007-05-20 17:38:33 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nc ${DESTDIR:Q}${PREFIX:Q}/sbin
|
1998-09-30 01:11:12 +02:00
|
|
|
.for i in ${EXTRA_PROGS}
|
2007-05-20 17:38:33 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/data/${i} \
|
|
|
|
${DESTDIR:Q}${PREFIX:Q}/sbin/nc-${i}
|
1998-09-30 01:11:12 +02:00
|
|
|
.endfor
|
2007-05-20 17:38:33 +02:00
|
|
|
${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
|
|
|
)
|
2007-05-20 17:38:33 +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"
|