utils

small programs, scripts and utils
git clone https://git.e1e0.net/utils.git
Log | Files | Refs

commit c8ac3c1e7bf3398c650871253230ba2adbd6e7ce
parent 9ad0f899c922c31e4281606c052444d38c4c5e4f
Author: Paco Esteban <paco@e1e0.net>
Date:   Fri, 30 Apr 2021 18:32:02 +0200

add go.mod and fix Makefile PREFIX

Diffstat:
Mshowvictims/Makefile | 10+++++-----
Ashowvictims/go.mod | 5+++++
Ashowvictims/go.sum | 2++
3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/showvictims/Makefile b/showvictims/Makefile @@ -1,11 +1,11 @@ BINARY=port-showvictims -VERSION=v0.1.0 -PREFIX=/usr/local -OS=`uname | tr "[:upper:]" "[:lower:]"` -ARCH="amd64" +VERSION = v0.1.0 +PREFIX ?= /usr/local +OS = `uname | tr "[:upper:]" "[:lower:]"` +ARCH = "amd64" -LDFLAGS=-ldflags "-X main.Version=${VERSION} -w" +LDFLAGS = -ldflags "-X main.Version=${VERSION} -w" .DEFAULT: ${BINARY} diff --git a/showvictims/go.mod b/showvictims/go.mod @@ -0,0 +1,5 @@ +module git.e1e0.net/utils/showvictims + +go 1.16 + +require github.com/mattn/go-sqlite3 v1.14.7 diff --git a/showvictims/go.sum b/showvictims/go.sum @@ -0,0 +1,2 @@ +github.com/mattn/go-sqlite3 v1.14.7 h1:fxWBnXkxfM6sRiuH3bqJ4CfzZojMOLVc0UTsTglEghA= +github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=