summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-fs/e4rat
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-fs/e4rat')
-rw-r--r--sys-fs/e4rat/Manifest2
-rw-r--r--sys-fs/e4rat/e4rat-0.2.3-r1.ebuild61
-rw-r--r--sys-fs/e4rat/e4rat-0.2.4_pre20141201.ebuild64
-rw-r--r--sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch14
-rw-r--r--sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch74
-rw-r--r--sys-fs/e4rat/files/e4rat-0.2.3-boostfsv3.patch86
-rw-r--r--sys-fs/e4rat/files/e4rat-libdir.patch26
-rw-r--r--sys-fs/e4rat/files/e4rat-shared-build.patch96
-rw-r--r--sys-fs/e4rat/metadata.xml8
9 files changed, 431 insertions, 0 deletions
diff --git a/sys-fs/e4rat/Manifest b/sys-fs/e4rat/Manifest
new file mode 100644
index 000000000000..f057cb658467
--- /dev/null
+++ b/sys-fs/e4rat/Manifest
@@ -0,0 +1,2 @@
+DIST e4rat-0.2.4_pre20141201.tar.xz 60408 SHA256 757d9d76b395a8b5092205bf623ba73860546f5f13efdf6b6347217b4ebe9e4b SHA512 61a53f6ac420392df5894d3f76de28c5d2e33fd3a6548cf8c9de52818bf937ba8bf8629db1b89103faa73b660548d7e467e17d7f2794a4100ca07971ded0cfb9 WHIRLPOOL 6c33956a6a601fd05d89325a2d2fa96ddf00c7e8130ac599c39e59e1ee3d3c21fc5ce712421969d96e96cfadd91fdbe6acc24d31d7acf413632fb49a575edeae
+DIST e4rat_0.2.3_src.tar.gz 72459 SHA256 f6feda9618eff0f9442baf771b4776b634e5a2f39e678c10e4c7946b2c6a96a0 SHA512 e1b78b7d84e17f0ded494217f2eb5912401d365844bc966d649682979e1d3deaceab6e9d820fb7fbec819e15133aa2af61131325204620d9b16a3c7638d7fdb7 WHIRLPOOL 912632a516bcefe2171bd1bc207394396ecec9cc74351b2afa511258cb1dfdbb38d2e5fe41a7af747addb92a5f8ff8b2b2321dee8f51d8e8bf7f919183e80c8c
diff --git a/sys-fs/e4rat/e4rat-0.2.3-r1.ebuild b/sys-fs/e4rat/e4rat-0.2.3-r1.ebuild
new file mode 100644
index 000000000000..d6c7a2dd7cc1
--- /dev/null
+++ b/sys-fs/e4rat/e4rat-0.2.3-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils linux-info readme.gentoo
+
+DESCRIPTION="Toolset to accelerate the boot process and application startup"
+HOMEPAGE="http://e4rat.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-lang/perl:=
+ >=dev-libs/boost-1.42:=
+ sys-fs/e2fsprogs
+ sys-process/audit
+ sys-process/lsof"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="~AUDITSYSCALL"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.2.2-shared-build.patch
+ "${FILESDIR}"/${PN}-0.2.2-libdir.patch
+ "${FILESDIR}"/${P}-boostfsv3.patch
+)
+
+pkg_setup() {
+ check_extra_config
+ DOC_CONTENTS="
+ To launch systemd from e4rat you simply need to edit /etc/e4rat.conf
+ and set:\n
+ ; path to init process binary (DEFAULT: /sbin/init)\n
+ init /usr/lib/systemd/systemd"
+}
+
+src_install() {
+ cmake-utils_src_install
+ # relocate binaries to /sbin. If someone knows of a better way to do it
+ # please do tell me
+ dodir sbin
+ find "${D}"/usr/sbin -type f -exec mv {} "${D}"/sbin/. \; \
+ || die
+
+ dodoc README
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+ if has_version sys-apps/preload; then
+ elog "It appears you have sys-apps/preload installed. This may"
+ elog "has negative effects on ${PN}. You may want to disable preload"
+ elog "when using ${PN}."
+ fi
+}
diff --git a/sys-fs/e4rat/e4rat-0.2.4_pre20141201.ebuild b/sys-fs/e4rat/e4rat-0.2.4_pre20141201.ebuild
new file mode 100644
index 000000000000..a40f030eb9cf
--- /dev/null
+++ b/sys-fs/e4rat/e4rat-0.2.4_pre20141201.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils linux-info readme.gentoo
+
+DESCRIPTION="Toolset to accelerate the boot process and application startup"
+HOMEPAGE="http://e4rat.sourceforge.net/"
+#SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
+SRC_URI="http://dev.gentoo.org/~pacho/${PN}/${PN}-0.2.4_pre20141201.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-lang/perl:=
+ >=dev-libs/boost-1.42:=
+ sys-fs/e2fsprogs
+ sys-process/audit
+ sys-process/lsof
+"
+DEPEND="${DEPEND}
+ app-arch/xz-utils
+"
+
+CONFIG_CHECK="~AUDITSYSCALL"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.2.2-shared-build.patch
+ "${FILESDIR}"/${PN}-0.2.2-libdir.patch
+)
+
+pkg_setup() {
+ check_extra_config
+ DOC_CONTENTS="
+ To launch systemd from e4rat you simply need to edit /etc/e4rat.conf
+ and set:\n
+ ; path to init process binary (DEFAULT: /sbin/init)\n
+ init /usr/lib/systemd/systemd"
+}
+
+src_install() {
+ cmake-utils_src_install
+ # relocate binaries to /sbin. If someone knows of a better way to do it
+ # please do tell me
+ dodir sbin
+ find "${D}"/usr/sbin -type f -exec mv {} "${D}"/sbin/. \; \
+ || die
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+ if has_version sys-apps/preload; then
+ elog "It appears you have sys-apps/preload installed. This may"
+ elog "has negative effects on ${PN}. You may want to disable preload"
+ elog "when using ${PN}."
+ fi
+}
diff --git a/sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch b/sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch
new file mode 100644
index 000000000000..eaa2695d7872
--- /dev/null
+++ b/sys-fs/e4rat/files/e4rat-0.2.2-libdir.patch
@@ -0,0 +1,14 @@
+Index: e4rat-0.2.2/src/CMakeLists.txt
+===================================================================
+--- e4rat-0.2.2.orig/src/CMakeLists.txt
++++ e4rat-0.2.2/src/CMakeLists.txt
+@@ -170,8 +170,7 @@ endif(NOT BUILD_CORE_LIBRARY_STATIC)
+
+ INSTALL(TARGETS ${${PROJECT_NAME}_TARGETS}
+ RUNTIME DESTINATION "sbin"
+- LIBRARY DESTINATION "lib"
+- ARCHIVE DESTINATION "lib"
++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ )
+
+ INSTALL(DIRECTORY DESTINATION "/var/lib/${PROJECT_NAME}")
diff --git a/sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch b/sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch
new file mode 100644
index 000000000000..636eb52fb612
--- /dev/null
+++ b/sys-fs/e4rat/files/e4rat-0.2.2-shared-build.patch
@@ -0,0 +1,74 @@
+Index: e4rat-0.2.2/CMakeLists.txt
+===================================================================
+--- e4rat-0.2.2.orig/CMakeLists.txt
++++ e4rat-0.2.2/CMakeLists.txt
+@@ -14,7 +14,6 @@ IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_D
+ set(CMAKE_INSTALL_PREFIX "/" CACHE PATH "e4rat install prefix" FORCE)
+ ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+
+-set(Boost_USE_STATIC_LIBS ON)
+ set(Boost_USE_MULTITHREADED OFF)
+ add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
+ find_package(Boost 1.41 COMPONENTS system filesystem regex REQUIRED)
+Index: e4rat-0.2.2/src/CMakeLists.txt
+===================================================================
+--- e4rat-0.2.2.orig/src/CMakeLists.txt
++++ e4rat-0.2.2/src/CMakeLists.txt
+@@ -131,21 +131,12 @@ IF(CMAKE_BUILD_TYPE STREQUAL "debug")
+ )
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug")
+
+-# On 64 bit architecture you cannot link a static to a shared library
+-# Therefore -static-libstdc++ will fail.
+-if(BUILD_CORE_LIBRARY_STATIC)
+- add_library(${PROJECT_NAME}-core STATIC
+- ${${PROJECT_NAME}-core_SRC}
+- )
+-else(BUILD_CORE_LIBRARY_STATIC)
+- add_library(${PROJECT_NAME}-core SHARED
+- ${${PROJECT_NAME}-core_SRC}
+- )
+- set_target_properties(${PROJECT_NAME}-core PROPERTIES
+- SOVERSION 0
+- LINK_FLAGS "-static-libgcc -static-libstdc++"
+- )
+-endif(BUILD_CORE_LIBRARY_STATIC)
++add_library(${PROJECT_NAME}-core SHARED
++ ${${PROJECT_NAME}-core_SRC}
++)
++set_target_properties(${PROJECT_NAME}-core PROPERTIES
++ SOVERSION 0
++)
+
+ target_link_libraries(${PROJECT_NAME}-core
+ ${${PROJECT_NAME}_LIBRARIES}
+@@ -158,15 +149,13 @@ foreach( EXE ${PROJECT_NAME}-collect
+ TARGET_LINK_LIBRARIES(${EXE}
+ ${PROJECT_NAME}-core
+ )
+- set_target_properties(${EXE} PROPERTIES
+- LINK_FLAGS "-static-libgcc -static-libstdc++"
+- )
+ endforeach( EXE )
+
+ ###
+ # install project targets
+ ###
+ set(${PROJECT_NAME}_TARGETS
++ ${PROJECT_NAME}-core
+ ${PROJECT_NAME}-collect
+ ${PROJECT_NAME}-preload
+ ${PROJECT_NAME}-realloc
+Index: e4rat-0.2.2/src/cmake/Findaudit.cmake
+===================================================================
+--- e4rat-0.2.2.orig/src/cmake/Findaudit.cmake
++++ e4rat-0.2.2/src/cmake/Findaudit.cmake
+@@ -1,7 +1,7 @@
+ FIND_PATH(AUDIT_INCLUDE_DIR libaudit.h /usr/include
+ /usr/local/include)
+
+-FIND_LIBRARY(AUDIT_LIBRARY NAMES libaudit.a PATH /usr/lib /usr/local/lib)
++FIND_LIBRARY(AUDIT_LIBRARY NAMES audit PATH /usr/lib /usr/local/lib)
+
+ IF (AUDIT_INCLUDE_DIR AND AUDIT_LIBRARY)
+ SET(AUDIT_FOUND TRUE)
diff --git a/sys-fs/e4rat/files/e4rat-0.2.3-boostfsv3.patch b/sys-fs/e4rat/files/e4rat-0.2.3-boostfsv3.patch
new file mode 100644
index 000000000000..5450af1c2aa9
--- /dev/null
+++ b/sys-fs/e4rat/files/e4rat-0.2.3-boostfsv3.patch
@@ -0,0 +1,86 @@
+Bug #425422
+Fixes building against boost-1.50
+Port to boost FS v3
+
+--- CMakeLists.txt.orig 2012-09-07 03:17:55.515017487 +0200
++++ CMakeLists.txt 2012-09-13 19:54:18.160054076 +0200
+@@ -15,7 +15,6 @@
+ ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+
+ set(Boost_USE_MULTITHREADED OFF)
+-add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
+ find_package(Boost 1.41 COMPONENTS system filesystem regex REQUIRED)
+ set(${PROJECT_NAME}_LIBRARIES ${${PROJECT_NAME}_LIBRARIES}
+ ${Boost_LIBRARIES})
+--- src/config.cc.orig 2012-09-13 19:50:32.829871091 +0200
++++ src/config.cc 2012-09-13 19:55:37.023068153 +0200
+@@ -71,7 +71,7 @@
+ return;
+ }
+
+- tool_name = fs::path(argv[0]).filename();
++ tool_name = fs::path(argv[0]).filename().string();
+ found = tool_name.find_last_of("-");
+ if(found)
+ defaultSection = tool_name.substr(found+1);
+--- src/common.cc.orig 2012-09-13 19:58:06.187203344 +0200
++++ src/common.cc 2012-09-13 19:59:34.752096130 +0200
+@@ -157,7 +157,7 @@
+ p /= filesearch;
+ }
+ // Initialize regex filter - use * as default if nothing is given in filesearch
+- std::string f( p.has_filename() ? p.filename() : "*");
++ std::string f( p.has_filename() ? p.filename().string() : "*");
+
+ fs::path dir(system_complete(p).parent_path());
+ if( is_directory(dir) )
+@@ -166,8 +166,8 @@
+ it!=boost::filesystem::directory_iterator();
+ ++it )
+ {
+- if( boost::regex_match( it->leaf(), path2regex(f) ) )
+- fileset.push_back(it->string());
++ if( boost::regex_match( it->path().filename().string(), path2regex(f) ) )
++ fileset.push_back(it->path().filename().string());
+ }
+ return fileset;
+ }
+--- src/e4rat-collect.cc.orig 2012-09-13 20:03:40.185027797 +0200
++++ src/e4rat-collect.cc 2012-09-13 20:03:54.404850024 +0200
+@@ -396,7 +396,7 @@
+ * Parse application list given as arguments
+ */
+ for ( ; optind < argc; optind++)
+- project.observeApp(fs::path(argv[optind]).filename());
++ project.observeApp(fs::path(argv[optind]).filename().string());
+
+ /*
+ * Parse application list on stdin
+--- src/device.cc.orig 2012-09-13 20:00:40.232277516 +0200
++++ src/device.cc 2012-09-13 20:03:11.026392331 +0200
+@@ -196,13 +196,13 @@
+ it != end_itr;
+ ++it )
+ {
+- if(it->filename() == "root")
++ if(it->path().filename().string() == "root")
+ continue;
+- if(lstat(it->string().c_str(), &st))
++ if(lstat(it->path().filename().c_str(), &st))
+ continue;
+ if(st.st_rdev == get()->devno)
+ {
+- get()->deviceName = it->filename();
++ get()->deviceName = it->path().filename().string();
+ get()->devicePath = "/dev/" + get()->deviceName;
+ return 0;
+ }
+@@ -225,7 +225,7 @@
+ // the minor number of virtual filesystems are allocated dynamically in function set_anon_super() in fs/super.c
+ // for convenience set deviceName and devicePath to a common name
+ get()->deviceName = "virtual file system";
+- get()->devicePath = get()->mount_point.filename();
++ get()->devicePath = get()->mount_point.filename().string();
+ return 0;
+ case 2:
+ ss << "fd";
diff --git a/sys-fs/e4rat/files/e4rat-libdir.patch b/sys-fs/e4rat/files/e4rat-libdir.patch
new file mode 100644
index 000000000000..885e6166fa50
--- /dev/null
+++ b/sys-fs/e4rat/files/e4rat-libdir.patch
@@ -0,0 +1,26 @@
+From b2413a77f3f11c6722ea7e83aafbaa3fc5c73376 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@mgorny.alt.pl>
+Date: Sun, 11 Dec 2011 18:39:59 +0100
+Subject: [PATCH] Fix installing into libdir.
+
+---
+ e4rat-0.2.1/src/CMakeLists.txt | 2 --
+ 1 files changed, 0 insertions(+), 2 deletions(-)
+
+diff --git a/e4rat-0.2.1/src/CMakeLists.txt b/e4rat-0.2.1/src/CMakeLists.txt
+index d379ec6..9fc7492 100644
+--- a/e4rat-0.2.1/src/CMakeLists.txt
++++ b/e4rat-0.2.1/src/CMakeLists.txt
+@@ -163,8 +163,7 @@ endif(NOT HAVE_64_BIT)
+
+ INSTALL(TARGETS ${${PROJECT_NAME}_TARGETS}
+ RUNTIME DESTINATION "sbin"
+- LIBRARY DESTINATION "lib"
++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+- ARCHIVE DESTINATION "lib"
+ )
+
+ INSTALL(DIRECTORY DESTINATION "/var/lib/${PROJECT_NAME}")
+--
+1.7.8.110.g4cb5d1.dirty
+
diff --git a/sys-fs/e4rat/files/e4rat-shared-build.patch b/sys-fs/e4rat/files/e4rat-shared-build.patch
new file mode 100644
index 000000000000..2e322e2d651c
--- /dev/null
+++ b/sys-fs/e4rat/files/e4rat-shared-build.patch
@@ -0,0 +1,96 @@
+From d9114b018b79afdcedb59621dfc13a0423c65fae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 10 Dec 2011 23:00:35 +0100
+Subject: [PATCH] Link with and install shared libraries.
+
+---
+ e4rat-0.2.1/CMakeLists.txt | 1 -
+ e4rat-0.2.1/src/CMakeLists.txt | 13 +------------
+ e4rat-0.2.1/src/cmake/Findaudit.cmake | 2 +-
+ e4rat-0.2.1/src/cmake/Findauparse.cmake | 2 +-
+ 4 files changed, 3 insertions(+), 15 deletions(-)
+
+diff --git a/e4rat-0.2.1/CMakeLists.txt b/e4rat-0.2.1/CMakeLists.txt
+index 72b0681..e5e64cf 100644
+--- a/e4rat-0.2.1/CMakeLists.txt
++++ b/e4rat-0.2.1/CMakeLists.txt
+@@ -14,7 +14,6 @@ IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ set(CMAKE_INSTALL_PREFIX "/" CACHE PATH "e4rat install prefix" FORCE)
+ ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+
+-set(Boost_USE_STATIC_LIBS ON)
+ set(Boost_USE_MULTITHREADED OFF)
+ add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
+ find_package(Boost 1.41 COMPONENTS system filesystem regex REQUIRED)
+diff --git a/e4rat-0.2.1/src/CMakeLists.txt b/e4rat-0.2.1/src/CMakeLists.txt
+index d379ec6..4f8c12e 100644
+--- a/e4rat-0.2.1/src/CMakeLists.txt
++++ b/e4rat-0.2.1/src/CMakeLists.txt
+@@ -113,21 +113,12 @@ IF(CMAKE_BUILD_TYPE STREQUAL "debug")
+ )
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug")
+
+-# On 64 bit architecture you cannot link a static to a shared library
+-# Therefore -static-libstdc++ will fail.
+-if(HAVE_64_BIT)
+- add_library(${PROJECT_NAME}-core STATIC
+- ${${PROJECT_NAME}-core_SRC}
+- )
+-else(HAVE_64_BIT)
+ add_library(${PROJECT_NAME}-core SHARED
+ ${${PROJECT_NAME}-core_SRC}
+ )
+ set_target_properties(${PROJECT_NAME}-core PROPERTIES
+ SOVERSION 0
+- LINK_FLAGS "-static-libgcc -static-libstdc++"
+ )
+-endif(HAVE_64_BIT)
+
+ target_link_libraries(${PROJECT_NAME}-core
+ ${${PROJECT_NAME}_LIBRARIES}
+@@ -140,15 +131,13 @@ foreach( EXE ${PROJECT_NAME}-collect
+ TARGET_LINK_LIBRARIES(${EXE}
+ ${PROJECT_NAME}-core
+ )
+- set_target_properties(${EXE} PROPERTIES
+- LINK_FLAGS "-static-libgcc -static-libstdc++"
+- )
+ endforeach( EXE )
+
+ ###
+ # install project targets
+ ###
+ set(${PROJECT_NAME}_TARGETS
++ ${PROJECT_NAME}-core
+ ${PROJECT_NAME}-collect
+ ${PROJECT_NAME}-preload
+ ${PROJECT_NAME}-realloc
+diff --git a/e4rat-0.2.1/src/cmake/Findaudit.cmake b/e4rat-0.2.1/src/cmake/Findaudit.cmake
+index 32ac636..d8de45a 100644
+--- a/e4rat-0.2.1/src/cmake/Findaudit.cmake
++++ b/e4rat-0.2.1/src/cmake/Findaudit.cmake
+@@ -1,7 +1,7 @@
+ FIND_PATH(AUDIT_INCLUDE_DIR libaudit.h /usr/include
+ /usr/local/include)
+
+-FIND_LIBRARY(AUDIT_LIBRARY NAMES libaudit.a PATH /usr/lib /usr/local/lib)
++FIND_LIBRARY(AUDIT_LIBRARY NAMES audit PATH /usr/lib /usr/local/lib)
+
+ IF (AUDIT_INCLUDE_DIR AND AUDIT_LIBRARY)
+ SET(AUDIT_FOUND TRUE)
+diff --git a/e4rat-0.2.1/src/cmake/Findauparse.cmake b/e4rat-0.2.1/src/cmake/Findauparse.cmake
+index 7db0511..3771cd5 100644
+--- a/e4rat-0.2.1/src/cmake/Findauparse.cmake
++++ b/e4rat-0.2.1/src/cmake/Findauparse.cmake
+@@ -1,7 +1,7 @@
+ FIND_PATH(AUPARSE_INCLUDE_DIR auparse.h /usr/include
+ /usr/local/include)
+
+-FIND_LIBRARY(AUPARSE_LIBRARY NAMES libauparse.a PATH /usr/lib /usr/local/lib)
++FIND_LIBRARY(AUPARSE_LIBRARY NAMES auparse PATH /usr/lib /usr/local/lib)
+
+ IF (AUPARSE_INCLUDE_DIR AND AUPARSE_LIBRARY)
+ SET(AUPARSE_FOUND TRUE)
+--
+1.7.8.110.g4cb5d1.dirty
+
diff --git a/sys-fs/e4rat/metadata.xml b/sys-fs/e4rat/metadata.xml
new file mode 100644
index 000000000000..e10b42734420
--- /dev/null
+++ b/sys-fs/e4rat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>pacho@gentoo.org</email>
+<name>Pacho Ramos</name>
+</maintainer>
+</pkgmetadata>