X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 97FE2DC0700 for ; Tue, 19 Jan 2016 12:04:30 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 3DF92DC0268 for ; Tue, 19 Jan 2016 12:04:29 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id 123so88497010wmz.0 for ; Tue, 19 Jan 2016 04:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v9R0J91ZS738d9cHiMTEVCxuqVvQEdq1y5oqpzDopG0=; b=GTJxuGEuu86gukxQAEMEVR+ee79fwq39Ye920KHrEFxq1JtbE1w9v05XAAiD2JqaZ9 mq7Y3/kxXgUX8e9I8avTdh5hF6hn557Eec6BaAObJiAOdtK5w8Kon2r4jm64xDrOVvDr fimyvvagCoodrCFFqqQkgQzUgObU7Mluy3k1X9B3O9ZyfRdo3jIVvdese+Hckfw4o9up DWaAMa9/ZXVtVP2RCFaLJ+eeGf4mJL3ex4U+IRmw4VLwnmr9MqftoAQLc4cSkUMgGI9h v9i0tVPRDiiwlV0iRRJy1Tc1qgTJ0tSokGSOx8fThhJjYlKZZqxxoC4/yRxEMjPXXkf6 AU1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v9R0J91ZS738d9cHiMTEVCxuqVvQEdq1y5oqpzDopG0=; b=KODsGHM8/cDy22r/wNXvLqn+GwpFVU+FmGEtw2t4mYYV9dMv0Tj9dDCUyFVmRnHsB0 QczRzD0xenbODVawEMM4pH2H2eMThrKlBeNkkgLrC56XCVt8vmWmYeo5mbB3bV114RNt pKWA/jsO069rWr2CrtinSQaXc2hWzLf+N15SxvV5q6vA1cCthNc91dWOfJmbLOccjWC1 E7JixT9LvegC39fZUpS1yutIuTF/+1ZYDNQWD9G2caHiihFfhuK9cU2CHl23QShhscgv sX17K4gIoShuL8HSxXlkybJXa/GKDVPyuCDCDWnpivztHQrHZAJqjIESJsZtFI3XeeCs Eo9A== X-Gm-Message-State: AG10YOTuNV0qH0FzRO3UrlPHmmAxkGciZB7bEnvz4MmJXXhkBMjn4vkdQNTEEqa05ug4ag== X-Received: by 10.28.195.212 with SMTP id t203mr20178506wmf.46.1453205068814; Tue, 19 Jan 2016 04:04:28 -0800 (PST) Received: from localhost (89-156-8-192.rev.numericable.fr. [89.156.8.192]) by smtp.gmail.com with ESMTPSA id jm4sm28238261wjb.7.2016.01.19.04.04.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2016 04:04:28 -0800 (PST) From: Corentin Henry To: alpine-aports@lists.alpinelinux.org Cc: Corentin Henry Subject: [alpine-aports] [PATCH 1/4] testing/hping: new aport Date: Tue, 19 Jan 2016 11:50:38 +0000 Message-Id: <1453204241-6685-2-git-send-email-corentinhenry@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453204241-6685-1-git-send-email-corentinhenry@gmail.com> References: <1453204241-6685-1-git-send-email-corentinhenry@gmail.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: hping3 is a network tool able to send custom TCP/IP packets and to display target replies like ping do with ICMP replies. https://github.com/antirez/hping This package is not built from a tarball so someone will have to upload a snapshot. --- testing/hping/APKBUILD | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 testing/hping/APKBUILD diff --git a/testing/hping/APKBUILD b/testing/hping/APKBUILD new file mode 100644 index 0000000..2c719cf --- /dev/null +++ b/testing/hping/APKBUILD @@ -0,0 +1,77 @@ +# Contributor: +# Maintainer: Corentin Henry +pkgname=hping +pkgver=0.r13.3547c7691742c6eaa31f8402e0ccbb81387c1b99 +pkgrel=1 +pkgdesc="network tool able to send custom TCP/IP packets and to display target replies" +url="https://github.com/antirez/$pkgname" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="tcl-dev libpcap-dev" +install="" +subpackages="$pkgname-doc" +source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz + 10-add_tcl_version.patch + 20-pass_CFLAGS_to_gcc.patch + 30-fix_bpf_include.patch" + +_builddir="$srcdir"/hping +prepare() { + local i + cd "$_builddir" + echo $source + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +snapshot() { + abuild clean + mkdir -p $srcdir + cd $srcdir + msg "Checking out hping master branch" + git clone $url || return 1 + tar zcf $pkgname-$pkgver.tar.gz hping || return 1 + +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr + make + make strip +} + +package() { + cd "$_builddir" + install -D -m 755 hping3 $pkgdir/usr/sbin/hping3 + ln -s $pkgdir/usr/sbin/hpin3 $pkgdir/usr/sbin/hping + ln -s $pkgdir/usr/sbin/hpin3 $pkgdir/usr/sbin/hping2 +} + +doc() { + default_doc + cd "$_builddir"/docs + + gzip -c hping2.8 > hping2.8.gz + install -D -m 0644 hping2.8.gz $subpkgdir/usr/share/man/man8/hping2.8.gz + + gzip -c hping3.8 > hping3.8.gz + install -D -m 0644 hping3.8.gz $subpkgdir/usr/share/man/man8/hping3.8.gz +} +md5sums="517c4bab630f523ac0c674b7dd200e13 hping-0.r13.3547c7691742c6eaa31f8402e0ccbb81387c1b99.tar.gz +b5b43469b3bc5451870c9214c178e380 10-add_tcl_version.patch +05161223c57de36a3d07f7f6544cdcde 20-pass_CFLAGS_to_gcc.patch +bc7819f6f76360b38f43447124f2e4d3 30-fix_bpf_include.patch" +sha256sums="8d49924fdf12aeef4429decbe56af8f5ae579c6ba06d250d6acf162d74395ffe hping-0.r13.3547c7691742c6eaa31f8402e0ccbb81387c1b99.tar.gz +4b2ba6a21a7d14f6251bf7d186efceeef1dcf6261cab8429fe0e8b402dc4739e 10-add_tcl_version.patch +dd33970382773f0cd0944ee2fc90d1e10a79c8a67e922662b7cb0f0491dee816 20-pass_CFLAGS_to_gcc.patch +7dda17a55ca2e4ecb3003dfb84d804b30d3f030a1fcdf4ebdda65fa8a6fec410 30-fix_bpf_include.patch" +sha512sums="7b729cb00b6da9ab3b0252eefe9a45b047677c41c16c25f410dfa8742c02c6b6ad95dd22388fbffec0ed2c94c0930ffd68be61222a3327e736c37810a0d2f8ec hping-0.r13.3547c7691742c6eaa31f8402e0ccbb81387c1b99.tar.gz +3d7629a77ddbed4231172c6702b0f3a6929e19a303c5629ecb014ab4cd593763a3573507c9cb2f45fc5ad2032d7f95410bea9ef8a68a6508695d77dfd8e00e9b 10-add_tcl_version.patch +09b2b04bb9a6788a29da546c07c6301973757dbd67bd00a4e71dde2c762f9b39ad5c9e464a89c92569af762fd3fcecbcc01749f0f8bb4f416ab75ed95e0cae67 20-pass_CFLAGS_to_gcc.patch +660a434837e8d0afeac9b3a1ca301ca8b8585bf02dcba79fa24b4d9b479336fc774a7c9b0e19e63b6782535a9c0c0a1ddb077735e0d0bb1ed7a41e77b581ac89 30-fix_bpf_include.patch" -- 2.7.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---