diff options
author | bouyer <bouyer@pkgsrc.org> | 2009-08-16 18:25:53 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2009-08-16 18:25:53 +0000 |
commit | d5700bc2c1bb13ef446004c0a291545e58ed80e8 (patch) | |
tree | 34f9ae646bc97e463c657387ce61682cee2c4dbf /net/ocsinventory-agent/Makefile | |
parent | 700edae2fe122b11668358a9b075d2aaf7597f2a (diff) | |
download | pkgsrc-d5700bc2c1bb13ef446004c0a291545e58ed80e8.tar.gz |
Import ocsinventory-agent 1.1.2 to pkgsrc.
Open Computer and Software Inventory Next Generation is an application
designed to help a network or system administrator keep track of the
computers configuration and software that are installed on the network.
Information about Hardware and Operating System are collected.
Diffstat (limited to 'net/ocsinventory-agent/Makefile')
-rw-r--r-- | net/ocsinventory-agent/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/net/ocsinventory-agent/Makefile b/net/ocsinventory-agent/Makefile new file mode 100644 index 00000000000..692a87e06d3 --- /dev/null +++ b/net/ocsinventory-agent/Makefile @@ -0,0 +1,76 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $ +# + +DISTNAME= OCSNG_UNIX_AGENT-1.02 +PKGNAME= ocsinventory-agent-1.0.2 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ocsinventory/} + +MAINTAINER= bouyer@NetBSD.org +HOMEPAGE= http://www.ocsinventory-ng.org/ +COMMENT= Keep track of the computers configuration and software + +PKG_SYSCONFSUBDIR= ocsinventory + +DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww +DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple +DEPENDS+= p5-Net-IP-[0-9]*:../../net/p5-Net-IP +DEPENDS+= p5-Proc-Daemon-[0-9]*:../../devel/p5-Proc-Daemon +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") +DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode +.endif + +WRKSRC= ${WRKDIR}/Ocsinventory-Agent-1.0.1 + +BUILD_DEFS+= VARBASE +AUTO_MKDIRS=yes + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../mk/bsd.prefs.mk" + +EGDIR= ${PREFIX}/share/examples/ocsinventory-agent +MAKE_DIRS_PERMS+= ${VARBASE}/db/ocsinventory ${ROOT_USER} ${ROOT_GROUP} 0700 +CONF_FILES+= ${EGDIR}/ocsinventory-agent.cfg ${PKG_SYSCONFDIR}/ocsinventory-agent.cfg +CONF_FILES+= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/modules.conf + +USE_TOOLS+= perl:run +REPLACE_PERL+= tools/macosx/ocsng_app-xcode/main.pl +REPLACE_PERL+= tools/macosx/scripts/create-darwin-perl-lib_fromCPAN.pl +REPLACE_PERL+= ocsinventory-agent +REPLACE_PERL+= postinst.pl + +SUBST_CLASSES+= sysconfdir path varbase apachevers +SUBST_STAGE.sysconfdir= post-patch +SUBST_FILES.sysconfdir= lib/Ocsinventory/Agent/Config.pm +SUBST_FILES.sysconfdir+= postinst.pl +SUBST_SED.sysconfdir= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' +SUBST_MESSAGE.sysconfdir= Fixing hardcoded install directory path. + +SUBST_STAGE.path= post-patch +SUBST_FILES.path= lib/Ocsinventory/Agent/Common.pm +SUBST_SED.path= -e "s|/usr/local/bin|${PREFIX}/bin|g" +SUBST_SED.path= -e "s|/usr/local/sbin|${PREFIX}/sbin|g" +SUBST_MESSAGE.path= Fixing hardcoded path. + +PERL5_PACKLIST= auto/Ocsinventory/Agent/.packlist + +pre-patch: + ${MKDIR} ${WRKSRC}/lib/Ocsinventory/Agent/Backend/OS/BSD/Pcictl + +post-build: + for file in ocsinventory-agent.cfg modules.conf; do \ + ${SED} -e 's,@VARBASE@,${VARBASE},g' \ + < ${FILESDIR}/$$file > ${WRKDIR}/$$file; \ + done + +post-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} + for file in ocsinventory-agent.cfg modules.conf; do \ + ${INSTALL_DATA} ${WRKDIR}/$$file ${DESTDIR}${EGDIR}; \ + done + cd ${DESTDIR}${PREFIX}/bin && \ + ${LN} -f -s ${PERL5_INSTALLVENDORBIN}/ocsinventory-agent . + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" |