[arch-commits] Commit in foremost/repos (3 files)
Jaroslav Lichtblau
jlichtblau at archlinux.org
Mon Jun 1 18:58:27 UTC 2015
Date: Monday, June 1, 2015 @ 20:58:27
Author: jlichtblau
Revision: 134490
archrelease: copy trunk to community-i686
Added:
foremost/repos/community-i686/
foremost/repos/community-i686/PKGBUILD
(from rev 134489, foremost/trunk/PKGBUILD)
foremost/repos/community-i686/foremost-makefile.patch
(from rev 134489, foremost/trunk/foremost-makefile.patch)
-------------------------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
foremost-makefile.patch | 23 +++++++++++++++++++++++
2 files changed, 60 insertions(+)
Copied: foremost/repos/community-i686/PKGBUILD (from rev 134489, foremost/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-06-01 18:58:27 UTC (rev 134490)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <svetlemordy at archlinux.org>
+
+pkgname=foremost
+pkgver=1.5.7
+pkgrel=3
+pkgdesc="A console program to recover files based on their headers, footers, and internal data structures"
+arch=('i686' 'x86_64')
+url="http://foremost.sourceforge.net/"
+license=('custom')
+depends=('glibc')
+makedepends=('patch')
+backup=(etc/foremost.conf)
+source=(http://foremost.sourceforge.net/pkg/$pkgname-$pkgver.tar.gz
+ $pkgname-makefile.patch)
+sha256sums=('502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34'
+ '9073fe84c1355e6b1b1c16ccba06893ebd4d35590e45ecbcb4b89e02083a5848')
+
+prepare() {
+ cd "${srcdir}"/$pkgname-$pkgver
+ patch -Np0 -i "${srcdir}"/$pkgname-makefile.patch
+}
+
+build() {
+ cd "${srcdir}"/$pkgname-$pkgver
+ make
+}
+
+package () {
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ install -d "${pkgdir}"/{etc,usr/bin,usr/share/man/man8,usr/share/licenses/foremost}
+ make DESTDIR="${pkgdir}" install
+
+#license
+ ./foremost -V > "${pkgdir}"/usr/share/licenses/$pkgname/COPYRIGHT
+}
Copied: foremost/repos/community-i686/foremost-makefile.patch (from rev 134489, foremost/trunk/foremost-makefile.patch)
===================================================================
--- community-i686/foremost-makefile.patch (rev 0)
+++ community-i686/foremost-makefile.patch 2015-06-01 18:58:27 UTC (rev 134490)
@@ -0,0 +1,23 @@
+--- Makefile.orig 2008-10-14 02:09:13.000000000 +0200
++++ 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
+--- config.c 2006-08-31 17:50:47.000000000 +0100
++++ 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)
+ {
More information about the arch-commits
mailing list