1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

Use options helpers
This commit is contained in:
Baptiste Daroussin 2014-04-04 14:02:13 +00:00
parent f7c1a7dd88
commit 9511bfa165
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350126
2 changed files with 48 additions and 79 deletions

View File

@ -41,87 +41,16 @@ PCIUTILS_DESC= Pciutils hardware information
USES= gmake perl5
USE_PERL5= configure
MAN1= fusioninventory-agent.1 \
fusioninventory-injector.1
MAN3= FusionInventory::Agent.3 \
FusionInventory::Agent::Config.3 \
FusionInventory::Agent::HTTP::Client.3 \
FusionInventory::Agent::HTTP::Client::Fusion.3 \
FusionInventory::Agent::HTTP::Client::OCS.3 \
FusionInventory::Agent::HTTP::Protocol::https.3 \
FusionInventory::Agent::HTTP::Server.3 \
FusionInventory::Agent::Logger.3 \
FusionInventory::Agent::Logger::Backend.3 \
FusionInventory::Agent::Logger::File.3 \
FusionInventory::Agent::Logger::Stderr.3 \
FusionInventory::Agent::Logger::Syslog.3 \
FusionInventory::Agent::Scheduler.3 \
FusionInventory::Agent::Storage.3 \
FusionInventory::Agent::Target.3 \
FusionInventory::Agent::Target::Local.3 \
FusionInventory::Agent::Target::Server.3 \
FusionInventory::Agent::Target::Stdout.3 \
FusionInventory::Agent::Task.3 \
FusionInventory::Agent::Task::Inventory.3 \
FusionInventory::Agent::Task::Inventory::Inventory.3 \
FusionInventory::Agent::Task::WakeOnLan.3 \
FusionInventory::Agent::Tools.3 \
FusionInventory::Agent::Tools::AIX.3 \
FusionInventory::Agent::Tools::Generic.3 \
FusionInventory::Agent::Tools::HPUX.3 \
FusionInventory::Agent::Tools::Hostname.3 \
FusionInventory::Agent::Tools::Linux.3 \
FusionInventory::Agent::Tools::MacOS.3 \
FusionInventory::Agent::Tools::Network.3 \
FusionInventory::Agent::Tools::Screen.3 \
FusionInventory::Agent::Tools::Solaris.3 \
FusionInventory::Agent::Tools::Unix.3 \
FusionInventory::Agent::Tools::Win32.3 \
FusionInventory::Agent::XML::Query.3 \
FusionInventory::Agent::XML::Query::Inventory.3 \
FusionInventory::Agent::XML::Query::Prolog.3 \
FusionInventory::Agent::XML::Response.3
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCUPS}
RUN_DEPENDS+= p5-Net-CUPS>=0.6:${PORTSDIR}/print/p5-Net-CUPS
.endif
.if ${PORT_OPTIONS:MHTTP}
RUN_DEPENDS+= p5-HTTP-Daemon>=0:${PORTSDIR}/www/p5-HTTP-Daemon
.endif
.if ${PORT_OPTIONS:MZLIB}
RUN_DEPENDS+= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib
.endif
.if ${PORT_OPTIONS:MSSL}
RUN_DEPENDS+= p5-Crypt-SSLeay>=0:${PORTSDIR}/security/p5-Crypt-SSLeay \
CUPS_RUN_DEPENDS= p5-Net-CUPS>=0.6:${PORTSDIR}/print/p5-Net-CUPS
HTTP_RUN_DEPENDS= p5-HTTP-Daemon>=0:${PORTSDIR}/www/p5-HTTP-Daemon
ZLIB_RUN_DEPENDS= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib
SSL_RUN_DEPENDS= p5-Crypt-SSLeay>=0:${PORTSDIR}/security/p5-Crypt-SSLeay \
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https
.endif
DMIDECODE_RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
PCIUTILS_RUN_DEPENDS+= lspci:${PORTSDIR}/sysutils/pciutils
MMAP_RUN_DEPENDS+= nmap:${PORTSDIR}/security/nmap
.if ${PORT_OPTIONS:MDMIDECODE}
RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode
.endif
.if ${PORT_OPTIONS:MPCIUTILS}
RUN_DEPENDS+= lspci:${PORTSDIR}/sysutils/pciutils
.endif
.if ${PORT_OPTIONS:MNMAP}
RUN_DEPENDS+= nmap:${PORTSDIR}/security/nmap
.endif
post-patch-script:
@${ECHO_MSG} -n ">> Removing unneeded patched files..."
post-patch:
@${FIND} ${WRKSRC} -type f \( -name '*.orig' \) -delete
@${ECHO_MSG} " [ DONE ]"
post-install:
@if [ ! -f ${PREFIX}/etc/fusioninventory/agent.cfg ]; then \
${CP} -p ${PREFIX}/etc/fusioninventory/agent.cfg.sample ${PREFIX}/etc/fusioninventory/agent.cfg ; \
fi
.include <bsd.port.mk>

View File

@ -3,6 +3,46 @@ bin/fusioninventory-injector
@unexec if cmp -s %D/etc/fusioninventory/agent.cfg.sample %D/etc/fusioninventory/agent.cfg; then rm -f %D/etc/fusioninventory/agent.cfg; fi
etc/fusioninventory/agent.cfg.sample
@exec if [ ! -f %D/etc/fusioninventory/agent.cfg ] ; then cp -p %D/etc/fusioninventory/agent.cfg.sample %D/etc/fusioninventory/agent.cfg; fi
%%PERL5_MAN3%%/FusionInventory::Agent.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Config.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::HTTP::Client.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::HTTP::Client::Fusion.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::HTTP::Client::OCS.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::HTTP::Protocol::https.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::HTTP::Server.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Logger.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Logger::Backend.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Logger::File.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Logger::Stderr.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Logger::Syslog.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Scheduler.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Storage.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Target.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Target::Local.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Target::Server.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Target::Stdout.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Task.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Task::Inventory.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Task::Inventory::Inventory.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Task::WakeOnLan.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::AIX.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Generic.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::HPUX.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Hostname.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Linux.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::MacOS.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Network.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Screen.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Solaris.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Unix.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::Tools::Win32.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::XML::Query.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::XML::Query::Inventory.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::XML::Query::Prolog.3.gz
%%PERL5_MAN3%%/FusionInventory::Agent::XML::Response.3.gz
man/man1/fusioninventory-agent.1.gz
man/man1/fusioninventory-injector.1.gz
share/fusioninventory/lib/FusionInventory/Agent.pm
share/fusioninventory/lib/FusionInventory/Agent/Config.pm
share/fusioninventory/lib/FusionInventory/Agent/HTTP/Client.pm