pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/spamd Use INSTALLATION_DIRS to pre-create needed ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ec432816b617
branches:  trunk
changeset: 508257:ec432816b617
user:      reed <reed%pkgsrc.org@localhost>
date:      Thu Feb 16 21:39:05 2006 +0000

description:
Use INSTALLATION_DIRS to pre-create needed directories.

Honor PKGMANDIR.

diffstat:

 mail/spamd/Makefile |  26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diffs (46 lines):

diff -r 9b960825aa68 -r ec432816b617 mail/spamd/Makefile
--- a/mail/spamd/Makefile       Thu Feb 16 21:31:22 2006 +0000
+++ b/mail/spamd/Makefile       Thu Feb 16 21:39:05 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/12/29 06:21:53 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2006/02/16 21:39:05 reed Exp $
 
 DISTNAME=              spamd-20050726
 CATEGORIES=            mail
@@ -28,23 +28,25 @@
 SUBST_SED.fix=         -e 's,/etc/spamd.conf,${PKG_SYSCONFDIR}/spamd.conf,g'
 SUBST_MESSAGE.fix=     "Fixing configuration paths."
 
+INSTALLATION_DIRS+=    libexec sbin ${PKGMANDIR}/cat5 ${PKGMANDIR}/man5
+INSTALLATION_DIRS+=    ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8 share/examples/spamd
+
 do-install:
-       ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.5 ${PREFIX}/man/man5
-       ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.cat5 ${PREFIX}/man/cat5/spamd.conf.0
-       ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 ${PREFIX}/man/man8
-       ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.cat8 ${PREFIX}/man/cat8/spamd.0
-       ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${PREFIX}/man/man8
-       ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.cat8 ${PREFIX}/man/cat8/spamd-setup.0
-       ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${PREFIX}/man/man8
-       ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.cat8 ${PREFIX}/man/cat8/spamdb.0
-       ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${PREFIX}/man/man8
-       ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.cat8 ${PREFIX}/man/cat8/spamlogd.0
+       ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.5 ${PREFIX}/${PKGMANDIR}/man5
+       ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.cat5 ${PREFIX}/${PKGMANDIR}/cat5/spamd.conf.0
+       ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 ${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.cat8 ${PREFIX}/${PKGMANDIR}/cat8/spamd.0
+       ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.cat8 ${PREFIX}/${PKGMANDIR}/cat8/spamd-setup.0
+       ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.cat8 ${PREFIX}/${PKGMANDIR}/cat8/spamdb.0
+       ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.cat8 ${PREFIX}/${PKGMANDIR}/cat8/spamlogd.0
 
        ${INSTALL_PROGRAM} ${WRKSRC}/spamd-setup/spamd-setup ${PREFIX}/libexec
        ${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${PREFIX}/libexec
        ${INSTALL_PROGRAM} ${WRKSRC}/spamdb/spamdb ${PREFIX}/sbin
        ${INSTALL_PROGRAM} ${WRKSRC}/spamlogd/spamlogd ${PREFIX}/libexec
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/spamd
        ${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${PREFIX}/share/examples/spamd
 
 .include "../../security/pflkm/buildlink3.mk"



Home | Main Index | Thread Index | Old Index