mirror of
https://github.com/bytedance/g3.git
synced 2026-04-28 03:30:31 +00:00
update package build files
This commit is contained in:
parent
4360f90797
commit
279ec2e5d4
11 changed files with 11 additions and 33 deletions
|
|
@ -4,7 +4,6 @@ PACKAGE_NAME := g3bench
|
|||
BUILD_PROFILE := release-lto
|
||||
|
||||
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
||||
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
@ -18,7 +17,7 @@ override_dh_auto_clean:
|
|||
override_dh_auto_build:
|
||||
G3_PACKAGE_VERSION=$(DEB_VERSION) \
|
||||
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
|
||||
--no-default-features --features $(SSL_FEATURE),rustls-ring,quic \
|
||||
--no-default-features --features rustls-ring,quic \
|
||||
--package g3bench
|
||||
|
||||
override_dh_auto_install:
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ G3 Benchmark Tool
|
|||
%build
|
||||
G3_PACKAGE_VERSION="%{version}-%{release}"
|
||||
export G3_PACKAGE_VERSION
|
||||
SSL_FEATURE=$(sh scripts/package/detect_openssl_feature.sh)
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features $SSL_FEATURE,rustls-ring,quic --package g3bench
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features rustls-ring,quic --package g3bench
|
||||
|
||||
|
||||
%install
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ PACKAGE_NAME := g3fcgen
|
|||
BUILD_PROFILE := release-lto
|
||||
|
||||
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
||||
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
@ -18,7 +17,7 @@ override_dh_auto_clean:
|
|||
override_dh_auto_build:
|
||||
G3_PACKAGE_VERSION=$(DEB_VERSION) \
|
||||
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
|
||||
--no-default-features --features $(SSL_FEATURE), \
|
||||
--no-default-features \
|
||||
--package g3fcgen
|
||||
|
||||
override_dh_auto_install:
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@ Fake Certificate Generator for G3 Project
|
|||
%build
|
||||
G3_PACKAGE_VERSION="%{version}-%{release}"
|
||||
export G3_PACKAGE_VERSION
|
||||
SSL_FEATURE=$(sh scripts/package/detect_openssl_feature.sh)
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features $SSL_FEATURE, --package g3fcgen
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --package g3fcgen
|
||||
|
||||
|
||||
%install
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ PACKAGE_NAME := g3mkcert
|
|||
BUILD_PROFILE := release-lto
|
||||
|
||||
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
||||
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
@ -18,7 +17,7 @@ override_dh_auto_clean:
|
|||
override_dh_auto_build:
|
||||
G3_PACKAGE_VERSION=$(DEB_VERSION) \
|
||||
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
|
||||
--no-default-features --features $(SSL_FEATURE), \
|
||||
--no-default-features \
|
||||
--package g3mkcert
|
||||
|
||||
override_dh_auto_install:
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@ Tool to make certificates from G3 Project
|
|||
%build
|
||||
G3_PACKAGE_VERSION="%{version}-%{release}"
|
||||
export G3_PACKAGE_VERSION
|
||||
SSL_FEATURE=$(sh scripts/package/detect_openssl_feature.sh)
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features $SSL_FEATURE, --package g3mkcert
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --package g3mkcert
|
||||
|
||||
|
||||
%install
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ BUILD_PROFILE := release-lto
|
|||
|
||||
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
||||
LUA_FEATURE ?= $(shell scripts/package/detect_lua_feature.sh)
|
||||
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
|
||||
CARES_FEATURE ?= $(shell scripts/package/detect_c-ares_feature.sh)
|
||||
|
||||
%:
|
||||
|
|
@ -20,7 +19,7 @@ override_dh_auto_clean:
|
|||
override_dh_auto_build:
|
||||
G3_PACKAGE_VERSION=$(DEB_VERSION) \
|
||||
cargo build --frozen --profile $(BUILD_PROFILE) \
|
||||
--no-default-features --features $(LUA_FEATURE),$(SSL_FEATURE),rustls-ring,quic,$(CARES_FEATURE) \
|
||||
--no-default-features --features $(LUA_FEATURE),rustls-ring,quic,$(CARES_FEATURE) \
|
||||
--package g3proxy --package g3proxy-ctl --package g3proxy-lua
|
||||
cargo build --frozen --profile $(BUILD_PROFILE) --package g3proxy-ftp
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,10 @@ Generic proxy for G3 Project
|
|||
%build
|
||||
G3_PACKAGE_VERSION="%{version}-%{release}"
|
||||
export G3_PACKAGE_VERSION
|
||||
LUA_VERSION=$(pkg-config --variable=V lua | tr -d '.')
|
||||
LUA_FEATURE=lua$LUA_VERSION
|
||||
SSL_FEATURE=$(sh scripts/package/detect_openssl_feature.sh)
|
||||
LUA_FEATURE=$(lua -v | sed 's/Lua \([0-9]\+\)[.]\([0-9]\+\)[.].*/lua\1\2/')
|
||||
CARES_FEATURE=$(sh scripts/package/detect_c-ares_feature.sh)
|
||||
export CMAKE="%{cmake_real}"
|
||||
cargo build --frozen --profile %{build_profile} --no-default-features --features $LUA_FEATURE,$SSL_FEATURE,rustls-ring,quic,$CARES_FEATURE --package g3proxy --package g3proxy-ctl --package g3proxy-lua
|
||||
cargo build --frozen --profile %{build_profile} --no-default-features --features $LUA_FEATURE,rustls-ring,quic,$CARES_FEATURE --package g3proxy --package g3proxy-ctl --package g3proxy-lua
|
||||
cargo build --frozen --profile %{build_profile} --package g3proxy-ftp
|
||||
sh %{name}/service/generate_systemd.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ PACKAGE_NAME := g3tiles
|
|||
BUILD_PROFILE := release-lto
|
||||
|
||||
DEB_VERSION ?= $(shell dpkg-parsechangelog -SVersion)
|
||||
SSL_FEATURE ?= $(shell scripts/package/detect_openssl_feature.sh)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
@ -18,7 +17,7 @@ override_dh_auto_clean:
|
|||
override_dh_auto_build:
|
||||
G3_PACKAGE_VERSION=$(DEB_VERSION) \
|
||||
cargo build --frozen --offline --profile $(BUILD_PROFILE) \
|
||||
--no-default-features --features $(SSL_FEATURE),rustls-ring,quic \
|
||||
--no-default-features --features rustls-ring,quic \
|
||||
--package g3tiles --package g3tiles-ctl
|
||||
|
||||
override_dh_auto_install:
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ Generic reverse proxy for G3 Project
|
|||
%build
|
||||
G3_PACKAGE_VERSION="%{version}-%{release}"
|
||||
export G3_PACKAGE_VERSION
|
||||
SSL_FEATURE=$(sh scripts/package/detect_openssl_feature.sh)
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features $SSL_FEATURE,rustls-ring,quic --package g3tiles --package g3tiles-ctl
|
||||
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features rustls-ring,quic --package g3tiles --package g3tiles-ctl
|
||||
sh %{name}/service/generate_systemd.sh
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if $(pkg-config --atleast-version 1.1.1 libssl)
|
||||
then
|
||||
:
|
||||
else
|
||||
echo "vendored-openssl"
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue