Skip to content

jfut/nginx-module-fancyindex-rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-module-fancyindex RPM Packaging

Build Status

ngx-fancyindex RPM Packaging for RHEL/AlmaLinux/Rocky Linux/others.

Install an RPM package

  • Download
  • Install:
    • RHEL/AlmaLinux/Rocky Linux 9 x86_64
    # Non-modular package version 1.20
    dnf install nginx-module-fancyindex-0.5.2-5.el9.x86_64.rpm
    
    # AppStream module 1.22 stream
    dnf install nginx-module-fancyindex-0.5.2-5.module_el9.1.22.x86_64.rpm
    • RHEL/AlmaLinux/Rocky Linux 8 x86_64
    # AppStream module 1.16 stream
    dnf install nginx-module-fancyindex-0.5.2-5.module_el8.1.16.x86_64.rpm
    
    # AppStream module 1.18 stream
    dnf install nginx-module-fancyindex-0.5.2-5.module_el8.1.18.x86_64.rpm
    
    # AppStream module 1.20 stream
    dnf install nginx-module-fancyindex-0.5.2-5.module_el8.1.20.x86_64.rpm
    
    # AppStream module 1.22 stream
    dnf install nginx-module-fancyindex-0.5.2-5.module_el8.1.22.x86_64.rpm
    
    # EPEL module mainline stream (version: 1.23)
    # EPEL 8 Modularity was going away on February 15, 2023
    dnf install nginx-module-fancyindex-0.5.2-5.module_el8.epel.mainline.x86_64.rpm
    • RHEL/CentOS 7 x86_64
    yum install nginx-module-fancyindex-0.5.2-5.el7.x86_64.rpm
  • Add your configuration for this module (See the official documentation).
  • Restart nginx:
    systemctl restart nginx.service

If include /usr/share/nginx/modules/*.conf; is enabled in nginx.conf, this module is enabled by default. If you want to disable the module once installed, simply comment out the contents of /usr/share/nginx/modules/mod-http-fancyindex.conf.

Usage

Usage:
    build [-d] [-h] [-p PLATFORM] BUILD_IMAGE_NAME:BUILD_IMAGE_TAG[:REPOSITORY][:MODULE_VERSION]

    Options:
        -d Debug mode.

    Build for RHEL/AlmaLinux/Rocky Linux 9 + AppStream module:
        build almalinux:9
        build almalinux:9:appstream:1.22

    Build for RHEL/AlmaLinux/Rocky Linux 8 + AppStream module:
        # build almalinux:8 (version 1.14 is not supported)
        build almalinux:8:appstream:1.16
        build almalinux:8:appstream:1.18
        build almalinux:8:appstream:1.20
        build almalinux:8:appstream:1.22

    Build for RHEL/AlmaLinux/Rocky Linux 8 + EPEL Stream module:
        # EPEL 8 Modularity was going away on February 15, 2023
        build almalinux:8:epel-modular:mainline

    Build for RHEL/CentOS 7:
        build centos:7

    Build for RHEL/AlmaLinux/Rocky Linux 9 arm64v8(aarch64) + AppStream module:
        build -p arm64v8 almalinux:9
        build -p arm64v8 almalinux:9:appstream:1.22

Build RPM Packages with Docker

You can build RPM packages in Docker.

# el9 + Non-modular package version
./build almalinux:9
  • Debug shell
# el9 + debug shell
BUILD_HOSTNAME=el9.example.org ./build -d almalinux:9
/pkg/build-rpm /pkg/rpmbuild nginx-module-fancyindex.spec

# el9 + arm64v8 + debug shell
BUILD_HOSTNAME=el9.example.org ./build -d -p arm64v8 almalinux:9
/pkg/build-rpm /pkg/rpmbuild nginx-module-fancyindex.spec

# el8 + Modular package version + debug shell
BUILD_HOSTNAME=el8.example.org ./build -d almalinux:8:appstream:1.22
/pkg/build-rpm /pkg/rpmbuild nginx-module-fancyindex.spec appstream 1.22

Release

  1. Edit the Draft on the release page.
  2. Update the new version name and tag on the edit page.
  3. Check Set as a pre-release and press the Publish release button.
  4. Wait for the build by GitHub Actions to finish.
    • If the build fails due to errors such as download errors of source files, execute Re-run failed jobs.
  5. Once all release files are automatically uploaded, check Set as the latest release and press the Publish release button.

License

BSD-2-Clause