DefGuard / deployment

Deployment files for defguard service
Other
7 stars 5 forks source link

Cannot Install OPNsense Gateway Package #31

Open emielpopla opened 5 months ago

emielpopla commented 5 months ago

I tried to install the gateway on my OPNsense router but it gives me the following error.

fetch https://github.com/DefGuard/gateway/releases/download/v0.5.6/defguard-gateway_0.5.6_x86_64-unknown-opnsense.pkg
pkg add defguard-gateway_0.5.6_x86_64-unknown-opnsense.pkg
Installing defguard-gateway-0.5.6...
pkg: wrong architecture: Linux:5:x86:64 instead of FreeBSD:13:amd64

I could force install it but that may bring more unknown problems with it.

moubctez commented 5 months ago

It's a problem with fpm cross-building - see https://github.com/jordansissel/fpm/issues/1880.

My work-around:

mkdir -p pp zz
tar Jxf defguard-gateway.pkg -C zz
sed -e 's,Linux:5,FreeBSD:13,' zz/+MANIFEST > MANIFEST
rm zz/+COMPACT_MANIFEST zz/+MANIFEST
pkg create -M MANIFEST -o pp -r zz
teon commented 5 months ago

@moubctez that should be in our CI then during packaging - since we have a workaround. Adding to backlog.

moubctez commented 5 months ago

@teon The work-around only works on FreeBSD.

teon commented 5 months ago

@moubctez and thats what I mean - to do this workaround for opnsesne/freebsd package during CI since it has errors.

teon commented 5 months ago

Ok we need FreeBSD runner