diff options
author | pav <pav@FreeBSD.org> | 2005-05-24 21:34:39 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-05-24 21:34:39 +0000 |
commit | 97f70ddaa1ec0c0065676ce356e0ca6efb8692a5 (patch) | |
tree | 78c177676db9e540396159204f5031b2e95a27af /www/phpadsnew | |
parent | 88bc1354a52f68b5ac1f6ad6f8041e87a56e2d5c (diff) | |
download | FreeBSD-ports-97f70ddaa1ec0c0065676ce356e0ca6efb8692a5.zip FreeBSD-ports-97f70ddaa1ec0c0065676ce356e0ca6efb8692a5.tar.gz |
phpAdsNew is an open-source ad server, with an integrated banner management
interface and tracking system for gathering statistics. With phpAdsNew you can
easily rotate paid banners and your own in-house advertisements. You can even
integrate banners from third party advertising companies.
PR: ports/80757
Submitted by: Meno Abels <meno.abels@adviser.com>
Diffstat (limited to 'www/phpadsnew')
-rw-r--r-- | www/phpadsnew/Makefile | 96 | ||||
-rw-r--r-- | www/phpadsnew/distinfo | 2 | ||||
-rw-r--r-- | www/phpadsnew/pkg-descr | 7 | ||||
-rw-r--r-- | www/phpadsnew/pkg-plist-chunk | 7 |
4 files changed, 112 insertions, 0 deletions
diff --git a/www/phpadsnew/Makefile b/www/phpadsnew/Makefile new file mode 100644 index 0000000..48742e7 --- /dev/null +++ b/www/phpadsnew/Makefile @@ -0,0 +1,96 @@ +# New ports collection makefile for: phpAdsNew +# Date created: 2005-05-08 +# Whom: Meno Abels <meno.abels@adviser.com> +# +# $FreeBSD$ +# + +PORTNAME= phpAdsNew +DISTVERSION= 2.0.4-pr2 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= phpadsnew + +MAINTAINER= meno.abels@adviser.com +COMMENT= The phpAdsNew is an open-source ad server + +USE_GZIP= yes +NO_BUILD= yes +USE_PHP= mysql pcre zlib + +SUB_LIST+= "MYADSDIR=${MYADSDIR}" \ + "PKGNAME=${PKGNAME}" + +# Unfortunately can't make WITH_SUPHP part of the OPTIONS selection, +# since it has to be processed before just about anything else. + +WANT_PHP_WEB= yes + +LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} + +# MYADSUSR is only used WITH_SUPHP +MYADSDIR?= www/phpadsnew +MYADSGRP?= ${WWWGRP} +CFGFILE= config.inc.php + +PLIST= ${WRKDIR}/plist +PLIST_SUB+= MYADSDIR=${MYADSDIR} MYADSGRP=${MYADSGRP} + +.SILENT: + +do-build: + @${DO_NADA} + +pre-everything:: + ${ECHO_MSG} "" + ${ECHO_MSG} "You may use the following additional build option:" + ${ECHO_MSG} "" + ${ECHO_MSG} " WITH_SUPHP=yes Install appropriately for use with" + ${ECHO_MSG} " the www/suphp port [default: no]" + ${ECHO_MSG} "" + +post-patch: + ${MV} ${WRKSRC}/${CFGFILE} ${WRKSRC}/${CFGFILE}.sample + cd ${WRKSRC} && \ + if ${TEST} -d "misc/backwards compatibility" ; then \ + ${MV} "misc/backwards compatibility" "misc/backwards_compatibility" ; \ + fi ; \ + ${FIND} . ! -type d ! -name ${CFGFILE}.sample | ${SORT} | \ + ${SED} -e "s,^\.,%%MYADSDIR%%," >${PLIST} ; \ + ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \ + ${FIND} . -type d | ${SORT} -r | ${SED} \ + -e "s,^\.$$,@unexec ${RMDIR} %D/%%MYADSDIR%% 2>/dev/null || true," \ + -e "s,^\.,@dirrm %%MYADSDIR%%," >>${PLIST} + +pre-install: +.if defined(WITH_SUPHP) + ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL +.endif + +do-install: install-app install-conf + +install-app: + cd ${WRKSRC} && \ + for src in $$( ${FIND} . ! -name .cvsignore ) ; do \ + dst=${PREFIX}/${MYADSDIR}$${src#.} ; \ + if ${TEST} -d "$$src" ; then \ + ${MKDIR} "$$dst" ; \ + else \ + ${INSTALL_DATA} "$$src" "$$dst" ; \ + fi \ + done + +install-conf: install-app + cd ${PREFIX}/${MYADSDIR} ; \ + ${CHMOD} 0640 ${CFGFILE}.sample ; \ + ${CHGRP} ${MYADSGRP} ${CFGFILE}.sample ; \ + if ${TEST} ! -f ${CFGFILE} ; then \ + ${CP} -p ${CFGFILE}.sample ${CFGFILE} ; \ + fi + +post-install: +.if defined(WITH_SUPHP) + ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + +.include <bsd.port.mk> diff --git a/www/phpadsnew/distinfo b/www/phpadsnew/distinfo new file mode 100644 index 0000000..3a6eeb9 --- /dev/null +++ b/www/phpadsnew/distinfo @@ -0,0 +1,2 @@ +MD5 (phpAdsNew-2.0.4-pr2.tar.gz) = 4a07348f7a8f0236793a5aa4b43e5bb5 +SIZE (phpAdsNew-2.0.4-pr2.tar.gz) = 2525942 diff --git a/www/phpadsnew/pkg-descr b/www/phpadsnew/pkg-descr new file mode 100644 index 0000000..4036a0a --- /dev/null +++ b/www/phpadsnew/pkg-descr @@ -0,0 +1,7 @@ +phpAdsNew is an open-source ad server, with an integrated banner +management interface and tracking system for gathering statistics. +With phpAdsNew you can easily rotate paid banners and your own +in-house advertisements. You can even integrate banners from third +party advertising companies. + +WWW: http://www.phpadsnew.com/ diff --git a/www/phpadsnew/pkg-plist-chunk b/www/phpadsnew/pkg-plist-chunk new file mode 100644 index 0000000..0003974 --- /dev/null +++ b/www/phpadsnew/pkg-plist-chunk @@ -0,0 +1,7 @@ +@mode 640 +@group %%MYADSGRP%% +@unexec if cmp -s %D/%%MYADSDIR%%/config.inc.php.sample %D/%%MYADSDIR%%/config.inc.php ; then rm -f %D/%%MYADSDIR%%/config.inc.php ; fi +%%MYADSDIR%%/config.inc.php.sample +@exec [ ! -f %B/config.inc.php ] && cp -p %B/%f %B/config.inc.php || true +@mode +@group |