--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-auth/pam_e4crypt/pam_e4crypt-9999.ebuild Mon Jun 12 10:21:53 2017 -0700
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_MIN_VERSION=3.5
+EGIT_REPO_URI="https://github.com/neithernut/pam_e4crypt.git"
+
+[[ ${PV} == 9999 ]] && SCM="git-r3" || SCM=""
+
+inherit ${SCM} cmake-multilib pam
+
+DESCRIPTION="A PAM module for unlocking transparently encrypted directories on ext4"
+
+HOMEPAGE="https://github.com/neithernut/pam_e4crypt"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="libressl"
+
+COMMON_DEPEND="virtual/pam
+ sys-apps/keyutils
+ sys-apps/util-linux
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )"
+
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+multilib_src_install() {
+ pushd "${BUILD_DIR}" > /dev/null || die
+ dopammod pam_e4crypt.so
+ popd > /dev/null || die
+
+ pushd "${S}" > /dev/null || die
+ einstalldocs
+ popd > /dev/null || die
+}