1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- use STAGEDIR

This commit is contained in:
Dirk Meyer 2013-11-29 04:19:56 +00:00
parent 6e40af01ae
commit 846770ec32
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335144
6 changed files with 20 additions and 28 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -10,5 +10,4 @@ LIB_DEPENDS= gd:${PORTSDIR}/ukrainian/gd
WEBALIZER_LANG= ukrainian
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -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>

View File

@ -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