aedfee3c95
Merge two netcat.c patches into a single patch file, remove unneccessary call to res_init() and pass correct make options for Linux and (untested) Solaris.
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2002/10/08 14:29:36 abs Exp $
|
|
|
|
DISTNAME= nc110
|
|
PKGNAME= netcat-1.10
|
|
PKGREVISION= 1
|
|
WRKSRC= ${WRKDIR}
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
|
|
ftp://zippy.telcom.arizona.edu/pub/mirrors/avian.org/hacks/ \
|
|
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/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
|
HOMEPAGE= http://www.avian.org/web1/hak/netcat.html
|
|
COMMENT= Read and write data across network connections
|
|
|
|
MAKE_ENV+= DFLAGS="-DGAPING_SECURITY_HOLE -DTELNET"
|
|
ALL_TARGET= netbsd
|
|
|
|
EXTRA_PROGS= data rservice xor
|
|
EXAMPLE_DIR= share/examples/nc
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST ${WRKSRC}/data/PLIST.data
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/data; ${MAKE} ${EXTRA_PROGS}
|
|
|
|
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; \
|
|
${RM} -f PLIST.data; \
|
|
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; \
|
|
)
|
|
${INSTALL_MAN} ${FILESDIR}/nc.1 ${PREFIX}/man/man1/nc.1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|