diff options
author | tota <tota@FreeBSD.org> | 2011-09-24 13:23:57 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2011-09-24 13:23:57 +0800 |
commit | 8f63738abc46bb6404056a4970d011334dd7a6dd (patch) | |
tree | 352dab2176c03d289f4e603979e280bdae4b8730 /www | |
parent | e4a7d0ae2d77136b0d3e3014657104cf373315c0 (diff) | |
download | freebsd-ports-gnome-8f63738abc46bb6404056a4970d011334dd7a6dd.tar.gz freebsd-ports-gnome-8f63738abc46bb6404056a4970d011334dd7a6dd.tar.zst freebsd-ports-gnome-8f63738abc46bb6404056a4970d011334dd7a6dd.zip |
- Add a new port: www/mod_amazon_proxy
Authentication Proxy Server of Amazon Product Advertising API for
Apache module.
WWW: https://github.com/machu/mod_amazon_proxy
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_amazon_proxy/Makefile | 65 | ||||
-rw-r--r-- | www/mod_amazon_proxy/distinfo | 2 | ||||
-rw-r--r-- | www/mod_amazon_proxy/pkg-descr | 4 | ||||
-rw-r--r-- | www/mod_amazon_proxy/pkg-plist | 4 |
5 files changed, 76 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 1a9a75ed7fd2..ceb38072e96b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -417,6 +417,7 @@ SUBDIR += mod_access_identd SUBDIR += mod_access_referer SUBDIR += mod_accounting + SUBDIR += mod_amazon_proxy SUBDIR += mod_antiloris SUBDIR += mod_asn SUBDIR += mod_auth_cas diff --git a/www/mod_amazon_proxy/Makefile b/www/mod_amazon_proxy/Makefile new file mode 100644 index 000000000000..acfc273760c5 --- /dev/null +++ b/www/mod_amazon_proxy/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: mod_amazon_proxy +# Date created: 2011-09-24 +# Whom: TAKATSU Tomonari <tota@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mod_amazon_proxy +PORTVERSION= 20100913 +CATEGORIES= www +MASTER_SITES= LOCAL +MASTER_SITE_SUBDIR= tota/${PORTNAME} + +MAINTAINER= tota@FreeBSD.org +COMMENT= Amazon Auth Proxy for Product Advertising API + +LIB_DEPENDS= apreq2:${PORTSDIR}/www/libapreq2 + +USE_APACHE= 22+ + +CONFFILE= httpd-amazon-proxy.conf +CONFDIR= ${PREFIX}/${APACHEETCDIR}/Includes + +PORTDOCS= README +PORTEXAMPLES= rpaproxy.yaml + +post-patch: + @${REINPLACE_CMD} -e 's|modules|${APACHEMODDIR}|' ${WRKSRC}/${CONFFILE}.sample + +do-build: + @${APXS} -c ${BUILD_WRKSRC}/${PORTNAME}.c + +do-install: + @${APXS} -i ${INSTALL_WRKSRC}/${PORTNAME}.la + ${INSTALL_DATA} ${WRKSRC}/${CONFFILE}.sample ${CONFDIR} + @if [ ! -f ${CONFDIR}/${CONFFILE} ]; then \ + ${CP} -p ${CONFDIR}/${CONFFILE}.sample ${CONFDIR}/${CONFFILE}; \ + fi +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${EXAMPLESDIR} +.endif + +x-generate-tarball: + ${SETENV} ${FETCH_ENV} ${FETCH_BINARY} -m -o ${PORTNAME}.tar.gz \ + https://github.com/machu/mod_amazon_proxy/tarball/master + target=`${TAR} -tvf ${PORTNAME}.tar.gz | head -n 1`; \ + dir=`${ECHO} $${target} | ${AWK} '{print $$9}' | ${SED} -e 's|/$$||'`; \ + year=`${ECHO} $${target} | ${AWK} '{print $$8}`; \ + month=`${ECHO} $${target} | ${AWK} '{print $$6}`; \ + day=`${ECHO} $${target} | ${AWK} '{print $$7}`; \ + date=`date -j -f "%B %d %Y" "$${month} $${day} $${year}" +"%Y%m%d"`; \ + ${TAR} -zxf ${PORTNAME}.tar.gz; \ + ${RM} ${PORTNAME}.tar.gz; \ + ${RM} $${dir}/Makefile; \ + ${RM} $${dir}/modules.mk; \ + ${MV} $${dir} ${PORTNAME}-$${date}; \ + ${TAR} -zcf ${PORTNAME}-$${date}.tar.gz ${PORTNAME}-$${date}; \ + ${RM} -r ${PORTNAME}-$${date} + +.include <bsd.port.mk> diff --git a/www/mod_amazon_proxy/distinfo b/www/mod_amazon_proxy/distinfo new file mode 100644 index 000000000000..14d2f5b73eeb --- /dev/null +++ b/www/mod_amazon_proxy/distinfo @@ -0,0 +1,2 @@ +SHA256 (mod_amazon_proxy-20100913.tar.gz) = a6fd29b12b8e3c6faccad90fbdc4252fbfb142f5f93e39a6fcc2e0607bca9b32 +SIZE (mod_amazon_proxy-20100913.tar.gz) = 3106 diff --git a/www/mod_amazon_proxy/pkg-descr b/www/mod_amazon_proxy/pkg-descr new file mode 100644 index 000000000000..870387603492 --- /dev/null +++ b/www/mod_amazon_proxy/pkg-descr @@ -0,0 +1,4 @@ +Authentication Proxy Server of Amazon Product Advertising API for +Apache module. + +WWW: https://github.com/machu/mod_amazon_proxy diff --git a/www/mod_amazon_proxy/pkg-plist b/www/mod_amazon_proxy/pkg-plist new file mode 100644 index 000000000000..5c1bad985fba --- /dev/null +++ b/www/mod_amazon_proxy/pkg-plist @@ -0,0 +1,4 @@ +%%APACHEMODDIR%%/mod_amazon_proxy.so +@unexec if cmp -s %D/%%APACHEETCDIR%%/Includes/httpd-amazon-proxy.conf.sample %D/%%APACHEETCDIR%%/Includes/httpd-amazon-proxy.conf; then rm -f %D/%%APACHEETCDIR%%/Includes/httpd-amazon-proxy.conf; fi +%%APACHEETCDIR%%/Includes/httpd-amazon-proxy.conf.sample +@exec [ -f %B/%%APACHEETCDIR%%/Includes/httpd-amazon-proxy.conf ] || cp %B/%f %B/%%APACHEETCDIR%%/Includes/httpd-amazon-proxy.conf |