blob: 72020fb7a698d6ded1506f5eec014021b82566dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.1.1.1 1998/09/29 23:11:12 kim Exp $
PKGNAME= netcat-1.10
CATEGORIES= net
DISTNAME!= echo ${PKGNAME} | sed -e 's/netcat-/nc/' -e 's/\.//'
DISTFILES= ${DISTNAME}.tgz
MASTER_SITES= ftp://zippy.telcom.arizona.edu/pub/mirrors/avian.org/hacks/ \
ftp://ftp.sterling.com/mirrors/avian.org/src/hacks/ \
ftp://coast.cs.purdue.edu/pub/tools/unix/netcat/ \
ftp://ftp.rge.com/pub/security/coast/mirrors/avian.org/netcat/ \
ftp://ftp.gw.com/pub/unix/netcat/ \
ftp://avian.org/src/hacks/
WRKSRC= ${WRKDIR}
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://www.avian.org/web1/hak/netcat.html
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; \
)
.include "../../mk/bsd.pkg.mk"
|