Skip to content

Commit

Permalink
Merge branch 'release/0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Mar 6, 2019
2 parents 81b4758 + ff7ac0c commit ecad0ba
Show file tree
Hide file tree
Showing 7 changed files with 515 additions and 251 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/pkg/
/src/
/dist/
goiplookup
goiplookup*.bz2
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

## [0.0.2] - 2019-03-02

- Add README.md ([`87d7873`](https://github.com/axllent/goiplookup/commit/87d787309a5fbbea172f5b9c3bfd77a78042efba))
- Use `db-update` for update flag ([`f5d0b1c`](https://github.com/axllent/goiplookup/commit/f5d0b1ceda54cb7760da9905831f1145b0e02915))
- Fix typo ([`f0feace`](https://github.com/axllent/goiplookup/commit/f0feace55ac33d8eba26d8979aab973b1205cd6e))
- Ignore compressed releases ([`87a9100`](https://github.com/axllent/goiplookup/commit/87a910028dd9046474e9754f7ec3f803ca6dc2b4))

## [0.0.1] - 2019-03-02

- Rename to goiplookup ([`3f213b0`](https://github.com/axllent/goiplookup/commit/3f213b09532d5bfa3f69cb091bd129200d4cef9d))
- Add database update functionality ([`eea4e87`](https://github.com/axllent/goiplookup/commit/eea4e87033d13c5f6b140f82db2a9eb28e430fde))
- Tidy code and basic versioning ([`1ac5154`](https://github.com/axllent/goiplookup/commit/1ac51546103ea61299688e7392fbe57e71ad5340))
- Return IP Address not found ([`adb7a10`](https://github.com/axllent/goiplookup/commit/adb7a1044a1e4226881831358e0024bb49742f2b))
- Update build script to use tags ([`675ff4c`](https://github.com/axllent/goiplookup/commit/675ff4c05719fedb8ee35f3caa6b98b858467d60))
- Strip binary ([`ecf4260`](https://github.com/axllent/goiplookup/commit/ecf426092fbd860cb3565a1abce37821bc8e6fb9))
- Usage to include hostname ([`abce859`](https://github.com/axllent/goiplookup/commit/abce85954c0cba6d9916f5f29728e261dc9ca884))
- Fix debug info ([`a9d0668`](https://github.com/axllent/goiplookup/commit/a9d0668b7801408fe98a265d8873aa53a8f6645b))
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LDFLAGS=-ldflags "-X main.version=${VERSION}"

geoiplookup: goiplookup.go
go get github.com/oschwald/geoip2-golang
go build ${LDFLAGS} goiplookup.go
go build ${LDFLAGS}
strip goiplookup

clean:
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ It currently only supports the free GeoLite2-Country database, and there is no p
- Drop-in replacement for the now defunt geoiplookup utility
- Works with the current Maxmind database format (mmdd)
- IPv4, IPv6 and fully qualified domain name (FQDN) support
- Built-in database update support
- Options to return just the country iso (`NZ`) or country name (`New Zealand`), rather than the full `GeoIP Country Edition: NZ, New Zealand`
- Built-in database update support
- Built-in self updater (if new version if available)


## Installing

Linux amd64 binaries are supplied with releases.

```
bunzip goiplookup_linux_amd64.bz2
bunzip2 goiplookup_linux_amd64.bz2
chmod 755 goiplookup_linux_amd64
sudo mv goiplookup_linux_amd64 /usr/local/bin/goiplookup
sudo chown root:root /usr/local/bin/goiplookup
```

If you with to replace an existing defunct implementation of geoiplookup, then simply name the file `geoiplookup`.
Expand Down Expand Up @@ -52,9 +54,10 @@ Options:
-v verbose/debug output
Examples:
./goiplookup 8.8.8.8 Return the country ISO code and name
./goiplookup -d ~/GeoIP 8.8.8.8 Use a different database directory
./goiplookup -i 8.8.8.8 Return just the country ISO code
./goiplookup -c 8.8.8.8 Return just the country name
./goiplookup db-update Update the GeoLite2-Country database (do not run more than once a month)
goiplookup 8.8.8.8 Return the country ISO code and name
goiplookup -d ~/GeoIP 8.8.8.8 Use a different database directory
goiplookup -i 8.8.8.8 Return just the country ISO code
goiplookup -c 8.8.8.8 Return just the country name
goiplookup db-update Update the GeoLite2-Country database (do not run more than once a month)
goiplookup self-update Update the GoIpLookup binary with the latest release
```
Loading

0 comments on commit ecad0ba

Please sign in to comment.