{"id":13896748,"url":"https://github.com/openresty/openresty-packaging","last_synced_at":"2025-07-17T13:31:03.376Z","repository":{"id":9727635,"uuid":"63129900","full_name":"openresty/openresty-packaging","owner":"openresty","description":"Official OpenResty packaging source and scripts for various Linux distributions and other systems","archived":false,"fork":false,"pushed_at":"2025-06-21T09:52:50.000Z","size":4440,"stargazers_count":183,"open_issues_count":36,"forks_count":90,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-06-21T10:28:12.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openresty.org/en/linux-packages.html","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openresty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-07-12T05:44:45.000Z","updated_at":"2025-06-21T09:52:53.000Z","dependencies_parsed_at":"2022-08-27T12:50:27.441Z","dependency_job_id":"c0dadf69-cb23-4536-8c1e-f89a6205333f","html_url":"https://github.com/openresty/openresty-packaging","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openresty/openresty-packaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopenresty-packaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopenresty-packaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopenresty-packaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopenresty-packaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openresty","download_url":"https://codeload.github.com/openresty/openresty-packaging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Fopenresty-packaging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265611092,"owners_count":23797812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T18:03:07.759Z","updated_at":"2025-07-17T13:31:02.901Z","avatar_url":"https://github.com/openresty.png","language":"Makefile","funding_links":[],"categories":["Makefile"],"sub_categories":[],"readme":"Name\n====\n\nopenresty-packaging - Official OpenResty packaging source and scripts for various Linux distributions.\n\nTable of Contents\n=================\n\n* [Name](#name)\n* [Description](#description)\n* [Supported Systems](#supported-systems)\n    * [Fedora](#fedora)\n    * [CentOS/RHEL](#centosrhel)\n    * [Amazon Linux](#amazon-linux)\n    * [Ubuntu/Debian](#ubuntudebian)\n* [Author](#author)\n* [Copyright and License](#copyright-and-license)\n* [See Also](#see-also)\n\nDescription\n===========\n\nThis code repository holds the source for building the official OpenResty pre-built packages published below:\n\nhttps://openresty.org/en/linux-packages.html\n\nhttps://openresty.org/en/rpm-packages.html\n\nhttps://openresty.org/en/deb-packages.html\n\nIf you just want to use these pre-built (binary) packages and the corresponding package repositories, then\nsimply follow the instructions in these pages instead.\n\nOtherwise, if you want to hack on or customize these packages yourself, for example, please read on.\n\nSupported Systems\n=================\n\nFedora\n------\n\nFor Fedora 22+:\n\n```bash\n# create the makerpm account for building rpms only:\nsudo useradd makerpm\nsudo usermod -a -G mock makerpm\nsudo passwd makerpm\n\n# install rpm build tools:\nsudo dnf install @development-tools fedora-packager rpmdevtools\n\n# install openresty's build requirements:\nsudo dnf install openssl-devel zlib-devel pcre-devel gcc make perl perl-Data-Dumper\n\n# login as makerpm:\nsudo su - makerpm\n\ncd ~\nrpmdev-setuptree\n\ncp /path/to/openresty-packaging/rpm/SOURCES/* ~/rpmbuild/SOURCES/\n\ncd ~/rpmbuild/SPECS\ncp /path/to/openresty-packaging/rpm/SPECS/*.spec ./\n\nfor file in *.spec; do\n    spectool -g -R $file\n    rpmbuild -ba $file\ndone\n```\n\nIf success, binary rpm files are under `~/rpmbuild/RPMS/` while source rpm files are under\n`~/rpmbuld/SRPMS/`.\n\nSee the [How to create an RPM package wiki page](https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages) for more details.\n\n[Back to TOC](#table-of-contents)\n\nCentOS/RHEL\n-----------\n\nFor CentOS/RHEL 6+:\n\n```bash\n# create the makerpm account for building rpms only:\nsudo useradd makerpm\nsudo groupadd mock\nsudo usermod -a -G mock makerpm\nsudo passwd makerpm\n\n# install rpm build tools:\nsudo yum install rpm-build redhat-rpm-config rpmdevtools\n\n# install openresty's build requirements:\nsudo yum install openssl-devel zlib-devel pcre-devel gcc make perl \\\n    perl-Data-Dumper libtool ElectricFence systemtap-sdt-devel valgrind-devel\n\n# login as makerpm:\nsudo su - makerpm\n\nmkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}\necho '%_topdir %(echo $HOME)/rpmbuild' \u003e ~/.rpmmacros\n\ncp /path/to/openresty-packaging/rpm/SOURCES/* ~/rpmbuild/SOURCES/\n\ncd ~/rpmbuild/SPECS\ncp /path/to/openresty-packaging/rpm/SPECS/*.spec ./\n\nfor file in *.spec; do\n    spectool -g -R $file\n    rpmbuild -ba $file\ndone\n```\n\nSee this [wiki page](https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment) for more details.\n\n[Back to TOC](#table-of-contents)\n\nAmazon Linux\n------------\n\nSimilar to Fedora. Just make sure you have installed the following package to genreate those `*-debuginfo` packages automatically:\n\n```bash\nsudo yum install redhat-rpm-config\n```\n\n[Back to TOC](#table-of-contents)\n\nUbuntu/Debian\n--------------\n\nFor Ubuntu 14.04+ and Debian 7.x+:\n\n```bash\nsudo apt-get install libtemplate-perl dh-systemd systemtap-sdt-dev perl gnupg curl make build-essential dh-make bzr-builddeb\n\ncd /path/to/openresty-packaging/deb/\nmake zlib-build\nmake pcre-build\nmake openssl-build\nmake openssl-debug-build\nmake openresty-build\nmake openresty-debug-build\nmake openresty-valgrind-build\nmake lemplate-build\nmake test-nginx-build\n```\n\nOr to build everything from scratch, just run\n\n```bash\nmake build\n```\n\nOn Debian 7.x wheezy, you'll also need to enable the `wheezy-backports` apt source.\n\nTo generate degian source packages for uploading to Launchpad PPA servers, one can add the `OPTS=-S` argument, as in\n\n```bash\nmake zlib-build OPTS=-S\nmake pcre-build OPTS=-S\n```\n\nIt is also possible to generate debian source packages for any other Ubuntu or Debian codenames. For example:\n\n```bash\nmake zlib-build DISTRO=trusty\nmake zlib-build OPTS=-S DISTRO=trusty\n```\n\n[Back to TOC](#table-of-contents)\n\nAlpine\n-------\n\n```bash\nsudo apk add alpine-sdk\n\nmkdir -p ~/.abuild\necho \"JOBS=\"`nproc` \u003e\u003e ~/.abuild/abuild.conf\n\ncd /path/to/openresty-packaging/alpine/\n\ncd openresty-zlib\nabuild -r\ncd ..\n\ncd openresty-pcre\nabuild -r\ncd ..\n\ncd openresty-openssl\nabuild -r\ncd ..\n\ncd openresty\nabuild -r\ncd ..\n\ncd lemplate\nabuild -r\ncd ..\n\n# and etc...\n```\n\nAuthor\n======\n\nYichun Zhang (agentzh) \u0026lt;agentzh@gmail.com\u0026gt;\n\n[Back to TOC](#table-of-contents)\n\nCopyright and License\n=====================\n\nThis module is licensed under the BSD license.\n\nCopyright (C) 2016-2017 by Yichun \"agentzh\" Zhang (章亦春) \u0026lt;agentzh@gmail.com\u0026gt;, OpenResty Inc.\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n[Back to TOC](#table-of-contents)\n\nSee Also\n========\n\n* [OpenResty official site](https://openresty.org/)\n\n[Back to TOC](#table-of-contents)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenresty%2Fopenresty-packaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenresty%2Fopenresty-packaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenresty%2Fopenresty-packaging/lists"}