summaryrefslogtreecommitdiff
path: root/mail/sma/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/sma/Makefile
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/sma/Makefile')
-rw-r--r--mail/sma/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/mail/sma/Makefile b/mail/sma/Makefile
index dc6f1b9d5d6..bf7f542fa54 100644
--- a/mail/sma/Makefile
+++ b/mail/sma/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/10/16 23:49:01 tnn Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/04 17:57:19 jlam Exp $
DISTNAME= sma-1.4
CATEGORIES= mail
@@ -8,6 +8,8 @@ MAINTAINER= markus@core.de
HOMEPAGE= http://www.klake.org/sma/
COMMENT= Sendmail log analyser
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
NO_CONFIGURE= yes
@@ -22,12 +24,12 @@ CFLAGS+= -DUSE_REGEXP
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8
do-install:
- cd ${WRKSRC}; \
- ${INSTALL_PROGRAM} sma ${PREFIX}/bin; \
- ${INSTALL_MAN} docs/sma.8 ${PREFIX}/${PKGMANDIR}/man8; \
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sma; \
- ${INSTALL_DATA} README ${PREFIX}/share/doc/sma; \
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sma; \
- ${INSTALL_DATA} sma.conf ${PREFIX}/share/examples/sma
+ cd ${WRKSRC}; \
+ ${INSTALL_PROGRAM} sma ${DESTDIR}${PREFIX}/bin; \
+ ${INSTALL_MAN} docs/sma.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8;\
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/sma; \
+ ${INSTALL_DATA} README ${DESTDIR}${PREFIX}/share/doc/sma; \
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/sma; \
+ ${INSTALL_DATA} sma.conf ${DESTDIR}${PREFIX}/share/examples/sma
.include "../../mk/bsd.pkg.mk"