# netcat/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] # 1. This package is more complicated than usual for two reasons: # a. The base sources don't follow the usual directory-tree con- # ventions. # b. We're building two different versions of the "netcat" program # ("nc" and "nccs"). # Note: "nccs" is this distro's name for the client-server version of # "netcat" created by Claudio Scordino, Linda Martorini, and Francesco # Lelli (2002). For more information on "nccs", see "netcat.txt" under # the installed tree. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.03 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.00 hours (or 000.03 minutes) - HP EliteBook 8560w 32GB RAM 00.00 hours (or 000.05 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.13 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none depends = none exepack = yes license = See "*.txt" in installed tree revision = special tmpsize = 3M unpack = none #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin DOCDIR=$PKGDIR_PROD/doc MANDIR=$PKGDIR_PROD/man/man1 mkdir -p $BINDIR $DOCDIR $MANDIR rm -fr netcat mkdir netcat cd netcat tar zxf $PKGDIR_SPECIAL/nc110.tar.gz gzip -c -d < $PKGDIR_SPECIAL/netcat_1.10-33.diff.gz \ > debian-stuff patch -p1 < debian-stuff for x in `cat debian/patches/series` do patch -p1 < debian/patches/$x || exit 1 done make linux \ CFLAGS='-O2' STATIC='' \ DFLAGS='-DLINUX -DTELNET -DGAPING_SECURITY_HOLE' strip nc cp -p nc debian/contrib/ncmeter $BINDIR/ cp -p README $DOCDIR/readme.txt cp -p debian/netcat.README.Debian $DOCDIR/debian.txt cp -p debian/netcat.copyright $DOCDIR/copyright.txt cp -p $PKGDIR_SPECIAL/license.txt $DOCDIR/license.txt cp -p debian/nc.1 $MANDIR/ cd .. rm -fr nccs mkdir nccs cd nccs tar zxf $PKGDIR_SPECIAL/nc110.tar.gz patch -p0 < $PKGDIR_SPECIAL/nccsfix.spcpat gzip -c -d < $PKGDIR_SPECIAL/patch-bc.gz \ > nccs.patch patch -p0 < nccs.patch make linux \ CFLAGS='-O2' STATIC='' \ DFLAGS='-DLINUX -DTELNET -DGAPING_SECURITY_HOLE' strip nc cp -p nc $BINDIR/nccs cp -p $PKGDIR_SPECIAL/netcat.txt $DOCDIR/ cd $BINDIR && ln -s nc netcat cd $MANDIR && ln -s nc.1 netcat.1 chmod 755 $BINDIR/* chown -R 0.0 $PKGDIR_PROD #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/netcat url_home = http://www.securityfocus.com/tools/137 url_lfs = n/a url_special = http://www.di.unipi.it/~scordino/patch-bc.gz url_tarball = http://www.securityfocus.com/data/tools/nc110.tgz