summaryrefslogtreecommitdiffstats
path: root/german/webalizer2/Makefile
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-05-29 20:01:19 +0000
committerdinoex <dinoex@FreeBSD.org>2001-05-29 20:01:19 +0000
commit487ab060d0c3fcda4c502dc054f6c4bd7b089808 (patch)
treedf379d9151e10abea84658f8d742acfcd73adf4e /german/webalizer2/Makefile
parent77136f1c45e73339a9a6f7841b4667fc9408cb07 (diff)
downloadFreeBSD-ports-487ab060d0c3fcda4c502dc054f6c4bd7b089808.zip
FreeBSD-ports-487ab060d0c3fcda4c502dc054f6c4bd7b089808.tar.gz
- Make this PORTS a slave port of www/webalizer
- Allow Makefile.local in the slave dir.
Diffstat (limited to 'german/webalizer2/Makefile')
-rw-r--r--german/webalizer2/Makefile67
1 files changed, 6 insertions, 61 deletions
diff --git a/german/webalizer2/Makefile b/german/webalizer2/Makefile
index 0da9c39..580dc90 100644
--- a/german/webalizer2/Makefile
+++ b/german/webalizer2/Makefile
@@ -4,68 +4,13 @@
#
# $FreeBSD$
-PORTNAME= webalizer
-PORTVERSION= 2.1.6
-PORTREVISION= 2
-CATEGORIES= german www
-MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
- ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
PKGNAMEPREFIX?= de-
-DISTNAME= ${PORTNAME}-2.01-06-src
+MASTERDIR?= ${.CURDIR}/../../www/webalizer
+CATEGORIES= german
+WEBALIZER_LANG= german
-MAINTAINER= dirk.meyer@dinoex.sub.org
-
-LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
-
-USE_BZIP2= yes
-GNU_CONFIGURE= yes
-WEBALIZER_LANG?= german
-
-.include <bsd.port.pre.mk>
-
-CONFIGURE_ARGS+= --enable-dns \
- --with-etcdir=${PREFIX}/etc \
- --with-gdlib=${PREFIX}/lib \
- --with-gd=${PREFIX}/include/gd \
- --with-language=${WEBALIZER_LANG}
-CONFIGURE_ENV+= LDFLAGS="-L${PREFIX}/lib"
-MAKE_ARGS+= CFLAGS="${CFLAGS}"
-MAN1= ${PKGNAMEPREFIX}webalizer.1
-DOC1= CHANGES COPYING Copyright INSTALL \
- README README.FIRST DNS.README country-codes.txt
-WRKSRC= ${WRKDIR}/${DISTNAME:S/-src$//}
-PLIST_SUB+= PKGNAMEPREFIX=${PKGNAMEPREFIX}
-
-pre-configure:
- @${PERL5} -pi -e "s=/etc=${PREFIX}/etc=" ${WRKSRC}/webalizer.1
- @${PERL5} -pi -e "s=webalizer.conf=${PKGNAMEPREFIX}webalizer.conf=" \
- ${WRKSRC}/webalizer.c
-
-do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
- ${PREFIX}/bin/${PKGNAMEPREFIX}webalizer
- ${LN} -sf ${PKGNAMEPREFIX}webalizer \
- ${PREFIX}/bin/${PKGNAMEPREFIX}webazolver
-
-post-install:
-.for i in ${MAN1}
- ${INSTALL_MAN} ${WRKSRC}/webalizer.1 ${PREFIX}/man/man1/${i}
-.endfor
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/${PKGNAMEPREFIX}webalizer
-.for i in ${DOC1}
- @${INSTALL_DATA} ${WRKSRC}/${i} \
- ${PREFIX}/share/doc/${PKGNAMEPREFIX}webalizer/${i}
-.endfor
+.if exists(${.CURDIR}/Makefile.local)
+.include "${.CURDIR}/Makefile.local"
.endif
- ${MKDIR} ${PREFIX}/share/examples/${PKGNAMEPREFIX}webalizer
-.for i in msfree.png sample.conf webalizer.png
- @${INSTALL_DATA} ${WRKSRC}/${i} \
- ${PREFIX}/share/examples/${PKGNAMEPREFIX}webalizer/${i}
-.endfor
- @if [ ! -f ${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ]; then \
- ${INSTALL_DATA} ${WRKSRC}/sample.conf \
- ${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ; \
- fi
-.include <bsd.port.post.mk>
+.include "${MASTERDIR}/Makefile"
OpenPOWER on IntegriCloud