summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile14
-rw-r--r--README10
m---------_AUR0
-rw-r--r--_www/doc/index.adoc6
-rw-r--r--_www/doc/resolver.adoc2
-rw-r--r--cmd/rescached/main.go2
-rw-r--r--cmd/resolver/main.go2
-rw-r--r--cmd/resolver/resolver.go3
-rw-r--r--go.mod2
9 files changed, 25 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 319b50a..0bc49c8 100644
--- a/Makefile
+++ b/Makefile
@@ -29,33 +29,41 @@ DIR_RESCACHED=/usr/share/rescached
##---- Tasks for testing, linting, and building program.
-.PHONY: test test.prof debug build resolver rescached
+.PHONY: all
+all: lint test resolver rescached
-build: lint test resolver rescached
+.PHONY: build
+build: resolver rescached
## Build with race detection.
+.PHONY: debug
debug: CGO_ENABLED=1
debug: DEBUG=-race -v
debug: test build
+.PHONY: resolver
resolver: LD_FLAGS =-X 'main.Usage=$$(go tool doc ./cmd/resolver)'
-resolver: LD_FLAGS+=-X 'github.com/shuLhan/rescached-go/v4.Version=${VERSION}'
+resolver: LD_FLAGS+=-X 'git.sr.ht/~shulhan/rescached.Version=$(VERSION)'
resolver:
mkdir -p _bin/$(GOOS)_$(GOARCH)
go build $(DEBUG) -ldflags="$(LD_FLAGS)" -o _bin/$(GOOS)_$(GOARCH)/ ./cmd/resolver
+.PHONY: rescached
+rescached: LD_FLAGS+=-X 'git.sr.ht/~shulhan/rescached.Version=$(VERSION)'
rescached:
mkdir -p _bin/$(GOOS)_$(GOARCH)
go run ./cmd/rescached embed
go build $(DEBUG) -ldflags="$(LD_FLAGS)" -o _bin/$(GOOS)_$(GOARCH)/ ./cmd/rescached
+.PHONY: test
test:
go test $(DEBUG) -count=1 -coverprofile=$(COVER_OUT) ./...
go tool cover -html=$(COVER_OUT) -o $(COVER_HTML)
+.PHONY: test.prof
test.prof:
go test $(DEBUG) -count=1 \
-cpuprofile $(CPU_PROF) \
diff --git a/README b/README
index e9e9b26..d1a0404 100644
--- a/README
+++ b/README
@@ -154,8 +154,8 @@ record from cache.
Steps to compile from source,
----
-$ go get -u github.com/shuLhan/rescached-go
-$ cd ${GOPATH}/src/github.com/shuLhan/rescached-go
+$ go get -u git.sr.ht/~shulhan/rescached
+$ cd ${GOPATH}/src/git.sr.ht/~shulhan/rescached
$ go build ./cmd/rescached
----
@@ -475,11 +475,11 @@ in the COPYING file.
== LINKS
-The repository for this software is available at
-https://github.com/shuLhan/rescached-go.
+The project for this software is available at
+https://sr.ht/~shulhan/rescached.
For request of features and/or bugs report please submitted through web at
-https://github.com/shuLhan/rescached-go/issues.
+https://todo.sr.ht/~shulhan/rescached.
== SEE ALSO
diff --git a/_AUR b/_AUR
-Subproject 02ca9bd9d98b702ca497248779f03a9c778b64f
+Subproject dc0733fe25e6b2bdb47951c77036f0ea53bc262
diff --git a/_www/doc/index.adoc b/_www/doc/index.adoc
index e77a4f7..4e0e780 100644
--- a/_www/doc/index.adoc
+++ b/_www/doc/index.adoc
@@ -20,13 +20,13 @@ link:resolver.html[resolver^]:: Manual page for resolver.
== Development
-https://github.com/shuLhan/rescached-go[Repository^]::
+https://git.sr.ht/~shulhan/rescached[Repository^]::
Link to the source code.
-https://github.com/shuLhan/rescached-go/issues[Issues^]::
+https://todo.sr.ht/~shulhan/rescached[Issues^]::
List of open issues.
-https://github.com/shuLhan/rescached-go/pulls[Patches^]::
+https://lists.sr.ht/~shulhan/rescached[Patches^]::
Link to submit the patches.
== Todo
diff --git a/_www/doc/resolver.adoc b/_www/doc/resolver.adoc
index 20d9a59..6e7c18c 100644
--- a/_www/doc/resolver.adoc
+++ b/_www/doc/resolver.adoc
@@ -482,7 +482,7 @@ found in the COPYING file.
== LINKS
-Source code repository: https://github.com/shuLhan/rescached-go
+Source code repository: https://git.sr.ht/~shulhan/rescached
== SEE ALSO
diff --git a/cmd/rescached/main.go b/cmd/rescached/main.go
index 58bcf57..2eba5c9 100644
--- a/cmd/rescached/main.go
+++ b/cmd/rescached/main.go
@@ -23,7 +23,7 @@ import (
"git.sr.ht/~shulhan/pakakeh.go/lib/debug"
"git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
- "github.com/shuLhan/rescached-go/v4"
+ "git.sr.ht/~shulhan/rescached"
)
const (
diff --git a/cmd/resolver/main.go b/cmd/resolver/main.go
index 33ae64d..fee579c 100644
--- a/cmd/resolver/main.go
+++ b/cmd/resolver/main.go
@@ -10,7 +10,7 @@ import (
"os"
"strings"
- "github.com/shuLhan/rescached-go/v4"
+ "git.sr.ht/~shulhan/rescached"
)
// List of valid commands.
diff --git a/cmd/resolver/resolver.go b/cmd/resolver/resolver.go
index 6e1c956..37564f2 100644
--- a/cmd/resolver/resolver.go
+++ b/cmd/resolver/resolver.go
@@ -18,7 +18,8 @@ import (
"git.sr.ht/~shulhan/pakakeh.go/lib/dns"
libnet "git.sr.ht/~shulhan/pakakeh.go/lib/net"
- "github.com/shuLhan/rescached-go/v4"
+
+ "git.sr.ht/~shulhan/rescached"
)
const (
diff --git a/go.mod b/go.mod
index 94695b4..6b6f640 100644
--- a/go.mod
+++ b/go.mod
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
-module github.com/shuLhan/rescached-go/v4
+module git.sr.ht/~shulhan/rescached
go 1.22