diff options
author | rillig <rillig@pkgsrc.org> | 2006-07-10 08:29:33 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-07-10 08:29:33 +0000 |
commit | 506171d445473b4210f66e633e483880c0dbc3bd (patch) | |
tree | bed0bb7e7af06af09f7fcd87cddcc47c1c1c47e4 /www/apache2 | |
parent | b78b306826c8850e8603c5b03801d58efeecf372 (diff) | |
download | pkgsrc-506171d445473b4210f66e633e483880c0dbc3bd.tar.gz |
Fixed some pkglint warnings.
Diffstat (limited to 'www/apache2')
-rw-r--r-- | www/apache2/Makefile | 56 | ||||
-rw-r--r-- | www/apache2/buildlink3.mk | 6 |
2 files changed, 29 insertions, 33 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile index 0fe954ca682..87d640e6dd8 100644 --- a/www/apache2/Makefile +++ b/www/apache2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.101 2006/05/07 12:35:27 tron Exp $ +# $NetBSD: Makefile,v 1.102 2006/07/10 08:29:33 rillig Exp $ .include "Makefile.common" @@ -47,9 +47,9 @@ APACHE_MODULES?= ${DFLT_APACHE_MODULES} APACHE_MPM?= prefork CONFIGURE_ARGS+= --with-mpm=${APACHE_MPM:Q} BUILD_DEFS+= APACHE_MPM -.for _mpm_ in prefork worker -PLIST_SUBST.${_mpm_}?= MPM_COMMENT.${_mpm_}="@comment " -PLIST_SUBST+= ${PLIST_SUBST.${_mpm_}} +.for mpm in prefork worker +PLIST_SUBST.${mpm}?= MPM_COMMENT.${mpm}="@comment " +PLIST_SUBST+= ${PLIST_SUBST.${mpm}} .endfor PLIST_SUBST.${APACHE_MPM}= MPM_COMMENT.${APACHE_MPM}= @@ -134,22 +134,22 @@ SUBST_MESSAGE.paths= Fixing paths. SUBST_CLASSES+= apr-lt SUBST_STAGE.apr-lt= post-configure SUBST_FILES.apr-lt= build/config_vars.mk -SUBST_SED.apr-lt= -e "s|^\(LIBTOOL =\) [^ ]*|\1 \$$(SHELL) \$$(top_builddir)/libtool|g" +SUBST_SED.apr-lt= -e 's|^\(LIBTOOL =\) [^ ]*|\1 $$(SHELL) $$(top_builddir)/libtool|g' SUBST_MESSAGE.apr-lt= Fixing libtool references. SUBST_CLASSES+= confs SUBST_STAGE.confs= post-configure -SUBST_FILES.confs= docs/conf/highperformance-std.conf \ - docs/conf/httpd-std.conf \ - docs/conf/ssl-std.conf -SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g" \ - -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g" \ - -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g" \ - -e "s|logs/|${VARBASE}/log/httpd/|g" \ - -e "s|/var/log/httpd/foo\.log|logs/foo.log/|g" \ - -e "s|^\(User[ ]\).*|\1${APACHE_USER}|g" \ - -e "s|^\(Group[ ]\).*|\1${APACHE_GROUP}|g" SUBST_MESSAGE.confs= Fixing configuration files. +SUBST_FILES.confs= docs/conf/highperformance-std.conf +SUBST_FILES.confs+= docs/conf/httpd-std.conf +SUBST_FILES.confs+= docs/conf/ssl-std.conf +SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g" +SUBST_SED.confs+= -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g" +SUBST_SED.confs+= -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g" +SUBST_SED.confs+= -e "s|logs/|${VARBASE}/log/httpd/|g" +SUBST_SED.confs+= -e 's|/var/log/httpd/foo\.log|logs/foo.log/|g' +SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g' +SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g' .include "options.mk" @@ -188,18 +188,18 @@ post-build: < ${FILESDIR}/mkcert.sh > ${WRKDIR}/mkcert pre-install: - @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \ + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} install-conf sysconfdir="${EGDIR}" post-install: - @${LN} -sf ${LOCALBASE}/libexec/apr/libtool ${PREFIX}/share/httpd/build - @cd ${EGDIR}; \ + ${LN} -sf ${LOCALBASE}/libexec/apr/libtool ${PREFIX}/share/httpd/build + cd ${EGDIR} && \ for file in \ highperformance-std.conf \ httpd-std.conf \ ssl-std.conf; \ do \ - ${CAT} $${file} | ${AWK} ' \ + ${AWK} ' \ /^Listen[ ]*80/ { \ print; \ printf "%s", "Listen 0.0.0.0:80\n"; \ @@ -211,25 +211,25 @@ post-install: next; \ } \ { print; } \ - ' >> $${file}.new; \ + ' < "$${file}" >> $${file}.new; \ ${MV} -f $${file}.new $${file}; \ done - @${INSTALL_DATA_DIR} ${PREFIX}/share/httpd/manual - @cd ${WRKSRC}/docs/manual && ${PAX} -rw . ${PREFIX}/share/httpd/manual + ${INSTALL_DATA_DIR} ${PREFIX}/share/httpd/manual + cd ${WRKSRC}/docs/manual && ${PAX} -rw . ${PREFIX}/share/httpd/manual - @${INSTALL_SCRIPT} ${WRKDIR}/mkcert ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKDIR}/mkcert ${PREFIX}/sbin for file in ${FIX_PERMS}; do \ ${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/sbin/$$file && \ ${CHMOD} ${BINMODE} ${PREFIX}/sbin/$$file; \ done - @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/httpd - @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/include/httpd - @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/httpd - @${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/libexec/cgi-bin/test-cgi - @${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/libexec/cgi-bin/printenv + ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/httpd + ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/include/httpd + ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/httpd + ${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/libexec/cgi-bin/test-cgi + ${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/libexec/cgi-bin/printenv for file in ${FIX_MAN_PERMS}; do \ ${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/${PKGMANDIR}/$$file; \ diff --git a/www/apache2/buildlink3.mk b/www/apache2/buildlink3.mk index 600078ec386..539738004c9 100644 --- a/www/apache2/buildlink3.mk +++ b/www/apache2/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.20 2006/07/08 23:11:12 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.21 2006/07/10 08:29:33 rillig Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ APACHE_BUILDLINK3_MK:= ${APACHE_BUILDLINK3_MK}+ @@ -19,14 +19,10 @@ BUILDLINK_DEPMETHOD.apache?= build . if defined(APACHE_MODULE) BUILDLINK_DEPMETHOD.apache+= full . endif -.endif # APACHE_BUILDLINK3_MK - USE_TOOLS+= perl # for "apxs" CONFIGURE_ENV+= APR_LIBTOOL=${LIBTOOL:Q} # make apxs use the libtool we specify MAKE_ENV+= APR_LIBTOOL=${LIBTOOL:Q} APXS?= ${BUILDLINK_PREFIX.apache}/sbin/apxs - -.if !empty(APACHE_BUILDLINK3_MK:M+) . if defined(GNU_CONFIGURE) CONFIGURE_ARGS+= --with-apxs2=${APXS:Q} . endif |