summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorr <morr@pkgsrc.org>2011-04-08 22:38:08 +0000
committermorr <morr@pkgsrc.org>2011-04-08 22:38:08 +0000
commit00b30f0d80ec82bbd5fe639be5f1580098c91b46 (patch)
treedb0f8cdf5e19cb6a468ff4fd408d20c41611b724
parent09b0e8361a4b5f163d3f1e7d9df13832f177b987 (diff)
downloadpkgsrc-00b30f0d80ec82bbd5fe639be5f1580098c91b46.tar.gz
Add DESTDIR support
-rw-r--r--net/nagios-imagepak-base/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/nagios-imagepak-base/Makefile b/net/nagios-imagepak-base/Makefile
index 86abd215dca..2ba6e091951 100644
--- a/net/nagios-imagepak-base/Makefile
+++ b/net/nagios-imagepak-base/Makefile
@@ -1,20 +1,23 @@
-# $NetBSD: Makefile,v 1.3 2007/02/22 19:26:55 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2011/04/08 22:38:08 morr Exp $
#
-PKGNAME= nagios-imagepak-base-20030219
DISTNAME= imagepak-base
+PKGNAME= nagios-imagepak-base-20030219
CATEGORIES= net sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nagios.org/
-COMMENT= Additioannal icons for nagios
+COMMENT= Additional icons for nagios
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= nagios-base>=2.0:../../net/nagios-base
WRKSRC= ${WRKDIR}/base
-IMAGE_DIR= ${PREFIX}/share/nagios/images/logos
+IMAGE_DIR= ${DESTDIR}${PREFIX}/share/nagios/images/logos
.include "../../mk/bsd.prefs.mk"
@@ -22,6 +25,7 @@ do-build:
do-install:
@@cd ${WRKSRC} && \
+ ${INSTALL_DATA_DIR} ${IMAGE_DIR} && \
for i in aix.gd2 aix.gif aix.jpg aix.png amiga.gd2 amiga.gif \
amiga.jpg amiga.png apple.gd2 apple.gif apple.jpg apple.png \
beos.gd2 beos.gif beos.jpg beos.png caldera.gd2 caldera.gif \