diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2007-03-24 14:04:36 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-03-24 14:04:36 +0000 |
commit | 47649f7033a40f88bdbb902b00bb10fde1c82e2a (patch) | |
tree | c9128f0ea50cfa1c45671f3e7a79326f4cf05185 /www/drraw | |
parent | 9088b943cdeebf10b988b4cdfd82808eb70aa550 (diff) | |
download | ports-47649f7033a40f88bdbb902b00bb10fde1c82e2a.tar.gz ports-47649f7033a40f88bdbb902b00bb10fde1c82e2a.zip |
Notes
Diffstat (limited to 'www/drraw')
-rw-r--r-- | www/drraw/Makefile | 11 | ||||
-rw-r--r-- | www/drraw/pkg-plist | 20 |
2 files changed, 15 insertions, 16 deletions
diff --git a/www/drraw/Makefile b/www/drraw/Makefile index 02d2703559a0..921957b76240 100644 --- a/www/drraw/Makefile +++ b/www/drraw/Makefile @@ -22,13 +22,12 @@ NO_BUILD= yes PORTDOCS= CHANGES INSTALL LICENSE README.EVENTS WISHLIST -WWWDIR?= www CONFDIR?= etc DATADIRS?= "/var/db/rrdtool" => "[Label1] " SAVEDDIR?= /var/db/${PORTNAME}/saved TMPDIR?= /var/db/${PORTNAME}/tmp -PLIST_SUB+= WWWDIR=${WWWDIR} CONFDIR=${CONFDIR} +PLIST_SUB+= CONFDIR=${CONFDIR} post-patch: @${REINPLACE_CMD} -e 's|%%CONFDIR%%|${PREFIX}/${CONFDIR}|g' ${WRKSRC}/drraw.cgi @@ -43,12 +42,12 @@ post-patch: do-install: ${INSTALL_DATA} ${WRKSRC}/drraw.conf-dist ${PREFIX}/${CONFDIR} - ${MKDIR} ${PREFIX}/${WWWDIR}/${PORTNAME} - ${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${PREFIX}/${WWWDIR}/${PORTNAME} + ${MKDIR} ${WWWDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${WWWDIR} - ${MKDIR} ${PREFIX}/${WWWDIR}/${PORTNAME}/icons + ${MKDIR} ${WWWDIR}/icons .for theFile in bomb.gif folder.gif folder.open.gif generic.gif link.gif text.gif unknown.gif - ${INSTALL_DATA} ${WRKSRC}/icons/${theFile} ${PREFIX}/${WWWDIR}/${PORTNAME}/icons + ${INSTALL_DATA} ${WRKSRC}/icons/${theFile} ${WWWDIR}/icons .endfor .if !defined(NOPORTDOCS) diff --git a/www/drraw/pkg-plist b/www/drraw/pkg-plist index 87b9c46633d0..59ef376044ed 100644 --- a/www/drraw/pkg-plist +++ b/www/drraw/pkg-plist @@ -2,13 +2,13 @@ @unexec if cmp -s %D/%%CONFDIR%%/drraw.conf-dist %D/%%CONFDIR%%/drraw.conf; then rm -f %D/%%CONFDIR%%/drraw.conf; fi %%CONFDIR%%/drraw.conf-dist @exec if [ ! -f %D/%%CONFDIR%%/drraw.conf ]; then cp -p %D/%F %B/drraw.conf; fi -%%WWWDIR%%/drraw/drraw.cgi -%%WWWDIR%%/drraw/icons/bomb.gif -%%WWWDIR%%/drraw/icons/folder.gif -%%WWWDIR%%/drraw/icons/folder.open.gif -%%WWWDIR%%/drraw/icons/generic.gif -%%WWWDIR%%/drraw/icons/link.gif -%%WWWDIR%%/drraw/icons/text.gif -%%WWWDIR%%/drraw/icons/unknown.gif -@dirrm %%WWWDIR%%/drraw/icons -@dirrm %%WWWDIR%%/drraw +%%WWWDIR%%/drraw.cgi +%%WWWDIR%%/icons/bomb.gif +%%WWWDIR%%/icons/folder.gif +%%WWWDIR%%/icons/folder.open.gif +%%WWWDIR%%/icons/generic.gif +%%WWWDIR%%/icons/link.gif +%%WWWDIR%%/icons/text.gif +%%WWWDIR%%/icons/unknown.gif +@dirrm %%WWWDIR%%/icons +@dirrm %%WWWDIR%% |