Skip to content

Instantly share code, notes, and snippets.

@umq
Created August 27, 2012 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umq/3487144 to your computer and use it in GitHub Desktop.
Save umq/3487144 to your computer and use it in GitHub Desktop.
FreeBSD port skeleton for nspg < http://nspg.sourceforge.net
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# net/nspg
# net/nspg/Makefile
# net/nspg/pkg-descr
# net/nspg/distinfo
#
echo c - net/nspg
mkdir -p net/nspg > /dev/null 2>&1
echo x - net/nspg/Makefile
sed 's/^X//' >net/nspg/Makefile << 'baa79d0067075771fa12773ca24a5c05'
X# New ports collection makefile for: nspg
X# Date created: 2012-08-27
X# Whom: Hirohisa Yamaguchi <umq@ueo.co.jp>
X#
X# $FreeBSD$
X#
X
XPORTNAME= nspg
XPORTVERSION= 0.5.0
XCATEGORIES= net
XMASTER_SITES= SF
XMASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
XDISTNAME= ${PORTNAME}.${PORTVERSION}
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= umq@ueo.co.jp
XCOMMENT= Randomized packet generation for source mac, source ip spoofing
X
XLICENSE= GPLv2
X
XCONFIGURE_ARGS+= --with-pcap-includes=/usr/include/pcap
XGNU_CONFIGURE= yes
XPLIST_FILES= bin/nspg
XPORTDOCS= AUTHORS ChangeLog README
XWRKSRC= ${WRKDIR}/${DISTNAME}
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X @${MKDIR} ${DOCSDIR}
X cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
baa79d0067075771fa12773ca24a5c05
echo x - net/nspg/pkg-descr
sed 's/^X//' >net/nspg/pkg-descr << 'feb20167a1a6f96d52d9574e9a77e9ed'
XNetwork Sending Packet Generator (nspg) is a free GNU GPL Windows
Xpacket injector (generator) that utilizes libpcap to send specific
Xpackets out a single or multiple network interfaces. These packets and
Xother extended options can be defined in a packet file. A packet file
Xcan be an nspg formatted file that generates packets from raw byte
Xstreams providing the ability to create any packet type regardless of
Xheader, payload, or data link.
X
XWWW: http://nspg.sourceforge.net/
feb20167a1a6f96d52d9574e9a77e9ed
echo x - net/nspg/distinfo
sed 's/^X//' >net/nspg/distinfo << '956856a0ec8c8c8944ff7bb9fc6c4b01'
XSHA256 (nspg.0.5.0.tgz) = f0e5efd55da197013a1c1722009a9cfe398000b50b45ec8d1223e647eb24bc2d
XSIZE (nspg.0.5.0.tgz) = 236168
956856a0ec8c8c8944ff7bb9fc6c4b01
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment