- Unbreak with latest version of go

- Add deprecation notice
- Bump PORTREVISION
This commit is contained in:
Ryan Steinmetz
2019-05-20 15:29:51 +00:00
parent 2b44b0fc20
commit 21b1707e76
3 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
PORTNAME= logstash-forwarder
PORTVERSION= 0.4.0.20150507
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= cheffo@freebsd-bg.org
@@ -9,7 +10,7 @@ COMMENT= Collect logs locally in preparation for processing elsewhere!
LICENSE= APACHE20
BROKEN= fails to build
DEPRECATED= Migrate to sysutils/beats
BUILD_DEPENDS= go:lang/go

View File

@@ -8,7 +8,7 @@
+ "syscall"
+)
+
+func file_ids(info *os.FileInfo) (uint32, uint32) {
+func file_ids(info *os.FileInfo) (uint64, uint64) {
+ fstat := (*(info)).Sys().(*syscall.Stat_t)
+ return fstat.Ino, fstat.Dev
+}

View File

@@ -6,6 +6,6 @@
+type FileState struct {
+ Source *string `json:"source,omitempty"`
+ Offset int64 `json:"offset,omitempty"`
+ Inode uint32 `json:"inode,omitempty"`
+ Device uint32 `json:"device,omitempty"`
+ Inode uint64 `json:"inode,omitempty"`
+ Device uint64 `json:"device,omitempty"`
+}