aboutsummaryrefslogtreecommitdiff
path: root/www/webalizer
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-11-29 04:19:56 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-11-29 04:19:56 +0000
commit846770ec3213ec48b9fa5fb704f67b5adb5710ae (patch)
tree5d4e725722c5bcea8f28f6a8bab5c1e57fa26ef3 /www/webalizer
parent6e40af01ae4ec3a7a5b9284186d479e688907d8e (diff)
downloadports-846770ec3213ec48b9fa5fb704f67b5adb5710ae.tar.gz
ports-846770ec3213ec48b9fa5fb704f67b5adb5710ae.zip
Notes
Diffstat (limited to 'www/webalizer')
-rw-r--r--www/webalizer/Makefile39
-rw-r--r--www/webalizer/pkg-plist5
2 files changed, 20 insertions, 24 deletions
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