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 0811EDC21AC for ; Tue, 15 Sep 2015 14:42:27 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D01CCDC01E7 for ; Tue, 15 Sep 2015 14:42:26 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D222F22882 for ; Tue, 15 Sep 2015 10:42:25 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 15 Sep 2015 10:42:25 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=jlyo.org; h=cc :date:from:message-id:subject:to:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=+Ota6cn3RYAXUeiUHtZPh6sI0zE=; b=nJ9jH+Q+GRU2ckTxoFTuY 088JLYS1N3ITPJ9So3ikI/inDdYvokp3nc3iS9rZ6282rjJcK1RYFbrfyLQ2DIh6 r2ML6vGI2ZQS0IZsbzeEUcDRQ5dTbKwAsimg0zGHwBAd1hBR9GMsh+P0u0SfdZbg eqqQ3iuPS5u19hwSwtZWD8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-sasl-enc:x-sasl-enc; s=smtpout; bh=+Ota6cn3RYAXUeiUHtZPh6sI0z E=; b=axVuJGZi5yINj7BYsh9khNI8ndG2zrqXPOKciGu8b0RCHvyAhmnV3FlZgh x9nWoEhEFi97MWCZW/Q+4y9tyq95fKFCEZ1swCyOet/px99NkN0q3qlvHfsGfows Dkw5tP51h/f+1/n/iQMeMzTrLngUE2Chc+WAvjlVl9hnoCy/o= X-Sasl-enc: 8ze8s9bGh7xlVytrrrwOo+9JEEGjlrDqVoi4tGVS2HEX 1442328144 Received: from nessa.jlyo.org (c-67-175-216-24.hsd1.il.comcast.net [67.175.216.24]) by mail.messagingengine.com (Postfix) with ESMTPA id 889EC6801AD; Tue, 15 Sep 2015 10:42:24 -0400 (EDT) Received: by nessa.jlyo.org (sSMTP sendmail emulation); Tue, 15 Sep 2015 09:42:23 -0500 From: Jesse Young To: alpine-aports@lists.alpinelinux.org Cc: Jesse Young Subject: [alpine-aports] [PATCH] testing/dcfldd: new aport Date: Tue, 15 Sep 2015 09:42:09 -0500 Message-Id: <1442328129-24588-1-git-send-email-jlyo@jlyo.org> X-Mailer: git-send-email 2.4.1 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/dcfldd/APKBUILD | 49 +++++++++++++++++++++++++++++++++++++++ testing/dcfldd/dcfldd-error.patch | 15 ++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 testing/dcfldd/APKBUILD create mode 100644 testing/dcfldd/dcfldd-error.patch diff --git a/testing/dcfldd/APKBUILD b/testing/dcfldd/APKBUILD new file mode 100644 index 0000000..facca26 --- /dev/null +++ b/testing/dcfldd/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Jesse Young +# Maintainer: Jesse Young + +pkgname=dcfldd +pkgver=1.3.4.1 +_pkgver="${pkgver%.*}-${pkgver##*.}" +pkgrel=0 +pkgdesc="DCFL (DoD Computer Forensics Lab) dd replacement with hashing" +url="http://dcfldd.sourceforge.net/" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_pkgver}.tar.gz + dcfldd-error.patch" + +_builddir="${srcdir}/${pkgname}-${_pkgver}" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="952026c872f11b53ce0ec6681a3eef0a dcfldd-1.3.4-1.tar.gz +2e2ee971748845947312f5345b96e940 dcfldd-error.patch" +sha256sums="f5143a184da56fd5ac729d6d8cbcf9f5da8e1cf4604aa9fb97c59553b7e6d5f8 dcfldd-1.3.4-1.tar.gz +004408bab8296050107e92e5a5fdf14e3b145acb324bfcf697a29ca9f11218d4 dcfldd-error.patch" +sha512sums="04b53adf62c6b468ff816e2cd94cf360eb5315eb980e2aa7d71afae706ec9c4683430269e82d712608be265710907fdaaa1316e4f734b7481ee9395a37926c7a dcfldd-1.3.4-1.tar.gz +f0c33fbc5f2d2eb8075d7faa460987d441da04be6831f85743a0ffd5d58796722395efc8c9dd7137a0b8bbc017b9995cf18b3ef37e56e17fdbd842fcaa573c83 dcfldd-error.patch" diff --git a/testing/dcfldd/dcfldd-error.patch b/testing/dcfldd/dcfldd-error.patch new file mode 100644 index 0000000..5bf0e60 --- /dev/null +++ b/testing/dcfldd/dcfldd-error.patch @@ -0,0 +1,15 @@ +--- a/util.c ++++ b/util.c +@@ -135,9 +133,9 @@ + && ioctl (fdesc, MTIOCGET, &s2) == 0 + && MT_SAME_POSITION (s1, s2)) + { ++ fprintf(stderr, "%s: warning: working around lseek kernel bug for file (%s)\n" ++ " of mt_type=0x%0lx -- see for the list of types\n", ++ program_name, filename, s2.mt_type); +- error (0, 0, _("warning: working around lseek kernel bug for file (%s)\n\ +- of mt_type=0x%0lx -- see for the list of types"), +- filename, s2.mt_type); + errno = 0; + new_position = -1; + } -- 2.4.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---