diff --git a/www/squidpurge/Makefile b/www/squidpurge/Makefile index a81dee1aa249..f5770e2a6698 100644 --- a/www/squidpurge/Makefile +++ b/www/squidpurge/Makefile @@ -18,8 +18,9 @@ WRKSRC= ${WRKDIR}/purge PLIST_FILES= sbin/purge -NO_STAGE= yes +post-patch: + ${REINPLACE_CMD} -e 's/= g++/= ${CXX}/g' ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/purge ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/purge ${STAGEDIR}${PREFIX}/sbin .include diff --git a/www/webfs/Makefile b/www/webfs/Makefile index 911fc5307f26..11f17724357c 100644 --- a/www/webfs/Makefile +++ b/www/webfs/Makefile @@ -15,37 +15,28 @@ RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} USES= gmake MAKEFILE= GNUmakefile -.if !defined(WITHOUT_OPENSSL) -MAKE_ENV= USE_SSL=no -.endif -MAKE_ENV+= LDLIBS="-lssl -lcrypto" USE_DIET=no -PLIST_FILES= sbin/webfsd +PLIST_FILES= sbin/webfsd man/man1/webfsd.1 + +OPTIONS_DEFINE= OPENSSL +OPENSSL_MAKE_ENV= LDLIBS="-lssl -lcrypto" USE_DIET=no +OPENSSL_MAKE_ENV_OFF= USE_SSL=no -MAN1= webfsd.1 MIMEFILE?= ${LOCALBASE}/etc/mime.types USE_RC_SUBR= webfsd -NO_STAGE= yes -pre-everything:: - @${ECHO_CMD} "" - @${ECHO_CMD} "===========================================" - @${ECHO_CMD} "This package supports the following option:" - @${ECHO_CMD} "" - @${ECHO_CMD} " -DWITHOUT_SSL - omit SSL support" - @${ECHO_CMD} "===========================================" - @${ECHO_CMD} "" +.include post-patch: @${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/GNUmakefile @${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/webfsd.man -.if defined(WITHOUT_OPENSSL) +.if empty(PORT_OPTIONS:MOPENSSL) @${REINPLACE_CMD} -e 's|USE_SSL := yes|USE_SSL := no|' ${WRKSRC}/Make.config .endif do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin - @${INSTALL_MAN} ${WRKSRC}/webfsd.man ${PREFIX}/man/man1/webfsd.1 + ${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/webfsd.man ${STAGEDIR}${PREFIX}/man/man1/webfsd.1 .include diff --git a/www/webstone/Makefile b/www/webstone/Makefile index 57bcd36c685c..71251fbe69fd 100644 --- a/www/webstone/Makefile +++ b/www/webstone/Makefile @@ -16,27 +16,23 @@ WRKSRC= ${WRKDIR}/WebStone2.5/src ALL_TARGET= install NO_INSTALL_MANPAGES= yes -NO_STAGE= yes do-install: @${RM} ${WRKSRC}/../bin/runs/keepme @${RMDIR} ${WRKSRC}/../bin/runs - @${MKDIR} ${PREFIX}/webstone/bin - @${MKDIR} ${PREFIX}/webstone/conf - @${MKDIR} ${PREFIX}/webstone/lgm - ${INSTALL_SCRIPT} ${WRKSRC}/../bin/* ${PREFIX}/webstone/bin - ${INSTALL_SCRIPT} ${WRKSRC}/../lgm/* ${PREFIX}/webstone/lgm - ${INSTALL_DATA} ${WRKSRC}/../conf/* ${PREFIX}/webstone/conf - ${INSTALL_SCRIPT} ${WRKSRC}/../webstone ${PREFIX}/webstone + @${MKDIR} ${STAGEDIR}${PREFIX}/webstone/bin + @${MKDIR} ${STAGEDIR}${PREFIX}/webstone/conf + @${MKDIR} ${STAGEDIR}${PREFIX}/webstone/lgm + ${INSTALL_SCRIPT} ${WRKSRC}/../bin/* ${STAGEDIR}${PREFIX}/webstone/bin + ${INSTALL_SCRIPT} ${WRKSRC}/../lgm/* ${STAGEDIR}${PREFIX}/webstone/lgm + ${INSTALL_DATA} ${WRKSRC}/../conf/* ${STAGEDIR}${PREFIX}/webstone/conf + ${INSTALL_SCRIPT} ${WRKSRC}/../webstone ${STAGEDIR}${PREFIX}/webstone @${MKDIR} ${WRKSRC}/../bin/runs @${TOUCH} ${WRKSRC}/../bin/runs/keepme .for file in webclient webmaster genrand - ${STRIP_CMD} ${PREFIX}/webstone/bin/${file} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/webstone/bin/${file} .endfor .for file in ws20_cgi ws25_cgi - ${STRIP_CMD} ${PREFIX}/webstone/lgm/${file} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/webstone/lgm/${file} .endfor -post-install: - @${CAT} ${PKGMESSAGE} - .include diff --git a/www/yourls/Makefile b/www/yourls/Makefile index 05a6c88f86d4..f1b0a646d5ea 100644 --- a/www/yourls/Makefile +++ b/www/yourls/Makefile @@ -1,43 +1,39 @@ # Created by: Joe Horn # $FreeBSD$ -PORTNAME= yourls -DISTVERSION= 1.5.1 -CATEGORIES= www -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +PORTNAME= yourls +DISTVERSION= 1.5.1 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} MAINTAINER= ports@FreeBSD.org -COMMENT= Your Own URL Shortener +COMMENT= Your Own URL Shortener -LICENSE= GPLv3 +LICENSE= GPLv3 -WRKSRC= ${WRKDIR}/${PORTNAME} +WRKSRC= ${WRKDIR}/${PORTNAME} EXTRACT_AFTER_ARGS= -d ${WRKSRC} USES= zip:infozip -NO_BUILD= YES +NO_BUILD= YES -USE_PHP= bcmath curl json mysql pcre xml +USE_PHP= bcmath curl json mysql pcre xml -SUB_LIST+= PKGNAME=${PKGNAME} -SUB_FILES+= pkg-message +SUB_LIST+= PKGNAME=${PKGNAME} +SUB_FILES+= pkg-message -NO_STAGE= yes .include do-install: - @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR} @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ ${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} - @${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 + @${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 @${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \ ${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST} - @${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 + @${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 @${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \ ${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST} -post-install: - @${CAT} ${PKGMESSAGE} - .include diff --git a/www/zikula/Makefile b/www/zikula/Makefile index e12e8cbbc431..cbd379c5ab82 100644 --- a/www/zikula/Makefile +++ b/www/zikula/Makefile @@ -22,17 +22,13 @@ IGNORE_WITH_MYSQL= 41 50 SUB_FILES= pkg-message -NO_STAGE= yes do-install: - @${MKDIR} ${WWWDIR} - @cd ${WRKSRC} && \ - ${FIND} . -type d -exec ${MKDIR} ${WWWDIR}/{} \; \ - -exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/{} \; - @cd ${WRKSRC} && \ - ${FIND} . \! -type d -exec ${INSTALL_DATA} {} ${WWWDIR}/{} \; \ - -exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/{} \; - -post-install: - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${WWWDIR} + (cd ${WRKSRC} && \ + ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${WWWDIR}/{} \; \ + -exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/{} \;) + (cd ${WRKSRC} && \ + ${FIND} . \! -type d -exec ${INSTALL_DATA} {} ${STAGEDIR}${WWWDIR}/{} \; \ + -exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/{} \;) .include