diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-05-24 21:34:39 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-05-24 21:34:39 +0000 |
commit | d5fb95c205c697169d553e14832c929e734c9013 (patch) | |
tree | 3759daf83e854c816f9dcbc44f6deae1d0041337 /www/phpadsnew | |
parent | ec1fb611f71f9eb7d6cb1603693f40cea6263621 (diff) | |
download | ports-d5fb95c205c697169d553e14832c929e734c9013.tar.gz ports-d5fb95c205c697169d553e14832c929e734c9013.zip |
Notes
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 000000000000..48742e73e2b6 --- /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 000000000000..3a6eeb96ba92 --- /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 000000000000..4036a0a8c1df --- /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 000000000000..0003974fc80a --- /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 |