From 570b2f04afb2d78d3ddf4fe850988ce98bccac2f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 21 Mar 2024 17:39:02 +0700 Subject: all: move repository to SourceHut --- Makefile | 14 +++++++++++--- README | 10 +++++----- _AUR | 2 +- _www/doc/index.adoc | 6 +++--- _www/doc/resolver.adoc | 2 +- cmd/rescached/main.go | 2 +- cmd/resolver/main.go | 2 +- cmd/resolver/resolver.go | 3 ++- go.mod | 2 +- 9 files changed, 26 insertions(+), 17 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 index 02ca9bd..dc0733f 160000 --- a/_AUR +++ b/_AUR @@ -1 +1 @@ -Subproject commit 02ca9bd9d98b702ca497248779f03a9c778b64f3 +Subproject commit dc0733fe25e6b2bdb47951c77036f0ea53bc262e 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 // SPDX-License-Identifier: GPL-3.0-or-later -module github.com/shuLhan/rescached-go/v4 +module git.sr.ht/~shulhan/rescached go 1.22 -- cgit v1.3