mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Attempt to made it as webalizer's slave port was too hackish, make it
independent port instead.
This commit is contained in:
parent
22e94c25e6
commit
16e3c32ed6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114528
@ -5,38 +5,79 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
CONFLICTS= webalizer-2*
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../webalizer
|
||||
|
||||
PATCH_SITES+= http://sysd.org/proj/
|
||||
PATCHFILES+= geolizer_2.01-10-patch.20040216.tar.bz2
|
||||
PATCH_DIST_STRIP= -p1
|
||||
PATCHDIR= ${.CURDIR}/files
|
||||
MD5_FILE= ${.CURDIR}/distinfo
|
||||
DESCR= ${.CURDIR}/pkg-descr
|
||||
DOCSDIR= ${PREFIX}/share/doc/webalizer
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/webalizer
|
||||
|
||||
WEBALIZER_LANG=english
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
CONFIGURE_ARGS+= --enable-geoip \
|
||||
--with-geoip-lib=${LOCALBASE} \
|
||||
--with-geoip-inc=${LOCALBASE}
|
||||
|
||||
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
||||
GeoIP.4:${PORTSDIR}/net/GeoIP
|
||||
PORTNAME= geolizer
|
||||
PORTVERSION= 2.1.10
|
||||
CATEGORIES+= www
|
||||
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/:main \
|
||||
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/:main \
|
||||
http://sysd.org/proj/:geo
|
||||
DISTNAME= webalizer-2.01-10-src
|
||||
DISTFILES= ${DISTNAME}.tar.bz2:main \
|
||||
geolizer_2.01-10-patch.20040216.tar.bz2:geo
|
||||
EXTRA_PATCHES= ${WRKDIR}/geolizer_2.01-10-patch/geolizer.patch
|
||||
PATCH_STRIP= -p1
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
||||
# Overwrite section, can't be placed before
|
||||
|
||||
PORTNAME= geolizer
|
||||
PORTREVISION= 0
|
||||
DISTNAME= webalizer-2.01-10-src
|
||||
|
||||
COMMENT= A web server log file analysis program, using GeoIP library
|
||||
|
||||
LIB_DEPENDS= gd.4:${PORTSDIR}/${GD_PORT} \
|
||||
GeoIP.4:${PORTSDIR}/net/GeoIP
|
||||
|
||||
USE_BZIP2= yes
|
||||
GNU_CONFIGURE= yes
|
||||
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}webalizer
|
||||
EXAMPLESDIR?= ${PREFIX}/share/examples/${PKGNAMEPREFIX}webalizer
|
||||
GD_PORT?= graphics/gd
|
||||
|
||||
CONFLICTS= webalizer-2*
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
CONFIGURE_ARGS+= --enable-dns \
|
||||
--with-etcdir=${LOCALBASE}/etc \
|
||||
--with-gdlib=${LOCALBASE}/lib \
|
||||
--with-gd=${LOCALBASE}/include \
|
||||
--enable-geoip \
|
||||
--with-geoip-lib=${LOCALBASE}/lib \
|
||||
--with-geoip-inc=${LOCALBASE}/include \
|
||||
--with-language=english
|
||||
CONFIGURE_ENV+= LDFLAGS="-L${PREFIX}/lib"
|
||||
CFLAGS+= -DLINKLIST_MAX_STRING=256
|
||||
MAN1= ${PKGNAMEPREFIX}webalizer.1
|
||||
DOC1= CHANGES Copyright INSTALL \
|
||||
README README.FIRST DNS.README country-codes.txt
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src$//}
|
||||
PLIST_SUB+= PKGNAMEPREFIX=${PKGNAMEPREFIX}
|
||||
|
||||
pre-configure:
|
||||
@${MV} ${WRKSRC}/webalizer.1 ${WRKSRC}/webalizer.1.sed
|
||||
${SED} -e "s=/etc=${PREFIX}/etc=" \
|
||||
${WRKSRC}/webalizer.1.sed > ${WRKSRC}/webalizer.1
|
||||
@${MV} ${WRKSRC}/webalizer.c ${WRKSRC}/webalizer.c.sed
|
||||
${SED} -e "s=webalizer.conf=${PKGNAMEPREFIX}webalizer.conf=" \
|
||||
${WRKSRC}/webalizer.c.sed > ${WRKSRC}/webalizer.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
|
||||
${PREFIX}/bin/${PKGNAMEPREFIX}webalizer
|
||||
${LN} -sf ${PKGNAMEPREFIX}webalizer \
|
||||
${PREFIX}/bin/${PKGNAMEPREFIX}webazolver
|
||||
${INSTALL_DATA} ${WRKSRC}/sample.conf \
|
||||
${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ;
|
||||
|
||||
post-install:
|
||||
.for i in ${MAN1}
|
||||
${INSTALL_MAN} ${WRKSRC}/webalizer.1 ${PREFIX}/man/man1/${i}
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in ${DOC1}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
||||
.endfor
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
.for i in msfree.png sample.conf webalizer.png
|
||||
@${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}/${i}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
16
www/geolizer/pkg-plist
Normal file
16
www/geolizer/pkg-plist
Normal file
@ -0,0 +1,16 @@
|
||||
bin/%%PKGNAMEPREFIX%%webalizer
|
||||
@exec ln -f %B/%%PKGNAMEPREFIX%%webalizer %B/%%PKGNAMEPREFIX%%webazolver
|
||||
@unexec rm -f %B/%%PKGNAMEPREFIX%%webazolver
|
||||
etc/%%PKGNAMEPREFIX%%webalizer.conf-dist
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Copyright
|
||||
%%PORTDOCS%%%%DOCSDIR%%/DNS.README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.FIRST
|
||||
%%PORTDOCS%%%%DOCSDIR%%/country-codes.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/msfree.png
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/sample.conf
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/webalizer.png
|
||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user