2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.38 2006/02/05 23:11:29 joerg Exp $
|
1998-11-07 14:22:53 +01:00
|
|
|
#
|
|
|
|
|
2003-03-22 04:11:29 +01:00
|
|
|
DISTNAME= webalizer-2.01-10-src
|
|
|
|
PKGNAME= webalizer-2.1.10
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 5
|
1998-11-07 14:22:53 +01:00
|
|
|
CATEGORIES= www
|
2002-02-24 15:55:59 +01:00
|
|
|
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
|
1999-08-26 22:25:43 +02:00
|
|
|
http://gd.tuwien.ac.at/infosys/logeval/webalizer/
|
2000-10-18 18:41:23 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
1998-11-07 14:22:53 +01:00
|
|
|
HOMEPAGE= http://www.mrunix.net/webalizer/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= Web server log file analysis program
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2004-04-09 02:39:20 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2001-12-01 16:08:02 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR:Q}
|
2001-12-01 16:08:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-dns
|
2002-08-25 23:50:52 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_GDLIB=${BUILDLINK_PREFIX.gd}/include
|
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
|
2005-10-23 21:50:55 +02: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
|
|
|
|
2005-10-23 21:50:55 +02:00
|
|
|
PLIST_ADD= ${WRKSRC}/.PLIST_ADD
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST ${PLIST_ADD}
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin man/man1 share/examples ${_DOC_SUBDIR}
|
|
|
|
|
|
|
|
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
|
|
|
|
PKG_SUPPORTED_OPTIONS= geoip
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mgeoip)
|
|
|
|
# we want the patch archive extracted...
|
|
|
|
_GEOPATCH= geolizer_2.01-10-patch
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
DISTFILES+= ${_GEOPATCH}.20050520.tar.gz
|
|
|
|
|
|
|
|
# ... _and_ the patch applied automatically
|
|
|
|
PATCHFILES= ${_GEOPATCH}.20050520.tar.gz
|
|
|
|
PATCH_SITES= http://sysd.org/proj/
|
|
|
|
PATCH_DIST_CAT= ${GZCAT} $$patchfile | ${TAR} -Oxf - "geolizer*/geolizer.patch"
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
CONFIGURE_ARGS+= --enable-geoip
|
|
|
|
|
|
|
|
_DOCFILES+= GeoIP.README GeoIP.INSTALL
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR}/${_GEOPATCH} && \
|
|
|
|
${MV} INSTALL ${WRKSRC}/GeoIP.INSTALL &&\
|
|
|
|
${MV} GeoIP.README ${WRKSRC}
|
|
|
|
|
|
|
|
. include "../../net/GeoIP/buildlink3.mk"
|
|
|
|
.endif # option geoip
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${TEST} -r ${PLIST_ADD} && ${RM} ${PLIST_ADD} ; :
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
for f in ${_DOCFILES}; do \
|
|
|
|
${INSTALL_DATA} $$f ${_DOCDIR}/$$f; \
|
|
|
|
${ECHO} "${_DOC_SUBDIR}/$$f" >> ${PLIST_ADD}; \
|
|
|
|
done;
|
|
|
|
@${ECHO} "@dirrm ${_DOC_SUBDIR}" >> ${PLIST_ADD};
|
2004-04-09 02:39:20 +02:00
|
|
|
|
2004-12-28 09:02:33 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
1998-11-07 14:22:53 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|