diff options
author | pav <pav@FreeBSD.org> | 2007-03-24 22:04:36 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-03-24 22:04:36 +0800 |
commit | 3e32701b9f418b2a116f23f45273f81622a20834 (patch) | |
tree | 5e4faebb47590f6e64af256b4b2c207bb57fc0d6 /www/drraw | |
parent | 1b95307a29820e5b97fcc60a906b3ae93ea5a9f0 (diff) | |
download | freebsd-ports-gnome-3e32701b9f418b2a116f23f45273f81622a20834.tar.gz freebsd-ports-gnome-3e32701b9f418b2a116f23f45273f81622a20834.tar.zst freebsd-ports-gnome-3e32701b9f418b2a116f23f45273f81622a20834.zip |
- WWWDIR is now defined in bsd.ports.mk
PR: ports/105529
Submitted by: laszlof
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%% |