This commit is contained in:
Anton Bolshakov 2025-06-03 09:58:32 +08:00
parent dd86ba226f
commit f90a5f167d
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 38 additions and 2 deletions

View file

@ -1 +1,2 @@
DIST evalhook-0.1_p20231013-r1.gh.tar.gz 6133 BLAKE2B 8e854ba491ad92751a78df53de9b58ec3ff02670c221ed6a7e18c1e32abff192c5e4064896e19d606c1149d5a27b71a6e8e1ed209171dc1a88b2356ebf11d602 SHA512 b327bc82edead8139acb5f266799fd1715ec0fe71b04fca8b0c24966b5e077fe715c5339a527597e9a0a5d38593fee4fc39396ab2a219b8636698f62c85908a8
DIST evalhook-0.1_p20231013.gh.tar.gz 6107 BLAKE2B 0bbc7b89ef5e4cf4874431e36da1506b4d30260cea44e7261cbf6e2a5fe5126ce36f10c773c9a7585b39007185902df66433812e557d429d761234ada4bcfbe2 SHA512 e6d264e0881c6ccb3620b158886cbf91ab514b60d7400bd929cb393ccc83a49c2f21bdb81ce296df860e5c8792f10dc2d1b234e5040258587c1f736aa21efa8f

View file

@ -0,0 +1,32 @@
# Copyright 2025 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
HASH_COMMIT="25e4e2a9b84b4f4c45f3d2dfa35121ed7938b889"
MY_S="${WORKDIR}/php-eval-hook-${HASH_COMMIT}"
PHP_EXT_NAME="evalhook"
USE_PHP="php8-2"
PHP_EXT_S="${MY_S}"
inherit php-ext-source-r3
DESCRIPTION="Decode/Deobfuscate PHP Scripts"
HOMEPAGE="https://github.com/extremecoders-re/php-eval-hook"
SRC_URI="https://github.com/extremecoders-re/php-eval-hook/archive/${HASH_COMMIT}.tar.gz -> ${P}-r1.gh.tar.gz"
S="${MY_S}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
src_configure() {
local PHP_EXT_ECONF_ARGS="--enable-evalhook=yes"
php-ext-source-r3_src_configure
}
pkg_postinst() {
ewarn "This extention hooks PHP calls and requires user's interaction"
ewarn "Do not use in production env"
}

View file

@ -9,7 +9,8 @@ MY_S="${WORKDIR}/php-eval-hook-${HASH_COMMIT}"
PHP_EXT_NAME=evalhook
USE_PHP="php8-2"
PHP_EXT_S="${MY_S}"
inherit php-ext-source-r3
inherit flag-o-matic php-ext-source-r3
DESCRIPTION="Decode/Deobfuscate PHP Scripts"
HOMEPAGE="https://github.com/extremecoders-re/php-eval-hook"
@ -21,6 +22,8 @@ SLOT="0"
KEYWORDS="~amd64"
src_prepare() {
append-cflags -Wno-error=incompatible-pointer-types
php-ext-source-r3_src_prepare
local slot orig_s="${PHP_EXT_S}"
@ -33,7 +36,7 @@ src_prepare() {
}
src_configure() {
local PHP_EXT_EXTRA_ECONF="--enable-evalhook=yes"
local PHP_EXT_ECONF_ARGS="--enable-evalhook=yes"
php-ext-source-r3_src_configure
}