@@ -122,57 +122,101 @@ jobs:
122122 with :
123123 fpm_args :
124124 " defguard-gateway-${{ env.VERSION }}-x86_64-unknown-linux-gnu=/usr/bin/defguard-gateway
125- defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
126- example-config.toml=/etc/defguard/gateway.toml.sample"
127- fpm_opts : " --architecture amd64 --output-type deb --version ${{ env.VERSION }} --package defguard-gateway-${{ env.VERSION }}-x86_64-unknown-linux-gnu.deb --after-install after-install.sh"
125+ linux/defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
126+ example-config.toml=/etc/defguard/gateway.toml"
127+ fpm_opts :
128+ " --architecture amd64
129+ --output-type deb
130+ --version ${{ env.VERSION }}
131+ --package defguard-gateway-${{ env.VERSION }}-x86_64-unknown-linux-gnu.deb
132+ --before-install linux/preinst
133+ --after-install linux/postinst
134+ --before-remove linux/prerm
135+ --after-remove linux/postrm"
128136
129137 - name : Build aarch64 DEB package
130138 uses : defGuard/fpm-action@main
131139 with :
132140 fpm_args :
133141 " defguard-gateway-${{ env.VERSION }}-aarch64-unknown-linux-gnu=/usr/bin/defguard-gateway
134- defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
135- example-config.toml=/etc/defguard/gateway.toml.sample"
136- fpm_opts : " --architecture arm64 --output-type deb --version ${{ env.VERSION }} --package defguard-gateway-${{ env.VERSION }}-aarch64-unknown-linux-gnu.deb --after-install after-install.sh"
142+ linux/defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
143+ example-config.toml=/etc/defguard/gateway.toml"
144+ fpm_opts :
145+ " --architecture arm64
146+ --output-type deb
147+ --version ${{ env.VERSION }}
148+ --package defguard-gateway-${{ env.VERSION }}-aarch64-unknown-linux-gnu.deb
149+ --before-install linux/preinst
150+ --after-install linux/postinst
151+ --before-remove linux/prerm
152+ --after-remove linux/postrm"
137153
138154 - name : Build x86_64 RPM package
139155 uses : defGuard/fpm-action@main
140156 with :
141157 fpm_args :
142158 " defguard-gateway-${{ env.VERSION }}-x86_64-unknown-linux-gnu=/usr/bin/defguard-gateway
143- defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
144- example-config.toml=/etc/defguard/gateway.toml.sample"
145- fpm_opts : " --architecture amd64 --output-type rpm --version ${{ env.VERSION }} --package defguard-gateway-${{ env.VERSION }}-x86_64-unknown-linux-gnu.rpm --after-install after-install.sh"
159+ linux/defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
160+ example-config.toml=/etc/defguard/gateway.toml"
161+ fpm_opts :
162+ " --architecture amd64
163+ --output-type rpm
164+ --version ${{ env.VERSION }}
165+ --package defguard-gateway-${{ env.VERSION }}-x86_64-unknown-linux-gnu.rpm
166+ --before-install linux/preinst
167+ --after-install linux/postinst
168+ --before-remove linux/prerm
169+ --after-remove linux/postrm"
146170
147171 - name : Build aarch64 RPM package
148172 uses : defGuard/fpm-action@main
149173 with :
150174 fpm_args :
151175 " defguard-gateway-${{ env.VERSION }}-aarch64-unknown-linux-gnu=/usr/bin/defguard-gateway
152- defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
153- example-config.toml=/etc/defguard/gateway.toml.sample"
154- fpm_opts : " --architecture arm64 --output-type rpm --version ${{ env.VERSION }} --package defguard-gateway-${{ env.VERSION }}-aarch64-unknown-linux-gnu.rpm --after-install after-install.sh"
176+ linux/defguard-gateway.service=/usr/lib/systemd/system/defguard-gateway.service
177+ example-config.toml=/etc/defguard/gateway.toml"
178+ fpm_opts :
179+ " --architecture arm64
180+ --output-type rpm
181+ --version ${{ env.VERSION }}
182+ --package defguard-gateway-${{ env.VERSION }}-aarch64-unknown-linux-gnu.rpm
183+ --before-install linux/preinst
184+ --after-install linux/postinst
185+ --before-remove linux/prerm
186+ --after-remove linux/postrm"
155187
156188 - name : Build FreeBSD package
157189 uses : defGuard/fpm-action@main
158190 with :
159191 fpm_args :
160192 " defguard-gateway-${{ env.VERSION }}-x86_64-unknown-freebsd=/usr/local/bin/defguard-gateway
161- defguard-gateway.service.freebsd=/usr/local/etc/rc.d/defguard-gateway
162- example-config.toml=/etc/defguard/gateway.toml.sample"
163- fpm_opts : " --architecture amd64 --output-type freebsd --version ${{ env.VERSION }} --package defguard-gateway-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg --freebsd-osversion '*' --depends openssl"
193+ freebsd/defguard-gateway=/usr/local/etc/rc.d/defguard-gateway
194+ example-config.toml=/etc/defguard/gateway.toml"
195+ fpm_opts :
196+ " --architecture amd64
197+ --output-type freebsd
198+ --version ${{ env.VERSION }}
199+ --package defguard-gateway-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg
200+ --freebsd-osversion '*'
201+ --depends openssl"
164202
165203 - name : Build OPNsense package
166204 uses : defGuard/fpm-action@main
167205 with :
168206 fpm_args :
169207 " defguard-gateway-${{ env.VERSION }}-x86_64-unknown-freebsd=/usr/local/bin/defguard-gateway
170- defguard-gateway.service.freebsd =/usr/local/etc/rc.d/defguard-gateway
171- example-config.toml=/etc/defguard/gateway.toml.sample
208+ freebsd/ defguard-gateway=/usr/local/etc/rc.d/defguard-gateway
209+ example-config.toml=/etc/defguard/gateway.toml
172210 defguard-rc.conf=/etc/rc.conf.d/defguard_gateway
173211 opnsense/src/etc/=/usr/local/etc/
174212 opnsense/src/opnsense/=/usr/local/opnsense/"
175- fpm_opts : " --architecture amd64 --output-type freebsd --version ${{ env.VERSION }} --package defguard-gateway-${{ env.VERSION }}_x86_64-unknown-opnsense.pkg --freebsd-osversion '*' --depends openssl"
213+ fpm_opts :
214+ " --architecture amd64
215+ --output-type freebsd
216+ --version ${{ env.VERSION }}
217+ --package defguard-gateway-${{ env.VERSION }}_x86_64-unknown-opnsense.pkg
218+ --freebsd-osversion '*'
219+ --depends openssl"
176220
177221 - name : Upload Linux x86_64 archive
178222 uses : shogo82148/actions-upload-release-asset@v1
0 commit comments