From 47d751bd31d8da3012a8a179aed649dd50962580 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 15 Sep 2007 16:40:52 +0000 Subject: [PATCH] import p5-GD-SecurityImage The (so called) "Security Images" are so popular. Most internet software use these in their registration screens to block robot programs (which may register tons of fake member accounts). Security images are basicaly, graphical CAPTCHAs (Completely Automated Public Turing Test to Tell Computers and Humans Apart). This module gives you a basic interface to create such an image. The final output is the actual graphic data, the mime type of the graphic and the created random string. The module also has some "styles" that are used to create the background (or foreground) of the image. --- graphics/p5-GD-SecurityImage/Makefile | 26 ++++++++++++++++++++++++++ graphics/p5-GD-SecurityImage/distinfo | 5 +++++ graphics/p5-GD-SecurityImage/pkg/DESCR | 9 +++++++++ graphics/p5-GD-SecurityImage/pkg/PLIST | 13 +++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 graphics/p5-GD-SecurityImage/Makefile create mode 100644 graphics/p5-GD-SecurityImage/distinfo create mode 100644 graphics/p5-GD-SecurityImage/pkg/DESCR create mode 100644 graphics/p5-GD-SecurityImage/pkg/PLIST diff --git a/graphics/p5-GD-SecurityImage/Makefile b/graphics/p5-GD-SecurityImage/Makefile new file mode 100644 index 00000000000..721b93fec99 --- /dev/null +++ b/graphics/p5-GD-SecurityImage/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/09/15 16:40:52 simon Exp $ + +COMMENT= security image (captcha) generator + +MODULES= cpan +DISTNAME= GD-SecurityImage-1.64 +CATEGORIES= graphics security + +MAINTAINER= Simon Bertrang + +# Perl +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +RUN_DEPENDS= ::graphics/p5-GD + +CONFIGURE_STYLE=modbuild + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-GD-SecurityImage + sed -e 's!\r!!' ${WRKSRC}/eg/demo.pl \ + > ${PREFIX}/share/examples/p5-GD-SecurityImage/demo.pl + +.include diff --git a/graphics/p5-GD-SecurityImage/distinfo b/graphics/p5-GD-SecurityImage/distinfo new file mode 100644 index 00000000000..39883948709 --- /dev/null +++ b/graphics/p5-GD-SecurityImage/distinfo @@ -0,0 +1,5 @@ +MD5 (GD-SecurityImage-1.64.tar.gz) = Utm0LfkLBmfxsepm6MFbHQ== +RMD160 (GD-SecurityImage-1.64.tar.gz) = +4IU11rWosrL8sJecwcc5MDzJn0= +SHA1 (GD-SecurityImage-1.64.tar.gz) = 3tuZsT4015YCm+RuQPvEJqg6V9E= +SHA256 (GD-SecurityImage-1.64.tar.gz) = mYSWDhDA2EKeQaXuBCeleOqZkkqqZgLYl2AYGC8boAU= +SIZE (GD-SecurityImage-1.64.tar.gz) = 69030 diff --git a/graphics/p5-GD-SecurityImage/pkg/DESCR b/graphics/p5-GD-SecurityImage/pkg/DESCR new file mode 100644 index 00000000000..619ec990da2 --- /dev/null +++ b/graphics/p5-GD-SecurityImage/pkg/DESCR @@ -0,0 +1,9 @@ +The (so called) "Security Images" are so popular. Most internet +software use these in their registration screens to block robot programs +(which may register tons of fake member accounts). Security images are +basicaly, graphical CAPTCHAs (Completely Automated Public Turing Test to +Tell Computers and Humans Apart). This module gives you a basic +interface to create such an image. The final output is the actual +graphic data, the mime type of the graphic and the created random +string. The module also has some "styles" that are used to create the +background (or foreground) of the image. diff --git a/graphics/p5-GD-SecurityImage/pkg/PLIST b/graphics/p5-GD-SecurityImage/pkg/PLIST new file mode 100644 index 00000000000..129a1c2ff10 --- /dev/null +++ b/graphics/p5-GD-SecurityImage/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/15 16:40:52 simon Exp $ +${P5SITE}/GD/ +${P5SITE}/GD/SecurityImage/ +${P5SITE}/GD/SecurityImage.pm +${P5SITE}/GD/SecurityImage/GD.pm +${P5SITE}/GD/SecurityImage/Magick.pm +${P5SITE}/GD/SecurityImage/Styles.pm +@man man/man3p/GD::SecurityImage.3p +@man man/man3p/GD::SecurityImage::GD.3p +@man man/man3p/GD::SecurityImage::Magick.3p +@man man/man3p/GD::SecurityImage::Styles.3p +share/examples/p5-GD-SecurityImage/ +share/examples/p5-GD-SecurityImage/demo.pl