aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--polish/webalizer2/Makefile1
-rw-r--r--portuguese/webalizer-pt_BR/Makefile1
-rw-r--r--portuguese/webalizer-pt_PT/Makefile1
-rw-r--r--ukrainian/webalizer/Makefile1
-rw-r--r--www/webalizer/Makefile39
-rw-r--r--www/webalizer/pkg-plist5
6 files changed, 20 insertions, 28 deletions
diff --git a/polish/webalizer2/Makefile b/polish/webalizer2/Makefile
index 66f6768c26f6..288412539b28 100644
--- a/polish/webalizer2/Makefile
+++ b/polish/webalizer2/Makefile
@@ -8,7 +8,6 @@ MAINTAINER= wtp@bsdguru.org
MASTERDIR?= ${.CURDIR}/../../www/webalizer
WEBALIZER_LANG= polish
-NO_STAGE= yes
.if exists(${.CURDIR}/Makefile.local)
.include "${.CURDIR}/Makefile.local"
.endif
diff --git a/portuguese/webalizer-pt_BR/Makefile b/portuguese/webalizer-pt_BR/Makefile
index 47d516619268..953289300a25 100644
--- a/portuguese/webalizer-pt_BR/Makefile
+++ b/portuguese/webalizer-pt_BR/Makefile
@@ -8,7 +8,6 @@ MAINTAINER= ports@FreeBSD.org
MASTERDIR?= ${.CURDIR}/../../www/webalizer
WEBALIZER_LANG= portuguese_brazil
-NO_STAGE= yes
.if exists(${.CURDIR}/Makefile.local)
.include "${.CURDIR}/Makefile.local"
.endif
diff --git a/portuguese/webalizer-pt_PT/Makefile b/portuguese/webalizer-pt_PT/Makefile
index 66885e933043..fba2f6227691 100644
--- a/portuguese/webalizer-pt_PT/Makefile
+++ b/portuguese/webalizer-pt_PT/Makefile
@@ -8,7 +8,6 @@ MAINTAINER= ports@FreeBSD.org
MASTERDIR?= ${.CURDIR}/../../www/webalizer
WEBALIZER_LANG= portuguese
-NO_STAGE= yes
.if exists(${.CURDIR}/Makefile.local)
.include "${.CURDIR}/Makefile.local"
.endif
diff --git a/ukrainian/webalizer/Makefile b/ukrainian/webalizer/Makefile
index 4038d33131aa..eee462c8a7c9 100644
--- a/ukrainian/webalizer/Makefile
+++ b/ukrainian/webalizer/Makefile
@@ -10,5 +10,4 @@ LIB_DEPENDS= gd:${PORTSDIR}/ukrainian/gd
WEBALIZER_LANG= ukrainian
-NO_STAGE= yes
.include "${MASTERDIR}/Makefile"
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile
index b62ef11152e7..1dc74dfd55b9 100644
--- a/www/webalizer/Makefile
+++ b/www/webalizer/Makefile
@@ -23,7 +23,6 @@ EXAMPLESDIR?= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
GD_PORT?= graphics/gd
CONFLICTS= geolizer-2*
-NO_STAGE= yes
.if defined(BATCH)
# no cosmetique spaces allowed
@@ -51,11 +50,11 @@ DISTFILES+= webalizer-geodb-20130801.tgz:geodb
# slave ports override with languages specific gd
.if !defined(LIB_DEPENDS)
-LIB_DEPENDS= gd:${PORTSDIR}/${GD_PORT}
+LIB_DEPENDS= libgd.so:${PORTSDIR}/${GD_PORT}
.endif
.if ${PORT_OPTIONS:MGEOIP}
-LIB_DEPENDS+= GeoIP:${PORTSDIR}/net/GeoIP
+LIB_DEPENDS+= libGeoIP.so:${PORTSDIR}/net/GeoIP
.endif
.if ${PORT_OPTIONS:MGEODB}
@@ -104,7 +103,7 @@ CFLAGS+= -Wall
MAN1= ${PKGNAMEPREFIX}webalizer.1 ${PKGNAMEPREFIX}wcmgr.1
DOC1= CHANGES Copyright INSTALL \
README README.FIRST DNS.README country-codes.txt
-DOC2= INSTALL GeoIP.README
+EXAMPLES1= msfree.png sample.conf webalizer.png
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src$//}
PLIST_SUB+= PKGNAMEPREFIX=${PKGNAMEPREFIX}
SUPP_LANG= albanian arabic catalan chinese croatian czech danish dutch \
@@ -170,36 +169,32 @@ pre-configure:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
- ${PREFIX}/bin/${PKGNAMEPREFIX}webalizer
+ ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}webalizer
${INSTALL_PROGRAM} ${WRKSRC}/wcmgr \
- ${PREFIX}/bin/${PKGNAMEPREFIX}wcmgr
+ ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}wcmgr
${LN} -sf ${PKGNAMEPREFIX}webalizer \
- ${PREFIX}/bin/${PKGNAMEPREFIX}webazolver
+ ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}webazolver
${INSTALL_DATA} ${WRKSRC}/sample.conf \
- ${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ;
+ ${STAGEDIR}${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ;
post-install:
.for i in ${MAN1}
- ${INSTALL_MAN} ${WRKSRC}/${i:S/^${PKGNAMEPREFIX}//} ${PREFIX}/man/man1/${i}
+ ${INSTALL_MAN} ${WRKSRC}/${i:S/^${PKGNAMEPREFIX}//} ${STAGEDIR}${PREFIX}/man/man1/${i}
.endfor
.if ${PORT_OPTIONS:MGEODB} || ${PORT_OPTIONS:MGEOIP}
- ${MKDIR} ${PREFIX}/share/geolizer
- @${INSTALL_DATA} ${WRKDIR}/flags/* ${PREFIX}/share/geolizer/
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/geolizer
+ ${INSTALL_DATA} ${WRKDIR}/flags/* ${STAGEDIR}${PREFIX}/share/geolizer/
.endif
.if ${PORT_OPTIONS:MGEODB}
- @${INSTALL_DATA} ${WRKDIR}/GeoDB.dat ${PREFIX}/share/geolizer/
+ ${INSTALL_DATA} ${WRKDIR}/GeoDB.dat ${STAGEDIR}${PREFIX}/share/geolizer/
.endif
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for i in ${DOC1}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
-.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC1:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
-.for i in msfree.png sample.conf webalizer.png
- @${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}/${i}
-.endfor
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${EXAMPLES1:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}/
.endif
.include <bsd.port.mk>
diff --git a/www/webalizer/pkg-plist b/www/webalizer/pkg-plist
index 86f02cb284de..b1cc44511df0 100644
--- a/www/webalizer/pkg-plist
+++ b/www/webalizer/pkg-plist
@@ -1,8 +1,9 @@
bin/%%PKGNAMEPREFIX%%webalizer
+bin/%%PKGNAMEPREFIX%%webazolver
bin/%%PKGNAMEPREFIX%%wcmgr
-@exec ln -f %B/%%PKGNAMEPREFIX%%webalizer %B/%%PKGNAMEPREFIX%%webazolver
-@unexec rm -f %B/%%PKGNAMEPREFIX%%webazolver
etc/%%PKGNAMEPREFIX%%webalizer.conf-dist
+man/man1/%%PKGNAMEPREFIX%%webalizer.1.gz
+man/man1/%%PKGNAMEPREFIX%%wcmgr.1.gz
%%WITH_GEODB%%share/geolizer/GeoDB.dat
%%WITH_GEOIP%%share/geolizer/README
%%WITH_GEOIP%%share/geolizer/a1.png