pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/argus DESTDIR support. Install the former content ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a79f77bcddce
branches:  trunk
changeset: 554224:a79f77bcddce
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Feb 10 17:47:59 2009 +0000

description:
DESTDIR support. Install the former content of /var to
${PREFIX}/etc/argus for now, so that it is included in the package.
Someone else can clean this up. Bump revision.

diffstat:

 net/argus/Makefile |  12 ++++++++++--
 net/argus/PLIST    |  26 +++++++++++++++++++++++++-
 2 files changed, 35 insertions(+), 3 deletions(-)

diffs (78 lines):

diff -r f1d887dede7a -r a79f77bcddce net/argus/Makefile
--- a/net/argus/Makefile        Tue Feb 10 17:33:52 2009 +0000
+++ b/net/argus/Makefile        Tue Feb 10 17:47:59 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2007/03/18 18:59:05 adam Exp $
+# $NetBSD: Makefile,v 1.13 2009/02/10 17:47:59 joerg Exp $
 
 DISTNAME=      argus-3.4
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  http://www.tcp4me.com/code/argus-archive/
 EXTRACT_SUFX=  .tgz
@@ -9,6 +10,8 @@
 HOMEPAGE=      http://argus.tcp4me.com/
 COMMENT=       System and Network Monitoring Application
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      fping>=2.4b2:../../net/fping
 DEPENDS+=      p5-GD>=2.11:../../graphics/p5-GD
 DEPENDS+=      p5-Net-SSLeay-[0-9]*:../../security/p5-Net-SSLeay
@@ -22,12 +25,17 @@
 CONFIGURE_ARGS+=       --bin_dir ${PREFIX}/bin
 CONFIGURE_ARGS+=       --sbin_dir ${PREFIX}/sbin
 CONFIGURE_ARGS+=       --lib_dir ${PREFIX}/lib/argus
-CONFIGURE_ARGS+=       --data_dir ${VARBASE}/argus
+CONFIGURE_ARGS+=       --data_dir ${PREFIX}/etc/argus
 CONFIGURE_ENV+=                PERL=${TOOLS_PERL5:Q}
 
 REPLACE_PERL+=         ${WRKSRC}/built/argus-config
 
 RCD_SCRIPTS=           argusd
 
+INSTALL_MAKE_FLAGS+=   INSTALL_BIN=${DESTDIR}${PREFIX}/bin \
+                       INSTALL_SBIN=${DESTDIR}${PREFIX}/sbin \
+                       INSTALL_LIB=${DESTDIR}${PREFIX}/lib/argus \
+                       INSTALL_DATA=${DESTDIR}${PREFIX}/etc/argus
+
 .include "options.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f1d887dede7a -r a79f77bcddce net/argus/PLIST
--- a/net/argus/PLIST   Tue Feb 10 17:33:52 2009 +0000
+++ b/net/argus/PLIST   Tue Feb 10 17:47:59 2009 +0000
@@ -1,5 +1,15 @@
-@comment $NetBSD: PLIST,v 1.3 2007/03/18 18:45:14 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2009/02/10 17:47:59 joerg Exp $
 bin/argus-config
+etc/argus/config.example
+etc/argus/locale/de_DE
+etc/argus/locale/el_gr
+etc/argus/locale/eubonics
+etc/argus/locale/piglatin
+etc/argus/locale/sp_ar
+etc/argus/locale/template
+etc/argus/log
+etc/argus/notno
+etc/argus/users.example
 lib/argus/Alias.pm
 lib/argus/Argus/Agent.pm
 lib/argus/Argus/Asterisk.pm
@@ -72,3 +82,17 @@
 @dirrm lib/argus/Argus/RPC
 @dirrm lib/argus/Argus
 @dirrm lib/argus
+@exec ${MKDIR} %D/etc/argus/stats
+@dirrm etc/argus/stats
+@exec ${MKDIR} %D/etc/argus/perl
+@dirrm etc/argus/perl
+@exec ${MKDIR} %D/etc/argus/notify
+@dirrm etc/argus/notify
+@dirrm etc/argus/locale
+@exec ${MKDIR} %D/etc/argus/html
+@dirrm etc/argus/html
+@exec ${MKDIR} %D/etc/argus/gdata
+@dirrm etc/argus/gdata
+@exec ${MKDIR} %D/etc/argus/gcache
+@dirrm etc/argus/gcache
+@dirrm etc/argus



Home | Main Index | Thread Index | Old Index