summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2017-09-25 22:39:56 +0000
committerjlam <jlam@pkgsrc.org>2017-09-25 22:39:56 +0000
commit40b8c34f972c742695f3bf52d773590c6843f8c8 (patch)
tree530263cca2d8eb38f18fe8c79379e719157c5509
parentaec9e5a6686126d8d44a26c10220762e0f80cabc (diff)
downloadpkgsrc-40b8c34f972c742695f3bf52d773590c6843f8c8.tar.gz
www/siege: Fix installation if ${PKG_SYSCONFBASE} != ${PREFIX}/etc.
The software Makefiles try to install example configuration files directly into $(sysconfdir), which is set during the configure stage to ${PKG_SYSCONFDIR} == ${PREFIX}/etc/siege. However, pkgsrc standards require that the example configuration files be installed into ${PREFIX}/share/examples/siege ( ${EGDIR} ). Pass sysconfdir=${EGDIR} to the bmake(1) process during the install stage so that the Makefile recipe will install the example files into the correct location. Remove the "install" substitution class that was trying to do the same thing but which fails if ${PKG_SYSCONFBASE} != ${PREFIX}/etc. Bump the PKGREVISION due to changes in the installed files if the package is built with default settings. Fix discussed with nils@ in private correspondence.
-rw-r--r--www/siege/Makefile13
1 files changed, 3 insertions, 10 deletions
diff --git a/www/siege/Makefile b/www/siege/Makefile
index f016ad25c63..16968dfd703 100644
--- a/www/siege/Makefile
+++ b/www/siege/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2016/03/05 11:29:39 jperkin Exp $
+# $NetBSD: Makefile,v 1.4 2017/09/25 22:39:56 jlam Exp $
#
DISTNAME= siege-3.1.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= http://download.joedog.org/siege/
@@ -29,25 +29,18 @@ SUBST_STAGE.siege= post-patch
SUBST_FILES.siege= doc/Makefile.am doc/Makefile.in
SUBST_SED.siege+= -e "s|@EGDIR@|${EGDIR}|g"
-SUBST_CLASSES+= install
-SUBST_STAGE.install= pre-install
-SUBST_MESSAGE.install= correcting installation path
-SUBST_FILES.install= ${WRKSRC}/doc/Makefile
-SUBST_SED.install= -e 's,${PREFIX}/etc,${EGDIR},g'
-
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/log/
CONFIGURE_ENV+= PERL=${PERL5:Q}
INSTALLATION_DIRS+= ${EGDIR} ${DOCDIR}
+INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR:Q}
NOT_FOR_PLATFORM+= SunOS-*-*
pre-configure:
cd ${WRKSRC} && autoconf
post-install:
- ${INSTALL_DATA} ${WRKSRC}/doc/urls.txt ${DESTDIR}${EGDIR}/urls.txt
- ${INSTALL_DATA} ${WRKSRC}/doc/siegerc ${DESTDIR}${EGDIR}/siegerc
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DESTDIR}${DOCDIR}/AUTHORS
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${DOCDIR}/COPYING
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${DOCDIR}/ChangeLog