Skip to content

Commit

Permalink
rename g3proxy-geoip to g3iploc-db
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed May 9, 2024
1 parent d635d27 commit 6a61eb3
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ members = [
"g3bench",
"g3fcgen",
"g3iploc",
"g3iploc/utils/db",
"g3mkcert",
"g3proxy",
"g3proxy/proto",
"g3proxy/utils/ctl",
"g3proxy/utils/ftp",
"g3proxy/utils/lua",
"g3proxy/utils/geoip",
"g3tiles",
"g3tiles/proto",
"g3tiles/utils/ctl",
Expand All @@ -61,12 +61,12 @@ default-members = [
"g3bench",
"g3fcgen",
"g3iploc",
"g3iploc/utils/db",
"g3mkcert",
"g3proxy",
"g3proxy/utils/ctl",
"g3proxy/utils/ftp",
"g3proxy/utils/lua",
"g3proxy/utils/geoip",
"g3tiles",
"g3tiles/utils/ctl",
"g3keymess",
Expand Down
1 change: 1 addition & 0 deletions g3iploc/debian/g3iploc.install
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
usr/bin/g3iploc
usr/bin/g3iploc-db
lib/systemd/system/
3 changes: 2 additions & 1 deletion g3iploc/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ override_dh_auto_clean:
override_dh_auto_build:
G3_PACKAGE_VERSION=$(DEB_VERSION) \
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
--package g3iploc
--package g3iploc --package g3iploc-db

override_dh_auto_install:
dh_auto_install
install -m 755 -D target/$(BUILD_PROFILE)/g3iploc debian/tmp/usr/bin/g3iploc
install -m 755 -D target/$(BUILD_PROFILE)/g3iploc-db debian/tmp/usr/bin/g3iploc-db
install -m 644 -D $(PACKAGE_NAME)/service/[email protected] debian/tmp/lib/systemd/system/[email protected]

override_dh_installchangelogs:
Expand Down
4 changes: 3 additions & 1 deletion g3iploc/g3iploc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,19 @@ IP Locate Service for G3 Project
%build
G3_PACKAGE_VERSION="%{version}-%{release}"
export G3_PACKAGE_VERSION
cargo build --frozen --offline --profile %{build_profile} --package g3iploc
cargo build --frozen --offline --profile %{build_profile} --package g3iploc --package g3iploc-db


%install
rm -rf $RPM_BUILD_ROOT
install -m 755 -D target/%{build_profile}/g3iploc %{buildroot}%{_bindir}/g3iploc
install -m 755 -D target/%{build_profile}/g3iploc-db %{buildroot}%{_bindir}/g3iploc-db
install -m 644 -D %{name}/service/[email protected] %{buildroot}/lib/systemd/system/[email protected]


%files
%{_bindir}/g3iploc
%{_bindir}/g3iploc-db
/lib/systemd/system/[email protected]
%license LICENSE
%license LICENSE-BUNDLED
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "g3proxy-geoip"
name = "g3iploc-db"
version = "0.1.0"
license.workspace = true
edition.workspace = true
Expand Down
File renamed without changes.

0 comments on commit 6a61eb3

Please sign in to comment.