Skip to content

Commit

Permalink
link with distro libraries (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything authored Oct 30, 2024
1 parent d87bd47 commit 7eb2b46
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN dnf install -y \
zlib-devel \
systemd-rpm-macros \
cmake-rpm-macros \
protobuf-c-devel \
perl \
&& dnf config-manager --set-enabled powertools \
&& dnf install -y \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "protobuf-c",
"version": "0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ RUN dnf install -y \
doxygen \
graphviz \
git \
json-c-devel \
protobuf-c-devel \
ninja-build \
&& dnf clean all

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "zlib",
"name": "json-c",
"version": "0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "protobuf-c",
"version": "0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN apt-get update \
doxygen \
git \
graphviz \
libprotobuf-c-dev \
libsystemd-dev \
libtool \
pkg-config \
Expand All @@ -40,6 +41,8 @@ RUN sed -Ei 's/^deb/deb [arch=amd64]/g' /etc/apt/sources.list
RUN dpkg --add-architecture arm64 && dpkg --add-architecture armhf
RUN apt-get update \
&& apt-get -y install \
libprotobuf-c-dev:arm64 \
libprotobuf-c-dev:armhf \
zlib1g-dev:arm64 \
zlib1g-dev:armhf \
&& rm -rf /var/lib/apt/lists/*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "protobuf-c",
"version": "0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ RUN apt-get update \
doxygen \
git \
graphviz \
libjson-c-dev \
libprotobuf-c-dev \
libsystemd-dev \
libtool \
pkg-config \
Expand All @@ -40,6 +42,10 @@ RUN sed -Ei 's/^deb/deb [arch=amd64]/g' /etc/apt/sources.list
RUN dpkg --add-architecture arm64 && dpkg --add-architecture armhf
RUN apt-get update \
&& apt-get -y install \
libjson-c-dev:arm64 \
libjson-c-dev:armhf \
libprotobuf-c-dev:arm64 \
libprotobuf-c-dev:armhf \
zlib1g-dev:arm64 \
zlib1g-dev:armhf \
&& rm -rf /var/lib/apt/lists/*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "json-c",
"version": "0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "protobuf-c",
"version": "0"
}
6 changes: 3 additions & 3 deletions programs/ziti-edge-tunnel/package/CPackGenConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cmake_policy(SET CMP0057 NEW)

if(CPACK_GENERATOR MATCHES "RPM")
set(CPACK_RPM_BUILDREQUIRES "cmake >= ${CMAKE_MINIMUM_REQUIRED_VERSION}, systemd-devel, gawk, gcc-c++ >= 4.9, python3, openssl-devel, zlib-devel")
set(CPACK_RPM_BUILDREQUIRES "cmake >= ${CMAKE_MINIMUM_REQUIRED_VERSION}, systemd-devel, gawk, gcc-c++ >= 4.9, json-c-devel, protobuf-c-devel, python3, openssl-devel, zlib-devel")
if(CPACK_OS_RELEASE_NAME IN_LIST CPACK_RPM_DISTRIBUTIONS AND CPACK_OS_RELEASE_VERSION VERSION_GREATER "7")
list(APPEND CPACK_RPM_BUILDREQUIRES "systemd-rpm-macros")
endif()
set(CPACK_RPM_PACKAGE_SOURCES OFF)
set(CPACK_RPM_PACKAGE_REQUIRES "iproute, gawk, systemd, libatomic, openssl-libs, zlib, polkit")
set(CPACK_RPM_PACKAGE_REQUIRES "iproute, gawk, systemd, libatomic, json-c, protobuf-c, openssl-libs, zlib, polkit")
set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_LIST_DIR}/RPM_CHANGELOG")
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
set(CPACK_RPM_PACKAGE_DESCRIPTION "The OpenZiti Edge Tunnel is a zero-trust tunneling software client.")
Expand Down Expand Up @@ -39,6 +39,6 @@ if(CPACK_GENERATOR MATCHES "DEB")
# specify "libssl3 if it exists in the repos, or nothing" as a dependency.
# systemd package on older distros does not contain `systemd-sysusers`, so include passwd for `useradd`, `groupadd`.
# login provides `/usr/sbin/nologin`.
set(CPACK_DEBIAN_PACKAGE_DEPENDS "debconf, iproute2, sed, systemd, libatomic1, libssl3 | libssl1.1 | libssl1.0.0, login, passwd, policykit-1, zlib1g")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "debconf, iproute2, sed, systemd, libatomic1, libjson-c3 | libjson-c4 | libjson-c5 , libprotobuf-c1, libssl3 | libssl1.1 | libssl1.0.0, login, passwd, policykit-1, zlib1g")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CPACK_DEB_CONFFILES};${CPACK_DEB_PRE_INSTALL};${CPACK_DEB_POST_INSTALL};${CPACK_DEB_PRE_UNINSTALL};${CPACK_DEB_POST_UNINSTALL};${CPACK_DEB_TEMPLATES}")
endif(CPACK_GENERATOR MATCHES "DEB")
4 changes: 0 additions & 4 deletions vcpkg-overlays/linux-syslibs/default/openssl/vcpkg.json

This file was deleted.

0 comments on commit 7eb2b46

Please sign in to comment.