summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-11-06 16:59:50 +0000
committerAaron W. Swenson <titanofold@gentoo.org>2011-11-06 16:59:50 +0000
commit7e681729fcf582e659392fbcf3e59eae84a00572 (patch)
tree860d13d1a90ba9dd04cf35718c1d738eef59358b
parentarm stable, bug #389013 (diff)
downloadgentoo-2-7e681729fcf582e659392fbcf3e59eae84a00572.tar.gz
gentoo-2-7e681729fcf582e659392fbcf3e59eae84a00572.tar.bz2
gentoo-2-7e681729fcf582e659392fbcf3e59eae84a00572.zip
Fixes bug #388959.
(Portage version: 2.1.10.11/cvs/Linux i686)
-rw-r--r--app-misc/srm/ChangeLog8
-rw-r--r--app-misc/srm/files/srm-1.2.11-cflags.patch23
-rw-r--r--app-misc/srm/srm-1.2.11-r2.ebuild37
3 files changed, 67 insertions, 1 deletions
diff --git a/app-misc/srm/ChangeLog b/app-misc/srm/ChangeLog
index 41e970154e8a..2cbaec8706dc 100644
--- a/app-misc/srm/ChangeLog
+++ b/app-misc/srm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/srm
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/srm/ChangeLog,v 1.21 2011/11/02 14:56:56 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/srm/ChangeLog,v 1.22 2011/11/06 16:59:50 titanofold Exp $
+
+*srm-1.2.11-r2 (06 Nov 2011)
+
+ 06 Nov 2011; Aaron W. Swenson <titanofold@gentoo.org> +srm-1.2.11-r2.ebuild,
+ +files/srm-1.2.11-cflags.patch:
+ Fixes bug #388959.
02 Nov 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> srm-1.2.11-r1.ebuild:
x86 stable wrt bug #388955
diff --git a/app-misc/srm/files/srm-1.2.11-cflags.patch b/app-misc/srm/files/srm-1.2.11-cflags.patch
new file mode 100644
index 000000000000..7f05c5d2aa9d
--- /dev/null
+++ b/app-misc/srm/files/srm-1.2.11-cflags.patch
@@ -0,0 +1,23 @@
+--- configure.in 2010-06-06 13:22:08.000000000 -0400
++++ configure.in 2011-11-06 11:36:37.684800151 -0500
+@@ -6,8 +6,6 @@
+
+ dnl Checks for programs.
+ AC_PROG_CC
+-dnl reset CFLAGS
+-CFLAGS=
+
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+@@ -39,10 +37,9 @@
+ AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
+ [default=$debug_default]],, enable_debug=$debug_default)
+ if test "x$enable_debug" = "xyes"; then
+- CFLAGS="$CFLAGS -g"
+ AC_MSG_RESULT(yes)
+ else
+- CFLAGS="$CFLAGS -O2 -DNDEBUG"
++ CFLAGS="$CFLAGS -DNDEBUG"
+ AC_MSG_RESULT(no)
+ fi
+
diff --git a/app-misc/srm/srm-1.2.11-r2.ebuild b/app-misc/srm/srm-1.2.11-r2.ebuild
new file mode 100644
index 000000000000..9d2b1dfbda01
--- /dev/null
+++ b/app-misc/srm/srm-1.2.11-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/srm/srm-1.2.11-r2.ebuild,v 1.1 2011/11/06 16:59:50 titanofold Exp $
+
+EAPI="4"
+
+inherit autotools
+
+DESCRIPTION="A command-line compatible rm which destroys file contents before unlinking."
+HOMEPAGE="http://sourceforge.net/projects/srm/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug"
+
+DEPEND="!app-misc/secure-delete
+ sys-kernel/linux-headers
+"
+
+DOCS=( AUTHORS ChangeLog NEWS README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.11-cflags.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+pkg_postinst() {
+ ewarn "Please note that srm will not work as expected with any journaled file"
+ ewarn "system (e.g., reiserfs, ext3)."
+ ewarn "See: ${EROOT%/}/usr/share/doc/${PF}/README"
+}