| 1 | NAME = orca |
|---|
| 2 | VERSION = ef85fa3541 |
|---|
| 3 | CATEGORIES = utils |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = A system performance monitoring tool |
|---|
| 7 | define BLURB |
|---|
| 8 | Orca is a tool useful for plotting arbitrary data from text files onto |
|---|
| 9 | a directory on a Web server. It has the following features: |
|---|
| 10 | |
|---|
| 11 | * Creates an HTML tree of HTML and image (PNG or GIF) files. |
|---|
| 12 | * Creates an index of URL links listing all available targets. |
|---|
| 13 | * Creates an index of URL links listing all different plot types. |
|---|
| 14 | * No separate CGI set up required. |
|---|
| 15 | * Can be run under cron or it can sleep itself waiting for file updates |
|---|
| 16 | based on when the file was last updated. |
|---|
| 17 | * Configuration file based. |
|---|
| 18 | * Reads arbitrarily formatted text or binary data files. |
|---|
| 19 | * Watches data files for updates and sleeps between reads. |
|---|
| 20 | * Finds new files at specified times. |
|---|
| 21 | * Remembers the last modification times for files so they do not have to |
|---|
| 22 | be reread continuously. |
|---|
| 23 | * Allows arbitrary grouping of data from different files into the same |
|---|
| 24 | or different plots. |
|---|
| 25 | * Allows arbitrary math performed on data read from one file. |
|---|
| 26 | |
|---|
| 27 | endef |
|---|
| 28 | |
|---|
| 29 | MASTER_SITES = https://github.com/blair/orca/tarball/master |
|---|
| 30 | # DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 31 | DISTFILES += csworcallator csworcallator.xml svc-csworcallator |
|---|
| 32 | DISTFILES += csworca_services |
|---|
| 33 | DISTFILES += csworca |
|---|
| 34 | PATCHFILES = orca-snapshot-r535-se-3.5.0.patch |
|---|
| 35 | PATCHFILES += fix-start-orcallator.patch |
|---|
| 36 | PATCHFILES += 0001-Skip-unversioned-SVN-as-we-are-now-in-GITland.patch |
|---|
| 37 | |
|---|
| 38 | GIT_REPOS = git://github.com/blair/orca.git |
|---|
| 39 | GIT_TREEISH_orca.git = $(VERSION) |
|---|
| 40 | |
|---|
| 41 | VENDOR_URL = https://github.com/blair/orca |
|---|
| 42 | |
|---|
| 43 | BUILD_DEP_PKGS += CSWperl |
|---|
| 44 | BUILD_DEP_PKGS += CSWpmtimedate |
|---|
| 45 | BUILD_DEP_PKGS += CSWpmmathinterpolate |
|---|
| 46 | BUILD_DEP_PKGS += CSWpm-rrdtool |
|---|
| 47 | BUILD_DEP_PKGS += CSWgawk |
|---|
| 48 | BUILD_DEP_PKGS += CSWbzip2 |
|---|
| 49 | BUILD_DEP_PKGS += CSWsetoolkit |
|---|
| 50 | |
|---|
| 51 | PACKAGES += CSWorcallator |
|---|
| 52 | SPKG_DESC_CSWorcallator = Orcallator performance data collector |
|---|
| 53 | PKGFILES_CSWorcallator += /etc/opt/csw/init.d/csworcallator |
|---|
| 54 | PKGFILES_CSWorcallator += $(bindir)/.*orcallator.* |
|---|
| 55 | PKGFILES_CSWorcallator += $(libdir)/orca/orcallator.se |
|---|
| 56 | ARCHALL_CSWorcallator = 1 |
|---|
| 57 | RUNTIME_DEP_PKGS_CSWorcallator += CSWsetoolkit |
|---|
| 58 | RUNTIME_DEP_PKGS_CSWorcallator += CSWgawk |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWorcallator += CSWbzip2 |
|---|
| 60 | # Checkpkg can't track these |
|---|
| 61 | CHECKPKG_OVERRIDES_CSWorcallator += surplus-dependency|CSWsetoolkit |
|---|
| 62 | CHECKPKG_OVERRIDES_CSWorcallator += surplus-dependency|CSWgawk |
|---|
| 63 | CHECKPKG_OVERRIDES_CSWorcallator += surplus-dependency|CSWbzip2 |
|---|
| 64 | OBSOLETED_BY_CSWorcallator += CSWorca |
|---|
| 65 | |
|---|
| 66 | PACKAGES += CSWorca-services-collector |
|---|
| 67 | SPKG_DESC_CSWorca-services-collector = Orca services data collector |
|---|
| 68 | PKGFILES_CSWorca-services-collector += /etc/opt/csw/init.d/csworca_services |
|---|
| 69 | PKGFILES_CSWorca-services-collector += $(bindir)/.*orca_services.* |
|---|
| 70 | PKGFILES_CSWorca-services-collector += $(libexecdir)/orca_services |
|---|
| 71 | ARCHALL_CSWorca-services-collector = 1 |
|---|
| 72 | OBSOLETED_BY_CSWorca-services-collector += CSWorca |
|---|
| 73 | |
|---|
| 74 | PACKAGES += CSWorca-web |
|---|
| 75 | SPKG_DESC_CSWorca-web = Performance Data Viewer |
|---|
| 76 | ARCHALL_CSWorca-web = 1 |
|---|
| 77 | # PKGFILES is catchall |
|---|
| 78 | RUNTIME_DEP_PKGS_CSWorca-web += CSWperl |
|---|
| 79 | RUNTIME_DEP_PKGS_CSWorca-web += CSWpmtimedate |
|---|
| 80 | RUNTIME_DEP_PKGS_CSWorca-web += CSWpmmathinterpolate |
|---|
| 81 | RUNTIME_DEP_PKGS_CSWorca-web += CSWpm-rrdtool |
|---|
| 82 | RUNTIME_DEP_PKGS_CSWorca-web += CSWapache2 |
|---|
| 83 | # Checkpkg can't track Perl dependencies |
|---|
| 84 | CHECKPKG_OVERRIDES_CSWorca-web += surplus-dependency|CSWperl |
|---|
| 85 | CHECKPKG_OVERRIDES_CSWorca-web += surplus-dependency|CSWpmtimedate |
|---|
| 86 | CHECKPKG_OVERRIDES_CSWorca-web += surplus-dependency|CSWpmmathinterpolate |
|---|
| 87 | CHECKPKG_OVERRIDES_CSWorca-web += surplus-dependency|CSWpm-rrdtool |
|---|
| 88 | CHECKPKG_OVERRIDES_CSWorca-web += surplus-dependency|CSWapache2 |
|---|
| 89 | OBSOLETED_BY_CSWorca-web += CSWorcaweb |
|---|
| 90 | CATALOGNAME_CSWorcaweb = orca_web_stub |
|---|
| 91 | |
|---|
| 92 | # TBD: Adjust to OpenCSW radius location |
|---|
| 93 | REINPLACEMENTS += radiuslog |
|---|
| 94 | REINPLACE_MATCH_radiuslog = /usr/local/etc/raddb/logfile |
|---|
| 95 | REINPLACE_WITH_radiuslog = /var/opt/csw/radius.log |
|---|
| 96 | REINPLACE_FILES_radiuslog = data_gatherers/orca_services/orca_services.pl.in |
|---|
| 97 | |
|---|
| 98 | REINPLACEMENTS += radiusauth |
|---|
| 99 | REINPLACE_MATCH_radiusauth = /usr/local/lib/orca_services.DB. |
|---|
| 100 | REINPLACE_WITH_radiusauth = $(libexecdir)/orca_services.DB. |
|---|
| 101 | REINPLACE_FILES_radiusauth = data_gatherers/orca_services/orca_services.pl.in |
|---|
| 102 | |
|---|
| 103 | # TBD: Adjust to OpenCSW pop logfile location |
|---|
| 104 | REINPLACEMENTS += pop |
|---|
| 105 | REINPLACE_MATCH_pop = /var/log/ipop3d.log |
|---|
| 106 | REINPLACE_WITH_pop = /var/opt/csw/ipop3d.log |
|---|
| 107 | REINPLACE_FILES_pop = data_gatherers/orca_services/orca_services.pl.in |
|---|
| 108 | |
|---|
| 109 | # TBD: Adjust to OpenCSW named logfiles location |
|---|
| 110 | REINPLACEMENTS += dns |
|---|
| 111 | REINPLACE_MATCH_dns = /var/log/named |
|---|
| 112 | REINPLACE_WITH_dns = /var/opt/csw/named/named.log |
|---|
| 113 | REINPLACE_FILES_dns = data_gatherers/orca_services/orca_services.pl.in |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | |
|---|
| 117 | EXTRA_COMMON_EXPORTS += perlcswlib |
|---|
| 118 | |
|---|
| 119 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 120 | CONFIGURE_ARGS += --with-html-dir=$(sharedstatedir)/www/orca |
|---|
| 121 | CONFIGURE_ARGS += --disable-librrdtool |
|---|
| 122 | |
|---|
| 123 | # Exclude se-libraries for old SE Toolkit versions. We depend on 3.5.0 which |
|---|
| 124 | # includes all needed se-libraries. |
|---|
| 125 | EXTRA_MERGE_EXCLUDE_FILES = /opt/csw/lib/SE/.* |
|---|
| 126 | |
|---|
| 127 | # This is for A/IX only |
|---|
| 128 | EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/orca-aix-stat |
|---|
| 129 | |
|---|
| 130 | # This is for HP only |
|---|
| 131 | EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/orca-hp-stat |
|---|
| 132 | |
|---|
| 133 | # This is for Linux /proc only |
|---|
| 134 | EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/procallator |
|---|
| 135 | |
|---|
| 136 | PRESERVECONF = /etc/opt/csw/orcallator.cfg |
|---|
| 137 | PRESERVECONF += /etc/opt/csw/winallator.cfg |
|---|
| 138 | PRESERVECONF += /etc/opt/csw/procallator.cfg |
|---|
| 139 | PRESERVECONF += /etc/opt/csw/orca_services.cfg |
|---|
| 140 | |
|---|
| 141 | INITSMF += /etc/opt/csw/init.d/csworca |
|---|
| 142 | INITSMF += /etc/opt/csw/init.d/csworcallator |
|---|
| 143 | INITSMF += /etc/opt/csw/init.d/csworca_services |
|---|
| 144 | |
|---|
| 145 | include gar/category.mk |
|---|
| 146 | |
|---|
| 147 | post-extract-modulated: |
|---|
| 148 | -cd $(WORKSRC) && ./autogen.sh |
|---|
| 149 | @$(MAKECOOKIE) |
|---|
| 150 | |
|---|
| 151 | post-install-modulated: |
|---|
| 152 | @ginstall -d $(DESTDIR)$(sysconfdir)/init.d |
|---|
| 153 | @# TBD: Use custom manifest for Solaris 10 SMF support |
|---|
| 154 | @ginstall $(WORKDIR)/csworca $(DESTDIR)$(sysconfdir)/init.d/csworca |
|---|
| 155 | @ginstall $(WORKDIR)/csworcallator $(DESTDIR)$(sysconfdir)/init.d/csworcallator |
|---|
| 156 | @ginstall $(WORKDIR)/csworca_services $(DESTDIR)$(sysconfdir)/init.d/csworca_services |
|---|
| 157 | @$(MAKE_COOKIE) |
|---|
| 158 | |
|---|
| 159 | post-merge: |
|---|
| 160 | @ginstall -d $(PKGROOT)/var/opt/csw/orca/rrd/orcallator |
|---|