aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-B-Deobfuscate
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2003-07-19 08:48:26 +0800
committererwin <erwin@FreeBSD.org>2003-07-19 08:48:26 +0800
commitb601070f52612b3923a67180006e7191e9733d7f (patch)
treec6ee2e8eb856c4d8d43587455a3cb85e26bad0de /devel/p5-B-Deobfuscate
parent426efe1ebbe1cf4612f42de7e16059f04c4c3827 (diff)
downloadfreebsd-ports-gnome-b601070f52612b3923a67180006e7191e9733d7f.tar.gz
freebsd-ports-gnome-b601070f52612b3923a67180006e7191e9733d7f.tar.zst
freebsd-ports-gnome-b601070f52612b3923a67180006e7191e9733d7f.zip
Add p5-B-Deobfuscate 0.09,
extension to B::Deparse for use in de-obfuscating source code. PR: 54178 Submitted by: Mathieu Arnold <m@absolight.net>
Diffstat (limited to 'devel/p5-B-Deobfuscate')
-rw-r--r--devel/p5-B-Deobfuscate/Makefile37
-rw-r--r--devel/p5-B-Deobfuscate/distinfo1
-rw-r--r--devel/p5-B-Deobfuscate/pkg-descr8
-rw-r--r--devel/p5-B-Deobfuscate/pkg-plist6
4 files changed, 52 insertions, 0 deletions
diff --git a/devel/p5-B-Deobfuscate/Makefile b/devel/p5-B-Deobfuscate/Makefile
new file mode 100644
index 000000000000..96f7e380063c
--- /dev/null
+++ b/devel/p5-B-Deobfuscate/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: p5-B-Deobfuscate
+# Date created: 7 july 2003
+# Whom: Mathieu Arnold <m@absolight.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= B-Deobfuscate
+PORTVERSION= 0.09
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= B
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= m@absolight.net
+COMMENT= Extension to B::Deparse for use in de-obfuscating source code
+
+RUN_DEPENDS= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
+ ${SITE_PERL}/B/Keywords.pm:${PORTSDIR}/devel/p5-B-Keywords
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= B::Deobfuscate.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ @${PERL} -pi -e 's/^our (\$$VERSION)/use vars qw($$1); $$1/;' \
+ -e '$$_ = "" if /use warnings/;' \
+ -e 's/\[:digit:\]/0-9/g; s/\[:lower:\]/a-z/g;' \
+ -e 's/, \$$dict_file/. \$$dict_file/;' \
+ ${WRKSRC}/lib/B/Deobfuscate.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-B-Deobfuscate/distinfo b/devel/p5-B-Deobfuscate/distinfo
new file mode 100644
index 000000000000..ffe784df0c01
--- /dev/null
+++ b/devel/p5-B-Deobfuscate/distinfo
@@ -0,0 +1 @@
+MD5 (B-Deobfuscate-0.09.tar.gz) = 7006309a6241c703516f6bc9dd7c6f63
diff --git a/devel/p5-B-Deobfuscate/pkg-descr b/devel/p5-B-Deobfuscate/pkg-descr
new file mode 100644
index 000000000000..035e01968d0e
--- /dev/null
+++ b/devel/p5-B-Deobfuscate/pkg-descr
@@ -0,0 +1,8 @@
+B::Deobfuscate is a backend module for the Perl compiler that generates perl
+source code, based on the internal compiled structure that perl itself creates
+after parsing a program. It adds symbol renaming functions to the B::Deparse
+module. An obfuscated program is already parsed and interpreted correctly by
+the B::Deparse program. Unfortunately, if the obfuscation involved variable
+renaming then the resulting program also has obfuscated symbols.
+
+WWW: http://search.cpan.org/dist/B-Deobfuscate/
diff --git a/devel/p5-B-Deobfuscate/pkg-plist b/devel/p5-B-Deobfuscate/pkg-plist
new file mode 100644
index 000000000000..a413f728a141
--- /dev/null
+++ b/devel/p5-B-Deobfuscate/pkg-plist
@@ -0,0 +1,6 @@
+%%SITE_PERL%%/B/Deobfuscate.pm
+%%SITE_PERL%%/B/Deobfuscate.pod
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/B/Deobfuscate/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/B/Deobfuscate
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/B 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/B 2>/dev/null || true