public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/hardened-dev:musl commit in: sys-fs/encfs/files/, sys-fs/encfs/
@ 2014-02-17 11:53 Anthony G. Basile
  0 siblings, 0 replies; only message in thread
From: Anthony G. Basile @ 2014-02-17 11:53 UTC (permalink / raw
  To: gentoo-commits

commit:     bcee832d8531c1ddfb3f2dae06384a6fb2d17c8e
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sun Feb 16 19:15:08 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Feb 17 11:53:46 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=bcee832d

sys-fs/encfs: move to tree

---
 sys-fs/encfs/encfs-1.7.4-r99.ebuild           | 44 +++++++++++++++++++++++++++
 sys-fs/encfs/files/encfs-1.7.4-encfsctl.patch | 10 ++++++
 sys-fs/encfs/files/encfs-1.7.4-r68:69.patch   | 31 +++++++++++++++++++
 sys-fs/encfs/metadata.xml                     | 11 +++++++
 4 files changed, 96 insertions(+)

diff --git a/sys-fs/encfs/encfs-1.7.4-r99.ebuild b/sys-fs/encfs/encfs-1.7.4-r99.ebuild
new file mode 100644
index 0000000..178293b
--- /dev/null
+++ b/sys-fs/encfs/encfs-1.7.4-r99.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/encfs/encfs-1.7.4.ebuild,v 1.6 2012/10/31 23:14:20 flameeyes Exp $
+
+EAPI=2
+inherit eutils multilib
+
+DESCRIPTION="An implementation of encrypted filesystem in user-space using FUSE"
+HOMEPAGE="http://www.arg0.net/encfs/"
+SRC_URI="http://encfs.googlecode.com/files/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~sparc x86"
+IUSE="xattr"
+
+RDEPEND=">=dev-libs/boost-1.34
+	>=dev-libs/openssl-0.9.7
+	>=dev-libs/rlog-1.4
+	>=sys-fs/fuse-2.7.0
+	sys-libs/zlib"
+DEPEND="${RDEPEND}
+	dev-lang/perl
+	virtual/pkgconfig
+	xattr? ( sys-apps/attr )
+	sys-devel/gettext"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${PN}-1.7.4-r68:69.patch
+	epatch "${FILESDIR}"/${PN}-1.7.4-encfsctl.patch
+}
+
+src_configure() {
+	use xattr || export ac_cv_header_attr_xattr_h=no
+
+	econf \
+		--disable-dependency-tracking
+}
+
+src_install() {
+	emake DESTDIR="${D}" install || die
+	dodoc AUTHORS ChangeLog README
+	find "${D}" -name '*.la' -delete
+}

diff --git a/sys-fs/encfs/files/encfs-1.7.4-encfsctl.patch b/sys-fs/encfs/files/encfs-1.7.4-encfsctl.patch
new file mode 100644
index 0000000..fe11172
--- /dev/null
+++ b/sys-fs/encfs/files/encfs-1.7.4-encfsctl.patch
@@ -0,0 +1,10 @@
+--- a/encfs-1.7.4/encfs/encfsctl.cpp
++++ b/encfs-1.7.4/encfs/encfsctl.cpp
+@@ -38,6 +38,7 @@
+ #include <getopt.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <limits.h>
+ #include <fcntl.h>
+ #ifdef __FreeBSD__
+ #include <libintl.h>

diff --git a/sys-fs/encfs/files/encfs-1.7.4-r68:69.patch b/sys-fs/encfs/files/encfs-1.7.4-r68:69.patch
new file mode 100644
index 0000000..0c27095
--- /dev/null
+++ b/sys-fs/encfs/files/encfs-1.7.4-r68:69.patch
@@ -0,0 +1,31 @@
+Index: encfs/base64.cpp
+===================================================================
+--- encfs/base64.cpp	(revision 68)
++++ encfs/base64.cpp	(revision 69)
+@@ -80,7 +80,7 @@
+     }
+ 
+     // we have at least one value that can be output
+-    char outVal = work & mask;
++    unsigned char outVal = work & mask;
+     work >>= dst2Pow;
+     workBits -= dst2Pow;
+ 
+@@ -96,8 +96,15 @@
+ 	*outLoc++ = outVal;
+ 
+ 	// we could have a partial value left in the work buffer..
+-	if(workBits && outputPartialLastByte)
+-	    *outLoc = work & mask;
++        if(outputPartialLastByte)
++        {
++            while(workBits > 0)
++            {
++                *outLoc++ = work & mask;
++                work >>= dst2Pow;
++                workBits -= dst2Pow;
++            }
++        }
+     }
+ }
+ 

diff --git a/sys-fs/encfs/metadata.xml b/sys-fs/encfs/metadata.xml
new file mode 100644
index 0000000..3693a6a
--- /dev/null
+++ b/sys-fs/encfs/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer>
+		<email>blueness@gentoo.org</email>
+		<name>Anthony G. Basile</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="google-code">encfs</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-17 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 11:53 [gentoo-commits] proj/hardened-dev:musl commit in: sys-fs/encfs/files/, sys-fs/encfs/ Anthony G. Basile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox