pkgsrc/www/siege/Makefile

63 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2016/03/05 11:29:39 jperkin Exp $
#
DISTNAME= siege-3.1.3
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://download.joedog.org/siege/
MAINTAINER= nils@NetBSD.org
HOMEPAGE= http://www.joedog.org/JoeDog/Siege
COMMENT= Website/webserver regression testing utility
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf
.include "options.mk"
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= siege
EGDIR= ${PREFIX}/share/examples/siege
DOCDIR= ${PREFIX}/share/doc/siege
CONF_FILES= ${EGDIR}/urls.txt ${PKG_SYSCONFDIR}/urls.txt
CONF_FILES+= ${EGDIR}/siegerc ${PKG_SYSCONFDIR}/siegerc
SUBST_CLASSES+= siege
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}
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
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}/INSTALL
${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${DESTDIR}${DOCDIR}/KNOWNBUGS
#${INSTALL_DATA} ${WRKSRC}/MACHINES ${DESTDIR}${DOCDIR}/MACHINES
${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${DOCDIR}/NEWS
${INSTALL_DATA} ${WRKSRC}/PLATFORM ${DESTDIR}${DOCDIR}/PLATFORM
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${DOCDIR}/README.md
${INSTALL_DATA} ${WRKSRC}/README.https ${DESTDIR}${DOCDIR}/README.https
#${INSTALL_DATA} ${WRKSRC}/README.solaris ${DESTDIR}${DOCDIR}/README.solaris
.include "../../mk/bsd.pkg.mk"