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 8F433DC21AC for ; Tue, 15 Sep 2015 14:09:34 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 4D2DBDC01E7 for ; Tue, 15 Sep 2015 14:09:34 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8D02420310 for ; Tue, 15 Sep 2015 10:09:33 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 15 Sep 2015 10:09:33 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=jlyo.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=iooZKWqej8iQjpqwo3nWPTWDTuY =; b=euT4cH5BQ9hKBfeN0RFrFA+qRiwu6tswzg0foG5txdu2lom+fLQKQ/sOocx bIo6EUXDsHkdew3ez3xO8nmKSBwxZl4uQryWBMEmdjgdV0lxnfKFsdNeL9xv1WOG T/o+8mx7ZxpU4qgN6eEtHtpVKzO4X5mwVOfbfQTWsj122pUU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=iooZ KWqej8iQjpqwo3nWPTWDTuY=; b=bNThMa0dGmo3SVaSr2g0Gc+g9zTX7fv49fHs 6otXcLBzIx1tlW04fjI6Odz6xllcgl6NIQ/DF0fBKWGGLMI8XPStoZeUQFqG9xyC /ky7ejyyHvoOEex2yr8Wya1k9wB66f0QssEVNeimw2yc/aNFGkHomuZYPusdKDjc EyeRldY= X-Sasl-enc: uwfmJGknsMLtjT0lv5+j10umQ+mOq1cXgqFJJkUBog0p 1442326172 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 4525A68017A; Tue, 15 Sep 2015 10:09:32 -0400 (EDT) Received: by nessa.jlyo.org (sSMTP sendmail emulation); Tue, 15 Sep 2015 09:09:31 -0500 From: Jesse Young To: alpine-aports@lists.alpinelinux.org Cc: Jesse Young Subject: [alpine-aports] [PATCH] testing/foremost: new aport Date: Tue, 15 Sep 2015 09:09:21 -0500 Message-Id: <1442326161-11113-1-git-send-email-jlyo@jlyo.org> X-Mailer: git-send-email 2.4.1 In-Reply-To: <20150915155210.55df3d9f@ncopa-desktop.alpinelinux.org> References: <20150915155210.55df3d9f@ncopa-desktop.alpinelinux.org> 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/foremost/APKBUILD | 49 ++++++++++++++++++++++++++++++++ testing/foremost/foremost-makefile.patch | 23 +++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 testing/foremost/APKBUILD create mode 100644 testing/foremost/foremost-makefile.patch diff --git a/testing/foremost/APKBUILD b/testing/foremost/APKBUILD new file mode 100644 index 0000000..16170a0 --- /dev/null +++ b/testing/foremost/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Jesse Young +# Maintainer: Jesse Young + +pkgname=foremost +pkgver=1.5.7 +pkgrel=0 +pkgdesc="A console program to recover files based on their headers, footers, and internal data structures" +url="http://foremost.sourceforge.net/" +arch="all" +license="custom" +depends_dev="" +depends="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://foremost.sourceforge.net/pkg/${pkgname}-${pkgver}.tar.gz \ + ${pkgname}-makefile.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" + make +} + +package () { + cd "$_builddir" + for f in etc usr/bin usr/share/man/man8 usr/share/licenses/foremost; do + install -dm755 "${pkgdir}/${f}" + done + make DESTDIR="$pkgdir" install + ./foremost -V > "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT" +} + +md5sums="860119c49665c2a3fb2b0b1d3dbad02a foremost-1.5.7.tar.gz +e78b7e14ef18a7941bb558af00f3b294 foremost-makefile.patch" +sha256sums="502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34 foremost-1.5.7.tar.gz +80592050c42571b7254a7e166d56b9761a6c72050406dc8adf35aff934bd242a foremost-makefile.patch" +sha512sums="8827c29d52496783be26374f3943eb26a154d842f34e50fb489f87b3a5045bf85f1e44d7d8d8b12b2355ba3fe4b06a0db979cc22c0f431593c5976001eb931ab foremost-1.5.7.tar.gz +22c28169e19c3fedb1f9ad470a6218ce63091f813257a222bda66d2ae04933e2694bc17ba4635b75db94f5375485ac0d5c1583c175b4d1674a9ff58c29967caa foremost-makefile.patch" diff --git a/testing/foremost/foremost-makefile.patch b/testing/foremost/foremost-makefile.patch new file mode 100644 index 0000000..445471e --- /dev/null +++ b/testing/foremost/foremost-makefile.patch @@ -0,0 +1,23 @@ +--- a/Makefile 2008-10-14 02:09:13.000000000 +0200 ++++ b/Makefile 2008-10-14 18:31:38.000000000 +0200 +@@ -26,5 +26,5 @@ + # Where we get installed +-BIN = /usr/local/bin +-MAN = /usr/share/man/man8 +-CONF= /usr/local/etc ++BIN = $(DESTDIR)/usr/bin ++MAN = $(DESTDIR)/usr/share/man/man8 ++CONF= $(DESTDIR)/etc + # Setup for compiling and cross-compiling for Windows +diff -uNr foremost-1.4.orig/config.c foremost-1.4/config.c +--- a/config.c 2006-08-31 17:50:47.000000000 +0100 ++++ b/config.c 2006-08-31 17:51:09.000000000 +0100 +@@ -288,7 +288,7 @@ + #ifdef __WIN32 + set_config_file(s, "/Program Files/foremost/foremost.conf"); + #else +- set_config_file(s, "/usr/local/etc/foremost.conf"); ++ set_config_file(s, "/etc/foremost.conf"); + #endif + if ((f = fopen(get_config_file(s), "r")) == NULL) + { -- 2.4.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---