Date: Sun, 8 May 2005 13:39:40 +0200 From: Meno Abels <meno.abels@adviser.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Meno Abels <meno.abels@adviser.com> Subject: ports/80757: NEW port: www/phpadsnew A open-source ad server Message-ID: <20050508113951.2210943D93@mx1.FreeBSD.org> Resent-Message-ID: <200505081140.j48Be3BL090363@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80757 >Category: ports >Synopsis: NEW port: www/phpadsnew A open-source ad server >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 08 11:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Meno Abels <meno.abels@adviser.com> >Release: FreeBSD 5.3 i386 >Organization: Adviser COM >Environment: System: FreeBSD race 5.3 FreeBSD 5.3 #4: Tue Apr 19 14:18:44 CEST 2005 root@jamal.abels.adviser.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: 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. >How-To-Repeat: not applied change request >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # www/phpadsnew # www/phpadsnew/Makefile # www/phpadsnew/distinfo # www/phpadsnew/pkg-descr # www/phpadsnew/pkg-plist-chunk # echo c - www/phpadsnew mkdir -p www/phpadsnew > /dev/null 2>&1 echo x - www/phpadsnew/Makefile sed 's/^X//' >www/phpadsnew/Makefile << 'END-of-www/phpadsnew/Makefile' X# New ports collection makefile for: phpAdsNew X# Date created: 2005-05-08 X# Whom: Meno Abels <meno.abels@adviser.com> X# X# $FreeBSD$ X# X XPORTNAME= phpAdsNew XDISTVERSION= 2.0.4-pr2 XCATEGORIES= www XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= phpadsnew X XMAINTAINER= meno.abels@adviser.com XCOMMENT= The phpAdsNew is an open-source ad server X XUSE_GZIP= yes XNO_BUILD= yes XUSE_PHP= mysql pcre zlib X XSUB_LIST+= "MYADSDIR=${MYADSDIR}" \ X "PKGNAME=${PKGNAME}" X X# Unfortunately can't make WITH_SUPHP part of the OPTIONS selection, X# since it has to be processed before just about anything else. X XWANT_PHP_WEB= yes X XLATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} X X# MYADSUSR is only used WITH_SUPHP XMYADSDIR?= www/phpadsnew XMYADSGRP?= ${WWWGRP} XCFGFILE= config.inc.php X XPLIST= ${WRKDIR}/plist XPLIST_SUB+= MYADSDIR=${MYADSDIR} MYADSGRP=${MYADSGRP} X X.SILENT: X Xdo-build: X @${DO_NADA} X Xpre-everything:: X ${ECHO_MSG} "" X ${ECHO_MSG} "You may use the following additional build option:" X ${ECHO_MSG} "" X ${ECHO_MSG} " WITH_SUPHP=yes Install appropriately for use with" X ${ECHO_MSG} " the www/suphp port [default: no]" X ${ECHO_MSG} "" X Xpost-patch: X ${MV} ${WRKSRC}/${CFGFILE} ${WRKSRC}/${CFGFILE}.sample X cd ${WRKSRC} && \ X if ${TEST} -d "misc/backwards compatibility" ; then \ X ${MV} "misc/backwards compatibility" "misc/backwards_compatibility" ; \ X fi ; \ X ${FIND} . ! -type d ! -name ${CFGFILE}.sample | ${SORT} | \ X ${SED} -e "s,^\.,%%MYADSDIR%%," >${PLIST} ; \ X ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \ X ${FIND} . -type d | ${SORT} -r | ${SED} \ X -e "s,^\.$$,@unexec ${RMDIR} %D/%%MYADSDIR%% 2>/dev/null || true," \ X -e "s,^\.,@dirrm %%MYADSDIR%%," >>${PLIST} X Xpre-install: X.if defined(WITH_SUPHP) X ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X.endif X Xdo-install: install-app install-conf X Xinstall-app: X cd ${WRKSRC} && \ X for src in $$( ${FIND} . ! -name .cvsignore ) ; do \ X dst=${PREFIX}/${MYADSDIR}$${src#.} ; \ X if ${TEST} -d "$$src" ; then \ X ${MKDIR} "$$dst" ; \ X else \ X ${INSTALL_DATA} "$$src" "$$dst" ; \ X fi \ X done X Xinstall-conf: install-app X cd ${PREFIX}/${MYADSDIR} ; \ X ${CHMOD} 0640 ${CFGFILE}.sample ; \ X ${CHGRP} ${MYADSGRP} ${CFGFILE}.sample ; \ X if ${TEST} ! -f ${CFGFILE} ; then \ X ${CP} -p ${CFGFILE}.sample ${CFGFILE} ; \ X fi X Xpost-install: X.if defined(WITH_SUPHP) X ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X.endif X X.include <bsd.port.mk> END-of-www/phpadsnew/Makefile echo x - www/phpadsnew/distinfo sed 's/^X//' >www/phpadsnew/distinfo << 'END-of-www/phpadsnew/distinfo' XMD5 (phpAdsNew-2.0.4-pr2.tar.gz) = 4a07348f7a8f0236793a5aa4b43e5bb5 XSIZE (phpAdsNew-2.0.4-pr2.tar.gz) = 2525942 END-of-www/phpadsnew/distinfo echo x - www/phpadsnew/pkg-descr sed 's/^X//' >www/phpadsnew/pkg-descr << 'END-of-www/phpadsnew/pkg-descr' XphpAdsNew is an open-source ad server, with an integrated banner Xmanagement interface and tracking system for gathering statistics. XWith phpAdsNew you can easily rotate paid banners and your own Xin-house advertisements. You can even integrate banners from third Xparty advertising companies. X XWWW: http://www.phpadsnew.com/ END-of-www/phpadsnew/pkg-descr echo x - www/phpadsnew/pkg-plist-chunk sed 's/^X//' >www/phpadsnew/pkg-plist-chunk << 'END-of-www/phpadsnew/pkg-plist-chunk' X@mode 640 X@group %%MYADSGRP%% X@unexec if cmp -s %D/%%MYADSDIR%%/config.inc.php.sample %D/%%MYADSDIR%%/config.inc.php ; then rm -f %D/%%MYADSDIR%%/config.inc.php ; fi X%%MYADSDIR%%/config.inc.php.sample X@exec [ ! -f %B/config.inc.php ] && cp -p %B/%f %B/config.inc.php || true X@mode X@group END-of-www/phpadsnew/pkg-plist-chunk exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050508113951.2210943D93>