2018-04-21 15:38:04 +02:00
|
|
|
# $NetBSD: Makefile,v 1.69 2018/04/21 13:38:07 wiz Exp $
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2010-06-02 15:13:14 +02:00
|
|
|
DISTNAME= webalizer-2.21-02-src
|
|
|
|
PKGNAME= webalizer-2.21.2
|
2018-03-12 12:15:24 +01:00
|
|
|
PKGREVISION= 15
|
1998-11-07 14:22:53 +01:00
|
|
|
CATEGORIES= www
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/
|
2000-10-18 18:41:23 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2009-01-09 14:17:04 +01:00
|
|
|
HOMEPAGE= http://www.webalizer.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= Web server log file analysis program
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2010-06-02 15:13:14 +02:00
|
|
|
BDB_ACCEPTED= db4 db5
|
|
|
|
GNU_CONFIGURE= yes
|
2009-01-09 14:17:04 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2001-12-01 16:08:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-dns
|
1999-08-26 22:25:43 +02:00
|
|
|
|
2001-12-01 16:08:02 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples
|
|
|
|
CONF_FILES= ${EGDIR}/webalizer.conf.sample ${PKG_SYSCONFDIR}/webalizer.conf
|
2009-01-09 14:17:04 +01:00
|
|
|
DOC_SUBDIR= share/doc/webalizer
|
|
|
|
DOCDIR= ${PREFIX}/${DOC_SUBDIR}
|
|
|
|
DOCFILES= CHANGES Copyright DNS.README README README.FIRST
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2009-01-09 14:17:04 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples ${DOC_SUBDIR}
|
2005-10-23 21:50:55 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= webalizer
|
|
|
|
SUBST_STAGE.webalizer= post-build
|
|
|
|
SUBST_FILES.webalizer= sample.conf webalizer.1
|
|
|
|
SUBST_SED.webalizer= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.webalizer
|
2009-01-09 14:17:04 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= bzip2 geoip
|
2005-10-23 21:50:55 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2009-01-09 14:17:04 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mbzip2)
|
|
|
|
. include "../../archivers/bzip2/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-bz2
|
|
|
|
.endif # option bzip2
|
2005-10-23 21:50:55 +02:00
|
|
|
|
2009-01-09 14:17:04 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mgeoip)
|
2005-10-23 21:50:55 +02:00
|
|
|
. include "../../net/GeoIP/buildlink3.mk"
|
2009-01-09 14:17:04 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-geoip
|
|
|
|
CONFIGURE_ARGS+= --with-geodb=${BUILDLINK_PREFIX.GeoIP}/share/GeoIP
|
2005-10-23 21:50:55 +02:00
|
|
|
.endif # option geoip
|
|
|
|
|
|
|
|
post-install:
|
2009-01-09 14:17:04 +01:00
|
|
|
.for f in ${DOCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}/${f}
|
|
|
|
.endfor
|
2004-04-09 02:39:20 +02:00
|
|
|
|
2010-06-02 15:13:14 +02:00
|
|
|
BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
|
2009-01-09 14:17:04 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2004-12-28 09:02:33 +01:00
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
2010-06-02 15:13:14 +02:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
1998-11-07 14:22:53 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|