-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(24.10): add slices for NGINX GeoIP modules and dependencies
- Loading branch information
1 parent
c88c891
commit e4151b5
Showing
19 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package: geoip-bin | ||
|
||
essential: | ||
- geoip-bin_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- libc6_libs | ||
- libgeoip1t64_libs | ||
contents: | ||
/usr/bin/geoiplookup: | ||
/usr/bin/geoiplookup6: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/geoip-bin/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package: geoip-database | ||
|
||
essential: | ||
- geoip-database_copyright | ||
|
||
slices: | ||
data: | ||
contents: | ||
/usr/share/GeoIP/GeoIP.dat: | ||
/usr/share/GeoIP/GeoIPv6.dat: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/geoip-database/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package: geoipupdate | ||
|
||
essential: | ||
- geoipupdate_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- ca-certificates_data | ||
- geoipupdate_config | ||
- libc6_libs | ||
contents: | ||
/usr/bin/geoipupdate: | ||
|
||
config: | ||
contents: | ||
/etc/GeoIP.conf: | ||
|
||
services: | ||
contents: | ||
/usr/lib/systemd/system/geoipupdate.service: | ||
/usr/lib/systemd/system/geoipupdate.timer: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/geoipupdate/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package: libgeoip1t64 | ||
|
||
essential: | ||
- libgeoip1t64_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/lib/*-linux-*/libGeoIP.so.1*: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libgeoip1t64/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package: libmaxminddb0 | ||
|
||
essential: | ||
- libmaxminddb0_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/lib/*-linux-*/libmaxminddb.so.0*: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libmaxminddb0/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package: libnginx-mod-http-geoip | ||
|
||
essential: | ||
- libnginx-mod-http-geoip_copyright | ||
|
||
slices: | ||
modules: | ||
essential: | ||
# libnginx-mod-http-geoip depends on nginx-abi, which is a virtual | ||
# package provided by nginx, hence the dependency on nginx_bins. | ||
- libc6_libs | ||
- libgeoip1t64_libs | ||
- libnginx-mod-http-geoip_config | ||
- nginx_bins | ||
contents: | ||
/usr/lib/nginx/modules/ngx_http_geoip_module.so: | ||
|
||
config: | ||
contents: | ||
# This symlink is created by the maintainer scipts | ||
/etc/nginx/modules-enabled/50-mod-http-geoip.conf: | ||
symlink: /usr/share/nginx/modules-available/mod-http-geoip.conf | ||
/usr/share/nginx/modules-available/mod-http-geoip.conf: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libnginx-mod-http-geoip/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package: libnginx-mod-http-geoip2 | ||
|
||
essential: | ||
- libnginx-mod-http-geoip2_copyright | ||
|
||
slices: | ||
modules: | ||
essential: | ||
# libnginx-mod-http-geoip2 depends on nginx-abi, which is a virtual | ||
# package provided by nginx, hence the dependency on nginx_bins. | ||
- libc6_libs | ||
- libmaxminddb0_libs | ||
- libnginx-mod-http-geoip2_config | ||
- libnginx-mod-stream_modules | ||
- nginx_bins | ||
contents: | ||
/usr/lib/nginx/modules/ngx_http_geoip2_module.so: | ||
|
||
config: | ||
contents: | ||
# This symlink is created by the maintainer scipts | ||
/etc/nginx/modules-enabled/50-mod-http-geoip2.conf: | ||
symlink: /usr/share/nginx/modules-available/mod-http-geoip2.conf | ||
/usr/share/nginx/modules-available/mod-http-geoip2.conf: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libnginx-mod-http-geoip2/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package: libnginx-mod-stream-geoip | ||
|
||
essential: | ||
- libnginx-mod-stream-geoip_copyright | ||
|
||
slices: | ||
modules: | ||
essential: | ||
# libnginx-mod-stream-geoip depends on nginx-abi, which is a virtual | ||
# package provided by nginx, hence the dependency on nginx_bins. | ||
- libc6_libs | ||
- libgeoip1t64_libs | ||
- libnginx-mod-stream-geoip_config | ||
- libnginx-mod-stream_modules | ||
- nginx_bins | ||
contents: | ||
/usr/lib/nginx/modules/ngx_stream_geoip_module.so: | ||
|
||
config: | ||
contents: | ||
# This symlink is created by the maintainer scipts | ||
/etc/nginx/modules-enabled/70-mod-stream-geoip.conf: | ||
symlink: /usr/share/nginx/modules-available/mod-stream-geoip.conf | ||
/usr/share/nginx/modules-available/mod-stream-geoip.conf: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libnginx-mod-stream-geoip/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package: libnginx-mod-stream-geoip2 | ||
|
||
essential: | ||
- libnginx-mod-stream-geoip2_copyright | ||
|
||
slices: | ||
modules: | ||
essential: | ||
# libnginx-mod-stream-geoip2 depends on nginx-abi, which is a virtual | ||
# package provided by nginx, hence the dependency on nginx_bins. | ||
- libc6_libs | ||
- libmaxminddb0_libs | ||
- libnginx-mod-stream-geoip2_config | ||
- libnginx-mod-stream_modules | ||
- nginx_bins | ||
contents: | ||
/usr/lib/nginx/modules/ngx_stream_geoip2_module.so: | ||
|
||
config: | ||
contents: | ||
# This symlink is created by the maintainer scipts | ||
/etc/nginx/modules-enabled/70-mod-stream-geoip2.conf: | ||
symlink: /usr/share/nginx/modules-available/mod-stream-geoip2.conf | ||
/usr/share/nginx/modules-available/mod-stream-geoip2.conf: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libnginx-mod-stream-geoip2/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package: libnginx-mod-stream | ||
|
||
essential: | ||
- libnginx-mod-stream_copyright | ||
|
||
slices: | ||
modules: | ||
essential: | ||
# libnginx-mod-stream depends on nginx-abi, which is a virtual package | ||
# provided by nginx, hence the dependency on nginx_bins. | ||
- libc6_libs | ||
- libnginx-mod-stream_config | ||
- nginx_bins | ||
contents: | ||
/usr/lib/nginx/modules/ngx_stream_module.so: | ||
|
||
config: | ||
contents: | ||
# This symlink is created by the maintainer scipts | ||
/etc/nginx/modules-enabled/50-mod-stream.conf: | ||
symlink: /usr/share/nginx/modules-available/mod-stream.conf | ||
/usr/share/nginx/modules-available/mod-stream.conf: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/libnginx-mod-stream/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package: mmdb-bin | ||
|
||
essential: | ||
- mmdb-bin_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- libc6_libs | ||
- libmaxminddb0_libs | ||
contents: | ||
/usr/bin/mmdblookup: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/mmdb-bin/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
summary: Integration tests for geoip-bin | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices geoip-bin_bins)" | ||
chroot "${rootfs}/" geoiplookup -h | ||
chroot "${rootfs}/" geoiplookup6 -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
summary: Integration tests for geoipupdate | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices geoipupdate_bins)" | ||
chroot "${rootfs}/" geoipupdate -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
summary: Integration tests for libnginx-mod-http-geoip | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices base-files_var base-passwd_data libnginx-mod-http-geoip_modules)" | ||
# This will fail if loading of the NGINX module fails. | ||
chroot "${rootfs}/" nginx -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
summary: Integration tests for libnginx-mod-http-geoip2 | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices base-files_var base-passwd_data libnginx-mod-http-geoip2_modules)" | ||
# This will fail if loading of the NGINX module fails. | ||
chroot "${rootfs}/" nginx -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
summary: Integration tests for libnginx-mod-stream-geoip | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices base-files_var base-passwd_data libnginx-mod-stream-geoip_modules)" | ||
# This will fail if loading of the NGINX module fails. | ||
chroot "${rootfs}/" nginx -t |
9 changes: 9 additions & 0 deletions
9
tests/spread/integration/libnginx-mod-stream-geoip2/task.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
summary: Integration tests for libnginx-mod-stream-geoip2 | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices base-files_var base-passwd_data libnginx-mod-stream-geoip2_modules)" | ||
# This will fail if loading of the NGINX module fails. | ||
chroot "${rootfs}/" nginx -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
summary: Integration tests for libnginx-mod-stream | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices base-files_var base-passwd_data libnginx-mod-stream_modules)" | ||
# This will fail if loading of the NGINX module fails. | ||
chroot "${rootfs}/" nginx -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
summary: Integration tests for mmdb-bin | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices mmdb-bin_bins)" | ||
chroot "${rootfs}/" mmdblookup --version |