Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influxdb 1.7.5 #194

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 58 additions & 124 deletions databases/influxdb/Makefile
Original file line number Diff line number Diff line change
@@ -1,150 +1,84 @@
# $NetBSD$

DISTNAME= influxdb-1.7.3
MASTER_SITES= ${MASTER_SITE_GITHUB:=influxdata/}
CATEGORIES= databases
GITHUB_PROJECT= influxdb
PKGVERSION_NOREV= 1.7.5
DISTNAME= influxdb-1.7.5
GITHUB_TAG= v${PKGVERSION_NOREV}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/influxdata/influxdb
COMMENT= Scalable datastore for metrics, events, and real-time analytics
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=influxdata/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/influxdata/influxdb
COMMENT= Scalable datastore for metrics, events, and real-time analytics
LICENSE= mit

BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto

USE_TOOLS+= gmake
# despite being the default value, this explicit declaration is required for things
# to build properly.
EXTRACT_SUFX= .tar.gz

GO_DIST_BASE= ${DISTNAME}
GO_SRCPATH= github.com/influxdata/influxdb

# Generated with "make print-go-deps"
GO_DEPS+= github.com/collectd/go-collectd:2ce14454:collectd.org
GO_DEPS+= github.com/BurntSushi/toml:a368813c
GO_DEPS+= github.com/Masterminds/semver:c7af1294
GO_DEPS+= github.com/RoaringBitmap/roaring:3d677d32
GO_DEPS+= github.com/alecthomas/kingpin:947dcec5
GO_DEPS+= github.com/alecthomas/template:a0175ee3
GO_DEPS+= github.com/alecthomas/units:2efee857
GO_DEPS+= github.com/apache/arrow:c6d97c59
GO_DEPS+= github.com/apex/log:941dea75
GO_DEPS+= github.com/aws/aws-sdk-go:dd947f47
GO_DEPS+= github.com/beorn7/perks:3a771d99
GO_DEPS+= github.com/blakesmith/ar:8bd4349a
GO_DEPS+= github.com/bmizerany/pat:6226ea59
GO_DEPS+= github.com/boltdb/bolt:2f1ce7a8
GO_DEPS+= github.com/c-bata/go-prompt:e99fbc79
GO_DEPS+= github.com/caarlos0/ctrlc:70dc48d5
GO_DEPS+= github.com/campoy/unique:88950e53
GO_DEPS+= github.com/cespare/xxhash:5c37fe37
GO_DEPS+= github.com/davecgh/go-spew:346938d6
GO_DEPS+= github.com/dgrijalva/jwt-go:06ea1031
GO_DEPS+= github.com/dgryski/go-bitstream:3522498c
GO_DEPS+= github.com/fatih/color:570b54ca
GO_DEPS+= github.com/glycerine/go-unsnap-stream:9f0cb551
GO_DEPS+= github.com/go-ini/ini:7b294651
GO_DEPS+= github.com/go-sql-driver/mysql:d523deb1
GO_DEPS+= github.com/gogo/protobuf:636bf030
GO_DEPS+= github.com/golang/protobuf:b4deda09
GO_DEPS+= github.com/golang/snappy:d9eb7a3d
GO_DEPS+= github.com/google/go-cmp:3af367b6
GO_DEPS+= github.com/google/go-github:dd29b543
GO_DEPS+= github.com/google/go-querystring:44c6ddd0
GO_DEPS+= github.com/goreleaser/goreleaser:f99940ff
GO_DEPS+= github.com/goreleaser/nfpm:de75d679
GO_DEPS+= github.com/imdario/mergo:9f23e2d6
GO_DEPS+= github.com/influxdata/flux:8c9d0ad4
GO_DEPS+= github.com/influxdata/influxql:c661ab7d
GO_DEPS+= github.com/influxdata/line-protocol:32c6aa80
GO_DEPS+= github.com/influxdata/platform:0f79e4ea
GO_DEPS+= github.com/influxdata/roaring:fc520f41
GO_DEPS+= github.com/influxdata/tdigest:a7d76c6f
GO_DEPS+= github.com/influxdata/usage-client:6d389537
GO_DEPS+= github.com/jmespath/go-jmespath:0b12d6b5
GO_DEPS+= github.com/jsternberg/zap-logfmt:ac4bd917
GO_DEPS+= github.com/jwilder/encoding:b4e1701a
GO_DEPS+= github.com/kevinburke/go-bindata:06af60a4
GO_DEPS+= github.com/kisielk/gotool:80517062
GO_DEPS+= github.com/klauspost/compress:b939724e
GO_DEPS+= github.com/klauspost/cpuid:ae7887de
GO_DEPS+= github.com/klauspost/crc32:cb6bfca9
GO_DEPS+= github.com/klauspost/pgzip:0bf5dcad
GO_DEPS+= github.com/lib/pq:4ded0e93
GO_DEPS+= github.com/mattn/go-colorable:167de6bf
GO_DEPS+= github.com/mattn/go-isatty:6ca4dbf5
GO_DEPS+= github.com/mattn/go-runewidth:9e777a83
GO_DEPS+= github.com/mattn/go-tty:13ff1204
GO_DEPS+= github.com/mattn/go-zglob:2ea3427b
GO_DEPS+= github.com/matttproud/golang_protobuf_extensions:c12348ce
GO_DEPS+= github.com/mitchellh/go-homedir:ae18d6b8
GO_DEPS+= github.com/mna/pigeon:9df26490
GO_DEPS+= github.com/mschoch/smat:90eadee7
GO_DEPS+= github.com/opentracing/opentracing-go:bd9c3193
GO_DEPS+= github.com/paulbellamy/ratecounter:524851a9
GO_DEPS+= github.com/peterh/liner:8c1271fc
GO_DEPS+= github.com/philhofer/fwd:bb6d471d
GO_DEPS+= github.com/pkg/errors:645ef004
GO_DEPS+= github.com/pkg/term:bffc007b
GO_DEPS+= github.com/prometheus/client_golang:661e31bf
GO_DEPS+= github.com/prometheus/client_model:5c3871d8
GO_DEPS+= github.com/prometheus/common:7600349d
GO_DEPS+= github.com/prometheus/procfs:ae68e2d4
GO_DEPS+= github.com/retailnext/hllpp:101a6d2f
GO_DEPS+= github.com/satori/go.uuid:f58768cc
GO_DEPS+= github.com/segmentio/kafka-go:c6db9435
GO_DEPS+= github.com/tinylib/msgp:b2b6a672
GO_DEPS+= github.com/willf/bitset:d860f346
GO_DEPS+= github.com/xlab/treeprint:d6fb6747
GO_DEPS+= github.com/uber-go/atomic:1ea20fb1:go.uber.org/atomic
GO_DEPS+= github.com/uber-go/multierr:3c493748:go.uber.org/multierr
GO_DEPS+= github.com/uber-go/zap:4d45f961:go.uber.org/zap
GO_DEPS+= github.com/golang/crypto:a2144134:golang.org/x/crypto
GO_DEPS+= github.com/golang/net:a680a1ef:golang.org/x/net
GO_DEPS+= github.com/golang/oauth2:c57b0fac:golang.org/x/oauth2
GO_DEPS+= github.com/golang/sync:1d60e460:golang.org/x/sync
GO_DEPS+= github.com/golang/sys:ac767d65:golang.org/x/sys
GO_DEPS+= github.com/golang/text:f21a4dfb:golang.org/x/text
GO_DEPS+= github.com/golang/time:fbb02b22:golang.org/x/time
GO_DEPS+= github.com/golang/tools:45ff765b:golang.org/x/tools
GO_DEPS+= github.com/golang/appengine:ae0ab99d:google.golang.org/appengine
GO_DEPS+= github.com/google/go-genproto:fedd2861:google.golang.org/genproto
GO_DEPS+= github.com/grpc/grpc-go:168a6198:google.golang.org/grpc
GO_DEPS+= github.com/go-yaml/yaml:5420a8b6:gopkg.in/yaml.v2
GO_DEPS+= github.com/dominikh/go-tools:d73ab98e:honnef.co/go/tools
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
USE_TOOLS+= gmake

PKG_SYSCONFSUBDIR= influxdb

DATADIR= ${VARBASE}/db/influxdb
DATADIR= ${VARBASE}/lib/influxdb
LOGDIR= ${VARBASE}/log/influxdb

SUBST_CLASSES+= fix-cfg
SUBST_STAGE.fix-cfg= pre-configure
SUBST_MESSAGE.fix-cfg= Disabling phone-home in sample config
SUBST_FILES.fix-cfg= etc/config.sample.toml
SUBST_SED.fix-cfg= -e 's/^\# reporting-disabled = false/reporting-disabled = true/'

BUILD_DEFS+= INFLUXDB_USER INFLUXDB_GROUP VARBASE
FILES_SUBST+= INFLUXDB_USER=${INFLUXDB_USER:Q}
FILES_SUBST+= INFLUXDB_GROUP=${INFLUXDB_GROUP:Q}
FILES_SUBST+= DATADIR=${DATADIR:Q}
FILES_SUBST+= LOGDIR=${LOGDIR:Q}

INFLUXDB_USER?= influxdb
INFLUXDB_GROUP?= influxdb
OWN_DIRS_PERMS+= ${DATADIR} ${INFLUXDB_USER} ${INFLUXDB_GROUP} 0700
OWN_DIRS_PERMS+= ${LOGDIR} ${INFLUXDB_USER} ${INFLUXDB_GROUP} 0700
PKG_USERS_VARS+= INFLUXDB_USER
PKG_GROUPS_VARS+= INFLUXDB_GROUP
PKG_USERS= ${INFLUXDB_USER}:${INFLUXDB_GROUP}
PKG_GROUPS= ${INFLUXDB_GROUP}
PKG_SYSCONFSUBDIR= influxdb
PKG_USERS= ${INFLUXDB_USER}:${INFLUXDB_GROUP}
RCD_SCRIPTS= influxdb

BUILD_DEFS+= INFLUXDB_USER INFLUXDB_GROUP VARBASE
FILES_SUBST+= INFLUXDB_USER=${INFLUXDB_USER:Q}
FILES_SUBST+= INFLUXDB_GROUP=${INFLUXDB_GROUP:Q}
FILES_SUBST+= DATADIR=${DATADIR:Q}
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 etc/influxdb share/doc/influxdb share/examples/influxdb

INSTALLATION_DIRS+= bin sbin share/examples/influxdb ${PKGMANDIR}/man1
DOC_FILES+= LICENSE DEPENDENCIES.md QUERIES.md README.md CHANGELOG.md
BIN_FILES+= influx influx_inspect influx_stress influx_tsm influxd stress_test_server test_client
CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/config.sample.toml ${PKG_SYSCONFDIR}/config.toml

CONF_FILES+= ${PREFIX}/share/examples/influxdb/influxdb.conf \
${PKG_SYSCONFDIR}/influxdb.conf
post-build:
cd ${WRKSRC}/man && ${SETENV} ${MAKE_ENV} ${GMAKE}
${SED} -e 's,/var/lib/influxdb,${DATADIR},g' ${WRKSRC}/etc/config.sample.toml \
>${WRKDIR}/.config.toml
# extracted dependencies with target print-go-deps
.include "./go-deps.mk"

do-build:
${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} build -ldflags "-s -X main.version=${PKGVERSION_NOREV} -X main.commit=${GITHUB_TAG} -X main.buildstamp=pkgsrc" ${GO_BUILD_PATTERN}
${RUN} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -ldflags "-s -X main.version=${PKGVERSION_NOREV} -X main.commit=${GITHUB_TAG} -X main.buildstamp=pkgsrc" ${GO_BUILD_PATTERN}

do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/influxd ${DESTDIR}${PREFIX}/sbin/${prog}
.for prog in influx influx_inspect influx_tsm influx_stress
${INSTALL_PROGRAM} ${WRKDIR}/bin/${prog} ${DESTDIR}${PREFIX}/bin/${prog}
cd ${WRKSRC}/man && ${SETENV} ${PKGSRC_MAKE_ENV} ${MAKE_PROGRAM}
.for idir in ${INSTALLATION_DIRS}
${MKDIR} ${DESTDIR}${PREFIX}/${idir}
.endfor
for manpage in ${WRKSRC}/man/*.1 ; do \
${INSTALL_MAN} $$manpage ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ; \
done
.for x in ${BIN_FILES}
${INSTALL} ${WRKDIR}/bin/${x} \
${DESTDIR}${PREFIX}/bin/${x}
.endfor
.for x in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${x} \
${DESTDIR}${PREFIX}/share/doc/influxdb/${x}
.endfor
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA} ${WRKDIR}/.config.toml \
${DESTDIR}${PREFIX}/share/examples/influxdb/influxdb.conf
${INSTALL_DATA} ${WRKSRC}/etc/config.sample.toml ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}

.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"
13 changes: 11 additions & 2 deletions databases/influxdb/PLIST
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ bin/influx
bin/influx_inspect
bin/influx_stress
bin/influx_tsm
bin/influxd
bin/stress_test_server
bin/test_client
man/man1/influx.1
man/man1/influx_inspect.1
man/man1/influx_stress.1
Expand All @@ -13,5 +16,11 @@ man/man1/influxd-restore.1
man/man1/influxd-run.1
man/man1/influxd-version.1
man/man1/influxd.1
sbin/influxd
share/examples/influxdb/influxdb.conf
share/doc/influxdb/CHANGELOG.md
share/doc/influxdb/DEPENDENCIES.md
share/doc/influxdb/LICENSE
share/doc/influxdb/QUERIES.md
share/doc/influxdb/README.md
share/examples/influxdb/config.sample.toml
@pkgdir man1
@pkgdir etc/influxdb
12 changes: 0 additions & 12 deletions databases/influxdb/buildlink3.mk

This file was deleted.

Loading