diff --git a/net/Makefile b/net/Makefile index 8d682e4a0e13..a49591cdd54b 100644 --- a/net/Makefile +++ b/net/Makefile @@ -451,6 +451,7 @@ SUBDIR += p5-Net-Address-Ethernet SUBDIR += p5-Net-Address-IPv4-Local SUBDIR += p5-Net-Amazon + SUBDIR += p5-Net-Amazon-MechanicalTurk SUBDIR += p5-Net-Amazon-S3 SUBDIR += p5-Net-Analysis SUBDIR += p5-Net-BGP diff --git a/net/p5-Net-Amazon-MechanicalTurk/Makefile b/net/p5-Net-Amazon-MechanicalTurk/Makefile new file mode 100644 index 000000000000..64a288ddc8b8 --- /dev/null +++ b/net/p5-Net-Amazon-MechanicalTurk/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: p5-Net-Amazon-MechanicalTurk +# Date created: 2007-10-29 +# Whom: Greg Larkin +# +# $FreeBSD$ +# + +PORTNAME= Net-Amazon-MechanicalTurk +PORTVERSION= 1.01 +CATEGORIES= net perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= glarkin@sourcehosting.net +COMMENT= Perl interface to the Amazon Mechanical Turk + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \ + ${SITE_PERL}/Digest/HMAC_SHA1.pm:${PORTSDIR}/security/p5-Digest-HMAC \ + ${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build \ + ${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \ + p5-libwww>=0:${PORTSDIR}/www/p5-libwww +BUILD_DEPENDS= ${RUN_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Net::Amazon::MechanicalTurk.3 \ + Net::Amazon::MechanicalTurk::BulkSupport.3 \ + Net::Amazon::MechanicalTurk::Command::AddRetry.3 \ + Net::Amazon::MechanicalTurk::Command::DeleteHIT.3 \ + Net::Amazon::MechanicalTurk::Command::GetAvailableBalance.3 \ + Net::Amazon::MechanicalTurk::Command::GetHITTypeURL.3 \ + Net::Amazon::MechanicalTurk::Command::ListOperations.3 \ + Net::Amazon::MechanicalTurk::Command::LoadHITs.3 \ + Net::Amazon::MechanicalTurk::Command::ParseAssignmentAnswer.3 \ + Net::Amazon::MechanicalTurk::Command::RetrieveResults.3 \ + Net::Amazon::MechanicalTurk::Command::UpdateHITs.3 + +SUB_LIST+= HOME=${HOME} EXAMPLESDIR=${EXAMPLESDIR} +SUB_FILES= pkg-message + +post-install: + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; + cd ${WRKSRC}/samples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; + @${CAT} ${PKGMESSAGE} + +.include diff --git a/net/p5-Net-Amazon-MechanicalTurk/distinfo b/net/p5-Net-Amazon-MechanicalTurk/distinfo new file mode 100644 index 000000000000..c610af3814c3 --- /dev/null +++ b/net/p5-Net-Amazon-MechanicalTurk/distinfo @@ -0,0 +1,3 @@ +MD5 (Net-Amazon-MechanicalTurk-1.01.tar.gz) = c9c5b93fefbdd1148c74c94b5cd533c7 +SHA256 (Net-Amazon-MechanicalTurk-1.01.tar.gz) = 2ffa90b54b234ca26b55f624b21a312211ab00a28a5d867210876b711936b09f +SIZE (Net-Amazon-MechanicalTurk-1.01.tar.gz) = 61660 diff --git a/net/p5-Net-Amazon-MechanicalTurk/files/pkg-message.in b/net/p5-Net-Amazon-MechanicalTurk/files/pkg-message.in new file mode 100644 index 000000000000..12929c3b64e3 --- /dev/null +++ b/net/p5-Net-Amazon-MechanicalTurk/files/pkg-message.in @@ -0,0 +1,28 @@ + +You need to do some things before you can use the Amazon Mechanical Turk: + +1) Visit http://aws.amazon.com/ to create an Amazon AWS account. + +2) Configure the MTurk Perl module with the following command: + + perl -MNet::Amazon::MechanicalTurk::Configurer -e configure + + Your configuration file will be created in the file + %%HOME%%/.aws/auth. + +3) Try out the samples in %%EXAMPLESDIR%%, + if you like. + +4) Use the MTurk Sandbox to create HITs in a development environment for + free. This Perl module uses the sandbox by default. + +5) When you are ready to submit real HITs, add the following line to your + %%HOME%%/.aws/auth file: + + service_url: http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester + + DISCLAIMER: No one but you is responsible for paying MTurk workers for + the HITs that you submit to the live service. Please make sure + you know which MTurk service you are submitting HITs to - + the sandbox (default) or the production service. + diff --git a/net/p5-Net-Amazon-MechanicalTurk/pkg-descr b/net/p5-Net-Amazon-MechanicalTurk/pkg-descr new file mode 100644 index 000000000000..3b03d9a064f7 --- /dev/null +++ b/net/p5-Net-Amazon-MechanicalTurk/pkg-descr @@ -0,0 +1,3 @@ +This module provides a Perlish interface to Amazon Mechanical Turk. + +WWW: http://search.cpan.org/~mturk/ diff --git a/net/p5-Net-Amazon-MechanicalTurk/pkg-plist b/net/p5-Net-Amazon-MechanicalTurk/pkg-plist new file mode 100644 index 000000000000..30cdf223dc2e --- /dev/null +++ b/net/p5-Net-Amazon-MechanicalTurk/pkg-plist @@ -0,0 +1,92 @@ +%%SITE_PERL%%/Net/Amazon/MechanicalTurk.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/BaseObject.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/BulkSupport.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/AddRetry.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/DeleteHIT.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/GetAvailableBalance.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/GetHITTypeURL.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/ListOperations.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/LoadHITs.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/ParseAssignmentAnswer.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/RetrieveResults.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/SetQuestionPostValidationOnError.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/UpdateHITs.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Configurer.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Constants.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/DataStructure.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/DelimitedReader.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/DelimitedWriter.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/FilterChain.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/IOUtil.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/ModuleUtil.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/OSUtil.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/PagedResultsIterator.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Properties.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/QAPValidator.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/QAPValidator/QAPValidatorMSXML.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/QuestionFormAnswers.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Response.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/ArrayHashRowData.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/DelimitedRowData.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/SQLRowData.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/SubroutineRowData.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template/PerlTemplate.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template/ReplacementTemplate.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template/SubroutineTemplate.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Transport.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Transport/RESTTransport.pm +%%SITE_PERL%%/Net/Amazon/MechanicalTurk/XMLParser.pm +%%SITE_PERL%%/Net/Amazon/mturk_install.pl +%%EXAMPLESDIR%%/accountBalance/README.txt +%%EXAMPLESDIR%%/accountBalance/accountbalance.pl +%%EXAMPLESDIR%%/best_image/BestImage.pl +%%EXAMPLESDIR%%/best_image/README.txt +%%EXAMPLESDIR%%/best_image/best_image.properties +%%EXAMPLESDIR%%/best_image/best_image.question +%%EXAMPLESDIR%%/helloworld/README.txt +%%EXAMPLESDIR%%/helloworld/helloworld-answer.pl +%%EXAMPLESDIR%%/helloworld/helloworld-create.pl +%%EXAMPLESDIR%%/listHITs/README.txt +%%EXAMPLESDIR%%/listHITs/listHITs.pl +%%EXAMPLESDIR%%/loadHITs/README.txt +%%EXAMPLESDIR%%/loadHITs/approveRemaining.pl +%%EXAMPLESDIR%%/loadHITs/getresults.pl +%%EXAMPLESDIR%%/loadHITs/loadhits-input.csv +%%EXAMPLESDIR%%/loadHITs/loadhits.pl +%%EXAMPLESDIR%%/loadHITs/reject.pl +%%EXAMPLESDIR%%/loadHITs/removehits.pl +%%EXAMPLESDIR%%/loadHITsFromCustomCode/README.txt +%%EXAMPLESDIR%%/loadHITsFromCustomCode/cities.xml +%%EXAMPLESDIR%%/loadHITsFromCustomCode/loadhits.pl +%%EXAMPLESDIR%%/loadHITsFromCustomCode/loadhits2.pl +%%EXAMPLESDIR%%/loadHITsFromDB/README.txt +%%EXAMPLESDIR%%/loadHITsFromDB/createdb.pl +%%EXAMPLESDIR%%/loadHITsFromDB/dumptables.pl +%%EXAMPLESDIR%%/loadHITsFromDB/loadhits.pl +%%EXAMPLESDIR%%/removeAllHITs/README.txt +%%EXAMPLESDIR%%/removeAllHITs/removeAllHITs.pl +%%EXAMPLESDIR%%/simple_survey/README.txt +%%EXAMPLESDIR%%/simple_survey/SimpleSurvey.pl +%%EXAMPLESDIR%%/simple_survey/simple_survey.question +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Amazon/MechanicalTurk/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Amazon/MechanicalTurk +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Amazon +@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/Transport +@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template +@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData +@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/QAPValidator +@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command +@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk +@dirrm %%SITE_PERL%%/Net/Amazon +@dirrm %%EXAMPLESDIR%%/simple_survey +@dirrm %%EXAMPLESDIR%%/removeAllHITs +@dirrm %%EXAMPLESDIR%%/loadHITsFromDB +@dirrm %%EXAMPLESDIR%%/loadHITsFromCustomCode +@dirrm %%EXAMPLESDIR%%/loadHITs +@dirrm %%EXAMPLESDIR%%/listHITs +@dirrm %%EXAMPLESDIR%%/helloworld +@dirrm %%EXAMPLESDIR%%/best_image +@dirrm %%EXAMPLESDIR%%/accountBalance +@dirrm %%EXAMPLESDIR%%