This commit is contained in:
Yury Martynov 2020-02-24 11:10:51 +03:00
parent 81a520ddcb
commit 0dfd2e2979
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 37 additions and 23 deletions

View file

@ -1,5 +1,6 @@
--- SConstruct.orig 2011-07-22 10:05:25.000000000 +0800 diff -ur a/SConstruct b/SConstruct
+++ SConstruct 2017-01-11 20:18:52.022609874 +0800 --- a/SConstruct 2011-07-22 06:05:25.000000000 +0400
+++ b/SConstruct 2020-02-24 10:57:40.928869698 +0300
@@ -3,7 +3,8 @@ @@ -3,7 +3,8 @@
sys.dont_write_bytecode = True sys.dont_write_bytecode = True
from regfi_version import REGFI_VERSION from regfi_version import REGFI_VERSION

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>

View file

@ -1,9 +1,9 @@
# Copyright 1999-2018 Gentoo Foundation # Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="5" EAPI=6
PYTHON_COMPAT=( python2_7 python3_{5,6} ) PYTHON_COMPAT=( python3_{6,7,8} )
inherit scons-utils distutils-r1 inherit scons-utils distutils-r1
@ -13,21 +13,24 @@ SRC_URI="http://projects.sentinelchicken.org/data/downloads/${PN}-src-${PV}.tar.
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0" SLOT="0"
KEYWORDS="~x86 ~amd64 ~x64-macos ~x86-macos" KEYWORDS="~amd64 ~x86 ~x64-macos ~x86-macos"
IUSE=""
RDEPEND="sys-libs/talloc RDEPEND="
sys-libs/talloc
virtual/libiconv" virtual/libiconv"
S="${WORKDIR}/${PN}-src-${PV}" S="${WORKDIR}/${PN}-src-${PV}"
src_prepare() { PATCHES=( "${FILESDIR}"/${PV}-cflags.patch )
epatch "${FILESDIR}"/1.0.1-cflags.patch
mv pyregfi-distutils.py setup.py
src_prepare() {
mv pyregfi-distutils.py setup.py || die
distutils-r1_src_prepare
} }
src_compile() { src_compile() {
escons escons
distutils-r1_src_compile
} }
src_install() { src_install() {

View file

@ -1,11 +1,10 @@
# Copyright 1999-2018 Gentoo Foundation # Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="5" EAPI=6
SONAME_PV="1.0.1" PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_COMPAT=( python2_7 python3_{5,6} )
inherit scons-utils distutils-r1 subversion inherit scons-utils distutils-r1 subversion
DESCRIPTION="An utility for reading and querying Windows NT/2K/XP registries" DESCRIPTION="An utility for reading and querying Windows NT/2K/XP registries"
@ -15,25 +14,28 @@ ESVN_REPO_URI="https://code.blindspotsecurity.com/dav/reglookup/trunk/"
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0" SLOT="0"
KEYWORDS="" KEYWORDS=""
IUSE=""
RDEPEND="sys-libs/talloc RDEPEND="
sys-libs/talloc
virtual/libiconv" virtual/libiconv"
S="${WORKDIR}/${PN}-src-${PV}"
src_prepare() {
mv pyregfi-distutils.py setup.py || die
distutils-r1_src_prepare
}
src_compile() { src_compile() {
escons escons
distutils-r1_src_compile
} }
src_install() { src_install() {
distutils-r1_src_install distutils-r1_src_install
dobin bin/reglookup-timeline src/reglookup src/reglookup-recover dobin bin/reglookup-timeline src/reglookup src/reglookup-recover
dolib.so lib/libregfi.so dolib.so lib/libregfi.so
dolib.so lib/libregfi.so.1 doman doc/*.1.gz
dolib.so lib/libregfi.so."${SONAME_PV}"
#fix me, add Doxygen
# doman doc/*.1.gz
#Upstream bug: https://github.com/pentoo/pentoo-overlay/issues/145
# escons install
dodir /usr/include/regfi dodir /usr/include/regfi
insinto /usr/include/regfi insinto /usr/include/regfi
doins include/*.h doins include/*.h