Skip to content

Commit

Permalink
feat(24.04): add slice for libnginx-mod-http-headers-more-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
norrisjeremy committed Dec 17, 2024
1 parent af12f84 commit 8d10c8d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
26 changes: 26 additions & 0 deletions slices/libnginx-mod-http-headers-more-filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package: libnginx-mod-http-headers-more-filter

essential:
- libnginx-mod-http-headers-more-filter_copyright

slices:
modules:
essential:
# libnginx-mod-http-headers-more-filter depends on nginx-abi, which is
# a virtual package provided by nginx, hence the dependency on nginx_bins.
- libc6_libs
- libnginx-mod-http-headers-more-filter_config
- nginx_bins
contents:
/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so:

config:
contents:
# This symlink is created by the maintainer scipts
/etc/nginx/modules-enabled/50-mod-http-headers-more-filter.conf:
symlink: /usr/share/nginx/modules-available/mod-http-headers-more-filter.conf
/usr/share/nginx/modules-available/mod-http-headers-more-filter.conf:

copyright:
contents:
/usr/share/doc/libnginx-mod-http-headers-more-filter/copyright:
1 change: 1 addition & 0 deletions slices/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ slices:
- libpcre2-8-0_libs
- libssl3t64_libs
- nginx-common_config
- nginx-common_modules
- zlib1g_libs
contents:
/usr/sbin/nginx:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
summary: Integration tests for libnginx-mod-http-headers-more-filter

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 nginx_bins)"
# This will fail if loading of the NGINX module fails.
chroot "${rootfs}/" nginx -t

0 comments on commit 8d10c8d

Please sign in to comment.