├── .gitignore ├── README.md ├── alpine ├── openresty-debug │ ├── APKBUILD │ ├── openresty-debug.confd │ ├── openresty-debug.initd │ ├── openresty-debug.post-install │ ├── openresty-debug.pre-install │ └── restydoc-less-fix.patch ├── openresty-openssl-debug │ ├── APKBUILD │ ├── openssl-1.1.0d-sess_set_get_cb_yield.patch │ └── openssl-1.1.0j-parallel_build_fix.patch ├── openresty-openssl │ ├── APKBUILD │ ├── openssl-1.1.0d-sess_set_get_cb_yield.patch │ └── openssl-1.1.0j-parallel_build_fix.patch ├── openresty-openssl111-debug │ ├── APKBUILD │ ├── openssl-1.1.1c-sess_set_get_cb_yield.patch │ └── openssl-1.1.1f-sess_set_get_cb_yield.patch ├── openresty-openssl111 │ ├── APKBUILD │ ├── openssl-1.1.1c-sess_set_get_cb_yield.patch │ └── openssl-1.1.1f-sess_set_get_cb_yield.patch ├── openresty-openssl3-debug │ ├── APKBUILD │ └── openssl-3.4.1-sess_set_get_cb_yield.patch ├── openresty-openssl3 │ ├── APKBUILD │ └── openssl-3.4.1-sess_set_get_cb_yield.patch ├── openresty-pcre │ └── APKBUILD ├── openresty-pcre2 │ └── APKBUILD ├── openresty-zlib │ └── APKBUILD ├── openresty │ ├── APKBUILD │ ├── openresty.confd │ ├── openresty.initd │ ├── openresty.post-install │ ├── openresty.pre-install │ └── restydoc-less-fix.patch ├── perl-lemplate │ └── APKBUILD ├── update-or ├── update-pcre2 └── update-ssl3 ├── deb ├── .gitignore ├── Makefile ├── liblemplate-perl │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── rules │ │ ├── source │ │ └── format │ │ ├── upstream │ │ └── metadata │ │ └── watch ├── libtest-nginx-perl │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── rules │ │ ├── source │ │ └── format │ │ ├── upstream │ │ └── metadata │ │ └── watch ├── openresty-asan.mk ├── openresty-asan │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-asan.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-debug │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-debug.conffiles │ │ ├── openresty-debug.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl-debug │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl-debug-dev.install │ │ ├── openresty-openssl-debug.install │ │ ├── patches │ │ ├── openssl-1.0.2h-sess_set_get_cb_yield.patch │ │ ├── openssl-1.1.0d-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl-dev.install │ │ ├── openresty-openssl.install │ │ ├── patches │ │ ├── openssl-1.1.0d-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl111-asan.mk ├── openresty-openssl111-asan │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl111-asan-dev.install │ │ ├── openresty-openssl111-asan.install │ │ ├── patches │ │ ├── openssl-1.1.1f-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl111-debug │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl111-debug-dev.install │ │ ├── openresty-openssl111-debug.install │ │ ├── patches │ │ ├── openssl-1.1.1c-sess_set_get_cb_yield.patch │ │ ├── openssl-1.1.1e-sess_set_get_cb_yield.patch │ │ ├── openssl-1.1.1f-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl111 │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl111-dev.install │ │ ├── openresty-openssl111.install │ │ ├── patches │ │ ├── openssl-1.1.1c-sess_set_get_cb_yield.patch │ │ ├── openssl-1.1.1e-sess_set_get_cb_yield.patch │ │ ├── openssl-1.1.1f-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl3-asan.mk ├── openresty-openssl3-asan │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl3-asan-dev.install │ │ ├── openresty-openssl3-asan.install │ │ ├── patches │ │ ├── openssl-3.4.1-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl3-debug.mk ├── openresty-openssl3-debug │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl3-debug-dev.install │ │ ├── openresty-openssl3-debug.install │ │ ├── patches │ │ ├── openssl-3.4.1-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-openssl3.mk ├── openresty-openssl3 │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-openssl3-dev.install │ │ ├── openresty-openssl3.install │ │ ├── patches │ │ ├── openssl-3.4.1-sess_set_get_cb_yield.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-pcre-asan.mk ├── openresty-pcre-asan │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-pcre-asan-dev.install │ │ ├── openresty-pcre-asan.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-pcre │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-pcre-dev.install │ │ ├── openresty-pcre.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-pcre2-asan.mk ├── openresty-pcre2-asan │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-pcre2-asan-dev.install │ │ ├── openresty-pcre2-asan.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-pcre2.mk ├── openresty-pcre2 │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-pcre2-dev.install │ │ ├── openresty-pcre2.install │ │ ├── patches │ │ ├── pcre2-range-minus.patch │ │ └── series │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-valgrind │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-valgrind.conffiles │ │ ├── openresty-valgrind.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-zlib-asan.mk ├── openresty-zlib-asan │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-zlib-asan-dev.install │ │ ├── openresty-zlib-asan.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty-zlib │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-zlib-dev.install │ │ ├── openresty-zlib.install │ │ ├── rules │ │ └── source │ │ └── format ├── openresty │ └── debian │ │ ├── changelog.tt2 │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── openresty-opm.install │ │ ├── openresty-opm.links │ │ ├── openresty-resty.install │ │ ├── openresty-resty.links │ │ ├── openresty-restydoc.install │ │ ├── openresty-restydoc.links │ │ ├── openresty.conffiles │ │ ├── openresty.init │ │ ├── openresty.install │ │ ├── openresty.links │ │ ├── openresty.service │ │ ├── rules │ │ └── source │ │ └── format ├── to-ppa.sh ├── update-makefile-clean-targets.pl ├── update-or ├── update-pcre2 ├── update-ssl ├── update-ssl3 └── update-zlib └── rpm ├── SOURCES ├── Test-Nginx-0.25-older_perl.patch ├── nginx-1.13.6-rm_glibc_crypt_r_workaround.patch ├── openresty-1.9.15.1.patch ├── openresty.init ├── openresty.service └── pcre2-range-minus.patch └── SPECS ├── Makefile ├── openresty-asan.spec ├── openresty-debug.spec ├── openresty-openssl-asan.spec ├── openresty-openssl-debug.spec ├── openresty-openssl.spec ├── openresty-openssl111-asan.spec ├── openresty-openssl111-debug.spec ├── openresty-openssl111.spec ├── openresty-openssl3-asan.spec ├── openresty-openssl3-debug.spec ├── openresty-openssl3.spec ├── openresty-pcre-asan.spec ├── openresty-pcre.spec ├── openresty-pcre2-asan.spec ├── openresty-pcre2.spec ├── openresty-valgrind.spec ├── openresty-zlib-asan.spec ├── openresty-zlib.spec ├── openresty.spec ├── perl-IO-Tty.spec ├── perl-IPC-Run.spec ├── perl-Lemplate.spec ├── perl-Readonly.spec ├── perl-Spiffy.spec ├── perl-Test-Base.spec ├── perl-Test-Deep.spec ├── perl-Test-LongString.spec ├── perl-Test-Nginx.spec ├── perl-Test-Simple.spec ├── update-or ├── update-pcre ├── update-pcre2 ├── update-ssl ├── update-ssl111 ├── update-ssl3 └── update-zlib /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.bak 3 | *.swp 4 | *.swo 5 | 6 | *.deb 7 | *.gz 8 | *.xz 9 | *.bz2 10 | *.dsc 11 | *.build 12 | *.buildinfo 13 | *.changes -------------------------------------------------------------------------------- /alpine/openresty-debug/openresty-debug.confd: -------------------------------------------------------------------------------- 1 | # Configuration for /etc/init.d/openresty-debug 2 | 3 | cfgfile=/usr/local/openresty-debug/nginx/conf/nginx.conf 4 | app_prefix=/usr/local/openresty-debug/nginx 5 | -------------------------------------------------------------------------------- /alpine/openresty-debug/openresty-debug.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | # init.d file for alpine linux. 4 | 5 | description="OpenResty web application server (Debug version)" 6 | extra_commands="checkconfig" 7 | extra_started_commands="reload reopen upgrade" 8 | 9 | name=openresty-debug 10 | 11 | command="/usr/local/$name/bin/openresty" command_args="-c $cfgfile -p $app_prefix/" 12 | required_files="$cfgfile" 13 | 14 | start_stop_daemon_args="" 15 | pidfile="/usr/local/$name/nginx/logs/nginx.pid" 16 | 17 | depend() { 18 | need net 19 | after dns logger firewall netmount 20 | } 21 | 22 | start_pre() { 23 | $command $command_args -t -q 24 | } 25 | 26 | checkconfig() { 27 | ebegin "Checking $RC_SVCNAME configuration" 28 | start_pre 29 | eend $? 30 | } 31 | 32 | reload() { 33 | ebegin "Reloading $RC_SVCNAME configuration" 34 | start_pre && start-stop-daemon --signal HUP --pidfile $pidfile 35 | eend $? 36 | } 37 | 38 | reopen() { 39 | ebegin "Reopening $RC_SVCNAME log files" 40 | start-stop-daemon --signal USR1 --pidfile $pidfile 41 | eend $? 42 | } 43 | 44 | upgrade() { 45 | start_pre || return 1 46 | 47 | ebegin "Upgrading $RC_SVCNAME binary" 48 | 49 | einfo "Sending USR2 to old binary" 50 | start-stop-daemon --signal USR2 --pidfile $pidfile 51 | 52 | einfo "Sleeping 3 seconds before pid-files checking" 53 | sleep 3 54 | 55 | if [ ! -f $pidfile.oldbin ]; then 56 | eerror "File with old pid ($pidfile.oldbin) not found" 57 | return 1 58 | fi 59 | 60 | if [ ! -f $pidfile ]; then 61 | eerror "New binary failed to start" 62 | return 1 63 | fi 64 | 65 | einfo "Sleeping 3 seconds before WINCH" 66 | sleep 3 ; start-stop-daemon --signal 28 --pidfile $pidfile.oldbin 67 | 68 | einfo "Sending QUIT to old binary" 69 | start-stop-daemon --signal QUIT --pidfile $pidfile.oldbin 70 | 71 | einfo "Upgrade completed" 72 | 73 | eend $? "Upgrade failed" 74 | } 75 | -------------------------------------------------------------------------------- /alpine/openresty-debug/openresty-debug.post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # add something which happends after install 4 | 5 | -------------------------------------------------------------------------------- /alpine/openresty-debug/openresty-debug.pre-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # add something which happends before install 4 | 5 | -------------------------------------------------------------------------------- /alpine/openresty-debug/restydoc-less-fix.patch: -------------------------------------------------------------------------------- 1 | --- openresty-1.15.8.3/bundle/resty-cli-0.24/bin/restydoc 2 | +++ openresty-1.15.8.3-new/bundle/resty-cli-0.24/bin/restydoc 3 | @@ -40,7 +40,7 @@ 4 | if ($^O eq 'MSWin32') { 5 | $pager = 'more'; 6 | } else { 7 | - $pager = 'less -nR'; 8 | + $pager = 'less -R'; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /alpine/openresty-openssl-debug/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-openssl-debug" 4 | pkgver="1.1.0l" 5 | pkgrel=2 6 | pkgdesc="Debug version of the OpenSSL library for OpenResty" 7 | url="https://www.openssl.org/" 8 | arch="all" 9 | license="OpenSSL" 10 | depends="openresty-zlib" 11 | makedepends="perl openresty-zlib-dev ccache linux-headers" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://www.openssl.org/source/old/1.1.0/openssl-$pkgver.tar.gz 15 | openssl-1.1.0j-parallel_build_fix.patch 16 | openssl-1.1.0d-sess_set_get_cb_yield.patch 17 | " 18 | builddir="$srcdir/openssl-$pkgver/" 19 | options="!tracedeps !fhs" 20 | 21 | _ssl_prefix="/usr/local/openresty-debug/openssl" 22 | _zlib_prefix="/usr/local/openresty/zlib" 23 | 24 | build() { 25 | export CC="ccache gcc -fdiagnostics-color=always -g3" 26 | export CFLAGS= 27 | export CXXFLAGS= 28 | export CPPFLAGS= 29 | export LDFLAGS= 30 | 31 | ./config \ 32 | shared zlib no-asm -g \ 33 | enable-ssl3 enable-ssl3-method -O0 -DPURIFY \ 34 | --prefix="$_ssl_prefix" \ 35 | --libdir=lib \ 36 | -I$_zlib_prefix/include \ 37 | -L$_zlib_prefix/lib \ 38 | -Wl,"-rpath,$_zlib_prefix/lib:$_ssl_prefix/lib" 39 | 40 | sed -i 's/ -O3 / -O0 /g' Makefile 41 | 42 | make CC='ccache gcc -fdiagnostics-color=always -g3' -j$JOBS 43 | } 44 | 45 | check() { 46 | : 47 | } 48 | 49 | package() { 50 | make install_sw DESTDIR="$pkgdir" 51 | 52 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*.so* 53 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*/*.so* 54 | 55 | rm -rf $pkgdir/$_ssl_prefix/bin/c_rehash 56 | rm -rf $pkgdir/$_ssl_prefix/lib/pkgconfig 57 | rm -rf $pkgdir/$_ssl_prefix/misc 58 | } 59 | 60 | static() { 61 | if ! is_function default_static; then 62 | local i= devpkg 63 | 64 | # search for -dev package matching our prefix 65 | if [ -z "$depends_static" ]; then 66 | devpkg="${subpkgname%-libs-static}" 67 | devpkg="${devpkg%-static}" 68 | devpkg="$devpkg-dev" 69 | if subpackages_has "$devpkg"; then 70 | depends_static="$devpkg" 71 | fi 72 | fi 73 | 74 | depends="$depends_static" 75 | pkgdesc="$pkgdesc (static library)" 76 | 77 | cd "$pkgdir" || return 0 78 | local libdirs=usr/lib 79 | [ -d lib/ ] && libdirs="lib/ $libdirs" 80 | 81 | # move *.a static library 82 | for i in $(find $libdir -name '*.a'); do 83 | mkdir -p "$subpkgdir"/"${i%/*}" 84 | mv "$i" "$subpkgdir/$i" || return 1 85 | done 86 | return 0 87 | fi 88 | 89 | default_static 90 | } 91 | 92 | sha512sums="81b74149f40ea7d9f7e235820a4f977844653ad1e2b302e65e712c12193f47542fe7e3385fd1e25e3dd074e4e6d04199836cbc492656f5a7692edab5e234f4ad openssl-1.1.0l.tar.gz 93 | ab0b0d82db9075a42ebb2c13fef598a92ba34701aa8d6e572041dcaf7e5ba21dc0991e5f4ef47aff6de22cc786c18e30d64e97201b40d9f45a88a4587d05461b openssl-1.1.0j-parallel_build_fix.patch 94 | 5b79725ae768b1ba3079fcb81e084da946dd0ff5613f6b8ac4ad0a3bf16d41db094f431c9ba94d278c926c16edfb71890060bad6df066fc88ae95b297ca03753 openssl-1.1.0d-sess_set_get_cb_yield.patch" 95 | -------------------------------------------------------------------------------- /alpine/openresty-openssl-debug/openssl-1.1.0j-parallel_build_fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl 2 | index 11fecc259b..50362d3812 100644 3 | --- a/Configurations/unix-Makefile.tmpl 4 | +++ b/Configurations/unix-Makefile.tmpl 5 | @@ -77,8 +77,14 @@ 6 | # to. You're welcome. 7 | sub dependmagic { 8 | my $target = shift; 9 | - 10 | - return "$target: build_generated\n\t\$(MAKE) depend && \$(MAKE) _$target\n_$target"; 11 | + my $magic = <<"_____"; 12 | +$target: build_generated depend 13 | +\t\$(MAKE) _$target 14 | +_$target 15 | +_____ 16 | + # Remove line ending 17 | + $magic =~ s|\R$||; 18 | + return $magic; 19 | } 20 | ''; 21 | -} 22 | -------------------------------------------------------------------------------- /alpine/openresty-openssl/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-openssl" 4 | pkgver="1.1.0l" 5 | pkgrel=3 6 | pkgdesc="OpenSSL library for OpenResty" 7 | url="https://www.openssl.org/" 8 | arch="all" 9 | license="OpenSSL" 10 | depends="openresty-zlib" 11 | makedepends="perl openresty-zlib-dev ccache linux-headers" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://www.openssl.org/source/old/1.1.0/openssl-$pkgver.tar.gz 15 | openssl-1.1.0j-parallel_build_fix.patch 16 | openssl-1.1.0d-sess_set_get_cb_yield.patch 17 | " 18 | builddir="$srcdir/openssl-$pkgver/" 19 | options="!tracedeps !fhs" 20 | 21 | _ssl_prefix="/usr/local/openresty/openssl" 22 | _zlib_prefix="/usr/local/openresty/zlib" 23 | 24 | build() { 25 | export CC="ccache gcc -fdiagnostics-color=always -g3" 26 | export CFLAGS= 27 | export CXXFLAGS= 28 | export CPPFLAGS= 29 | export LDFLAGS= 30 | 31 | ./config \ 32 | shared zlib -g3 \ 33 | enable-ssl3 enable-ssl3-method \ 34 | --prefix="$_ssl_prefix" \ 35 | --libdir=lib \ 36 | -I$_zlib_prefix/include \ 37 | -L$_zlib_prefix/lib \ 38 | -Wl,"-rpath,$_zlib_prefix/lib:$_ssl_prefix/lib" 39 | 40 | make CC='ccache gcc -fdiagnostics-color=always -g3' -j$JOBS 41 | } 42 | 43 | check() { 44 | : 45 | } 46 | 47 | package() { 48 | make install_sw DESTDIR="$pkgdir" 49 | 50 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*.so* 51 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*/*.so* 52 | 53 | rm -rf $pkgdir/$_ssl_prefix/bin/c_rehash 54 | rm -rf $pkgdir/$_ssl_prefix/lib/pkgconfig 55 | rm -rf $pkgdir/$_ssl_prefix/misc 56 | } 57 | 58 | static() { 59 | if ! is_function default_static; then 60 | local i= devpkg 61 | 62 | # search for -dev package matching our prefix 63 | if [ -z "$depends_static" ]; then 64 | devpkg="${subpkgname%-libs-static}" 65 | devpkg="${devpkg%-static}" 66 | devpkg="$devpkg-dev" 67 | if subpackages_has "$devpkg"; then 68 | depends_static="$devpkg" 69 | fi 70 | fi 71 | 72 | depends="$depends_static" 73 | pkgdesc="$pkgdesc (static library)" 74 | 75 | cd "$pkgdir" || return 0 76 | local libdirs=usr/lib 77 | [ -d lib/ ] && libdirs="lib/ $libdirs" 78 | 79 | # move *.a static library 80 | for i in $(find $libdir -name '*.a'); do 81 | mkdir -p "$subpkgdir"/"${i%/*}" 82 | mv "$i" "$subpkgdir/$i" || return 1 83 | done 84 | return 0 85 | fi 86 | 87 | default_static 88 | } 89 | 90 | sha512sums="81b74149f40ea7d9f7e235820a4f977844653ad1e2b302e65e712c12193f47542fe7e3385fd1e25e3dd074e4e6d04199836cbc492656f5a7692edab5e234f4ad openssl-1.1.0l.tar.gz 91 | ab0b0d82db9075a42ebb2c13fef598a92ba34701aa8d6e572041dcaf7e5ba21dc0991e5f4ef47aff6de22cc786c18e30d64e97201b40d9f45a88a4587d05461b openssl-1.1.0j-parallel_build_fix.patch 92 | 5b79725ae768b1ba3079fcb81e084da946dd0ff5613f6b8ac4ad0a3bf16d41db094f431c9ba94d278c926c16edfb71890060bad6df066fc88ae95b297ca03753 openssl-1.1.0d-sess_set_get_cb_yield.patch" 93 | -------------------------------------------------------------------------------- /alpine/openresty-openssl/openssl-1.1.0j-parallel_build_fix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl 2 | index 11fecc259b..50362d3812 100644 3 | --- a/Configurations/unix-Makefile.tmpl 4 | +++ b/Configurations/unix-Makefile.tmpl 5 | @@ -77,8 +77,14 @@ 6 | # to. You're welcome. 7 | sub dependmagic { 8 | my $target = shift; 9 | - 10 | - return "$target: build_generated\n\t\$(MAKE) depend && \$(MAKE) _$target\n_$target"; 11 | + my $magic = <<"_____"; 12 | +$target: build_generated depend 13 | +\t\$(MAKE) _$target 14 | +_$target 15 | +_____ 16 | + # Remove line ending 17 | + $magic =~ s|\R$||; 18 | + return $magic; 19 | } 20 | ''; 21 | -} 22 | -------------------------------------------------------------------------------- /alpine/openresty-openssl111-debug/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-openssl111-debug" 4 | pkgver="1.1.1w" 5 | pkgrel=0 6 | pkgdesc="Debug version of the OpenSSL 1.1.1 library for OpenResty" 7 | url="https://www.openssl.org/" 8 | arch="all" 9 | license="OpenSSL" 10 | depends="openresty-zlib" 11 | makedepends="perl openresty-zlib-dev ccache linux-headers" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://www.openssl.org/source/openssl-$pkgver.tar.gz 15 | openssl-1.1.1f-sess_set_get_cb_yield.patch 16 | " 17 | builddir="$srcdir/openssl-$pkgver/" 18 | options="!tracedeps !fhs" 19 | 20 | _ssl_prefix="/usr/local/openresty-debug/openssl111" 21 | _zlib_prefix="/usr/local/openresty/zlib" 22 | 23 | build() { 24 | export CC="ccache gcc -fdiagnostics-color=always -g3" 25 | export CFLAGS= 26 | export CXXFLAGS= 27 | export CPPFLAGS= 28 | export LDFLAGS= 29 | 30 | ./config \ 31 | shared zlib no-asm -g \ 32 | enable-camellia enable-seed enable-rfc3779 \ 33 | enable-cms enable-md2 enable-rc5 \ 34 | enable-weak-ssl-ciphers \ 35 | enable-ssl3 enable-ssl3-method -O0 -DPURIFY \ 36 | --prefix="$_ssl_prefix" \ 37 | --libdir=lib \ 38 | -I$_zlib_prefix/include \ 39 | -L$_zlib_prefix/lib \ 40 | -Wl,"-rpath,$_zlib_prefix/lib:$_ssl_prefix/lib" 41 | 42 | sed -i 's/ -O3 / -O0 /g' Makefile 43 | 44 | make CC='ccache gcc -fdiagnostics-color=always -g3' -j$JOBS 45 | } 46 | 47 | check() { 48 | : 49 | } 50 | 51 | package() { 52 | make install_sw DESTDIR="$pkgdir" 53 | 54 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*.so* 55 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*/*.so* 56 | 57 | rm -rf $pkgdir/$_ssl_prefix/bin/c_rehash 58 | rm -rf $pkgdir/$_ssl_prefix/lib/pkgconfig 59 | rm -rf $pkgdir/$_ssl_prefix/misc 60 | } 61 | 62 | static() { 63 | if ! is_function default_static; then 64 | local i= devpkg 65 | 66 | # search for -dev package matching our prefix 67 | if [ -z "$depends_static" ]; then 68 | devpkg="${subpkgname%-libs-static}" 69 | devpkg="${devpkg%-static}" 70 | devpkg="$devpkg-dev" 71 | if subpackages_has "$devpkg"; then 72 | depends_static="$devpkg" 73 | fi 74 | fi 75 | 76 | depends="$depends_static" 77 | pkgdesc="$pkgdesc (static library)" 78 | 79 | cd "$pkgdir" || return 0 80 | local libdirs=usr/lib 81 | [ -d lib/ ] && libdirs="lib/ $libdirs" 82 | 83 | # move *.a static library 84 | for i in $(find $libdir -name '*.a'); do 85 | mkdir -p "$subpkgdir"/"${i%/*}" 86 | mv "$i" "$subpkgdir/$i" || return 1 87 | done 88 | return 0 89 | fi 90 | 91 | default_static 92 | } 93 | 94 | sha512sums="b4c625fe56a4e690b57b6a011a225ad0cb3af54bd8fb67af77b5eceac55cc7191291d96a660c5b568a08a2fbf62b4612818e7cca1bb95b2b6b4fc649b0552b6d openssl-1.1.1w.tar.gz 95 | 2b675a74ce048293fa5c80e65b665405005395c9dbd2edbd17b619dd255161ef28c92f7c1a2841dceb79b9ddacbe93313e90e0cac37c86498ea37ea1f9c4719a openssl-1.1.1f-sess_set_get_cb_yield.patch" 96 | -------------------------------------------------------------------------------- /alpine/openresty-openssl111/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-openssl111" 4 | pkgver="1.1.1w" 5 | pkgrel=0 6 | pkgdesc="OpenSSL 1.1.1 library for OpenResty" 7 | url="https://www.openssl.org/" 8 | arch="all" 9 | license="OpenSSL" 10 | depends="openresty-zlib" 11 | makedepends="perl openresty-zlib-dev ccache linux-headers" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://www.openssl.org/source/openssl-$pkgver.tar.gz 15 | openssl-1.1.1f-sess_set_get_cb_yield.patch 16 | " 17 | builddir="$srcdir/openssl-$pkgver/" 18 | options="!tracedeps !fhs" 19 | 20 | _ssl_prefix="/usr/local/openresty/openssl111" 21 | _zlib_prefix="/usr/local/openresty/zlib" 22 | 23 | build() { 24 | export CC="ccache gcc -fdiagnostics-color=always -g3" 25 | export CFLAGS= 26 | export CXXFLAGS= 27 | export CPPFLAGS= 28 | export LDFLAGS= 29 | 30 | ./config \ 31 | shared zlib -g3 \ 32 | enable-camellia enable-seed enable-rfc3779 \ 33 | enable-cms enable-md2 enable-rc5 \ 34 | enable-weak-ssl-ciphers \ 35 | enable-ssl3 enable-ssl3-method \ 36 | --prefix="$_ssl_prefix" \ 37 | --libdir=lib \ 38 | -I$_zlib_prefix/include \ 39 | -L$_zlib_prefix/lib \ 40 | -Wl,"-rpath,$_zlib_prefix/lib:$_ssl_prefix/lib" 41 | 42 | make CC='ccache gcc -fdiagnostics-color=always -g3' -j$JOBS 43 | } 44 | 45 | check() { 46 | : 47 | } 48 | 49 | package() { 50 | make install_sw DESTDIR="$pkgdir" 51 | 52 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*.so* 53 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*/*.so* 54 | 55 | rm -rf $pkgdir/$_ssl_prefix/bin/c_rehash 56 | rm -rf $pkgdir/$_ssl_prefix/lib/pkgconfig 57 | rm -rf $pkgdir/$_ssl_prefix/misc 58 | } 59 | 60 | static() { 61 | if ! is_function default_static; then 62 | local i= devpkg 63 | 64 | # search for -dev package matching our prefix 65 | if [ -z "$depends_static" ]; then 66 | devpkg="${subpkgname%-libs-static}" 67 | devpkg="${devpkg%-static}" 68 | devpkg="$devpkg-dev" 69 | if subpackages_has "$devpkg"; then 70 | depends_static="$devpkg" 71 | fi 72 | fi 73 | 74 | depends="$depends_static" 75 | pkgdesc="$pkgdesc (static library)" 76 | 77 | cd "$pkgdir" || return 0 78 | local libdirs=usr/lib 79 | [ -d lib/ ] && libdirs="lib/ $libdirs" 80 | 81 | # move *.a static library 82 | for i in $(find $libdir -name '*.a'); do 83 | mkdir -p "$subpkgdir"/"${i%/*}" 84 | mv "$i" "$subpkgdir/$i" || return 1 85 | done 86 | return 0 87 | fi 88 | 89 | default_static 90 | } 91 | 92 | sha512sums=" 93 | b4c625fe56a4e690b57b6a011a225ad0cb3af54bd8fb67af77b5eceac55cc7191291d96a660c5b568a08a2fbf62b4612818e7cca1bb95b2b6b4fc649b0552b6d openssl-1.1.1w.tar.gz 94 | 2b675a74ce048293fa5c80e65b665405005395c9dbd2edbd17b619dd255161ef28c92f7c1a2841dceb79b9ddacbe93313e90e0cac37c86498ea37ea1f9c4719a openssl-1.1.1f-sess_set_get_cb_yield.patch 95 | " 96 | -------------------------------------------------------------------------------- /alpine/openresty-openssl3-debug/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-openssl3-debug" 4 | pkgver="3.4.1" 5 | pkgrel=0 6 | pkgdesc="OpenSSL 3.0 library for OpenResty" 7 | url="https://www.openssl.org/" 8 | arch="all" 9 | license="OpenSSL" 10 | depends="openresty-zlib" 11 | makedepends="perl openresty-zlib-dev ccache linux-headers" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://github.com/openssl/openssl/releases/download/openssl-$pkgver/openssl-$pkgver.tar.gz 15 | openssl-3.4.1-sess_set_get_cb_yield.patch 16 | " 17 | builddir="$srcdir/openssl-$pkgver/" 18 | options="!tracedeps !fhs" 19 | 20 | _ssl_prefix="/usr/local/openresty-debug/openssl3" 21 | _zlib_prefix="/usr/local/openresty/zlib" 22 | 23 | build() { 24 | export CC="ccache gcc -fdiagnostics-color=always -g" 25 | export CFLAGS= 26 | export CXXFLAGS= 27 | export CPPFLAGS= 28 | export LDFLAGS= 29 | 30 | ./config \ 31 | shared zlib -g \ 32 | --libdir=lib \ 33 | enable-camellia enable-seed enable-rfc3779 \ 34 | enable-cms enable-md2 enable-rc5 \ 35 | enable-weak-ssl-ciphers \ 36 | enable-ssl3 enable-ssl3-method \ 37 | enable-md2 enable-ktls enable-fips\ 38 | --prefix="$_ssl_prefix" \ 39 | -I$_zlib_prefix/include \ 40 | -L$_zlib_prefix/lib \ 41 | -Wl,"-rpath,$_zlib_prefix/lib:$_ssl_prefix/lib" 42 | 43 | sed -i 's/ -O3 / -O0 /g' Makefile 44 | make CC='ccache gcc -fdiagnostics-color=always -g' -j$JOBS 45 | } 46 | 47 | check() { 48 | : 49 | } 50 | 51 | package() { 52 | make install_sw DESTDIR="$pkgdir" 53 | 54 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*.so* 55 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*/*.so* 56 | 57 | rm -rf $pkgdir/$_ssl_prefix/bin/c_rehash 58 | } 59 | 60 | static() { 61 | if ! is_function default_static; then 62 | local i= devpkg 63 | 64 | # search for -dev package matching our prefix 65 | if [ -z "$depends_static" ]; then 66 | devpkg="${subpkgname%-libs-static}" 67 | devpkg="${devpkg%-static}" 68 | devpkg="$devpkg-dev" 69 | if subpackages_has "$devpkg"; then 70 | depends_static="$devpkg" 71 | fi 72 | fi 73 | 74 | depends="$depends_static" 75 | pkgdesc="$pkgdesc (static library)" 76 | 77 | cd "$pkgdir" || return 0 78 | local libdirs=usr/lib 79 | [ -d lib/ ] && libdirs="lib/ $libdirs" 80 | 81 | # move *.a static library 82 | for i in $(find $libdir -name '*.a'); do 83 | mkdir -p "$subpkgdir"/"${i%/*}" 84 | mv "$i" "$subpkgdir/$i" || return 1 85 | done 86 | return 0 87 | fi 88 | 89 | default_static 90 | } 91 | 92 | sha512sums=" 93 | 1de6307c587686711f05d1e96731c43526fa3af51e4cd94c06c880954b67f6eb4c7db3177f0ea5937d41bc1f8cadcf5bce75025b5c1a46a469376960f1001c5f openssl-3.4.1.tar.gz 94 | afe8bf77dedb5556fa067288d99ef13d01e0c1d8de6ec5dbb10fa609087219582f30f10316db5e36692d6122872853af6b45980aecb003bd80115549ec828c05 openssl-3.4.1-sess_set_get_cb_yield.patch 95 | " 96 | -------------------------------------------------------------------------------- /alpine/openresty-openssl3/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-openssl3" 4 | pkgver="3.4.1" 5 | pkgrel=0 6 | pkgdesc="OpenSSL 3.0 library for OpenResty" 7 | url="https://www.openssl.org/" 8 | arch="all" 9 | license="OpenSSL" 10 | depends="openresty-zlib" 11 | makedepends="perl openresty-zlib-dev ccache linux-headers" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://github.com/openssl/openssl/releases/download/openssl-$pkgver/openssl-$pkgver.tar.gz 15 | openssl-3.4.1-sess_set_get_cb_yield.patch 16 | " 17 | builddir="$srcdir/openssl-$pkgver/" 18 | options="!tracedeps !fhs" 19 | 20 | _ssl_prefix="/usr/local/openresty/openssl3" 21 | _zlib_prefix="/usr/local/openresty/zlib" 22 | 23 | build() { 24 | export CC="ccache gcc -fdiagnostics-color=always -g" 25 | export CFLAGS= 26 | export CXXFLAGS= 27 | export CPPFLAGS= 28 | export LDFLAGS= 29 | 30 | ./config \ 31 | shared zlib -g \ 32 | --libdir=lib \ 33 | enable-camellia enable-seed enable-rfc3779 \ 34 | enable-cms enable-md2 enable-rc5 \ 35 | enable-weak-ssl-ciphers \ 36 | enable-ssl3 enable-ssl3-method \ 37 | enable-md2 enable-ktls enable-fips\ 38 | --prefix="$_ssl_prefix" \ 39 | -I$_zlib_prefix/include \ 40 | -L$_zlib_prefix/lib \ 41 | -Wl,"-rpath,$_zlib_prefix/lib:$_ssl_prefix/lib" 42 | 43 | make CC='ccache gcc -fdiagnostics-color=always -g' -j$JOBS 44 | } 45 | 46 | check() { 47 | : 48 | } 49 | 50 | package() { 51 | make install_sw DESTDIR="$pkgdir" 52 | 53 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*.so* 54 | chmod 0755 $pkgdir/$_ssl_prefix/lib/*/*.so* 55 | 56 | rm -rf $pkgdir/$_ssl_prefix/bin/c_rehash 57 | } 58 | 59 | static() { 60 | if ! is_function default_static; then 61 | local i= devpkg 62 | 63 | # search for -dev package matching our prefix 64 | if [ -z "$depends_static" ]; then 65 | devpkg="${subpkgname%-libs-static}" 66 | devpkg="${devpkg%-static}" 67 | devpkg="$devpkg-dev" 68 | if subpackages_has "$devpkg"; then 69 | depends_static="$devpkg" 70 | fi 71 | fi 72 | 73 | depends="$depends_static" 74 | pkgdesc="$pkgdesc (static library)" 75 | 76 | cd "$pkgdir" || return 0 77 | local libdirs=usr/lib 78 | [ -d lib/ ] && libdirs="lib/ $libdirs" 79 | 80 | # move *.a static library 81 | for i in $(find $libdir -name '*.a'); do 82 | mkdir -p "$subpkgdir"/"${i%/*}" 83 | mv "$i" "$subpkgdir/$i" || return 1 84 | done 85 | return 0 86 | fi 87 | 88 | default_static 89 | } 90 | 91 | sha512sums=" 92 | 1de6307c587686711f05d1e96731c43526fa3af51e4cd94c06c880954b67f6eb4c7db3177f0ea5937d41bc1f8cadcf5bce75025b5c1a46a469376960f1001c5f openssl-3.4.1.tar.gz 93 | afe8bf77dedb5556fa067288d99ef13d01e0c1d8de6ec5dbb10fa609087219582f30f10316db5e36692d6122872853af6b45980aecb003bd80115549ec828c05 openssl-3.4.1-sess_set_get_cb_yield.patch 94 | " 95 | -------------------------------------------------------------------------------- /alpine/openresty-zlib/APKBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Yichun Zhang 2 | # Maintainer: Yichun Zhang 3 | pkgname="openresty-zlib" 4 | pkgver="1.3.1" 5 | pkgrel=0 6 | pkgdesc="The zlib compression library for OpenResty" 7 | url="https://www.zlib.net/" 8 | arch="all" 9 | license="zlib and Boost" 10 | #depends="" 11 | makedepends="" 12 | #install="" 13 | subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" 14 | source="https://www.zlib.net/fossils/zlib-$pkgver.tar.gz" 15 | options="!tracedeps !fhs" 16 | builddir="$srcdir/zlib-$pkgver/" 17 | 18 | _zlib_prefix=/usr/local/openresty/zlib 19 | 20 | build() { 21 | export CC="ccache gcc -fdiagnostics-color=always -g3" 22 | export CFLAGS= 23 | export CXXFLAGS= 24 | export CPPFLAGS= 25 | export LDFLAGS= 26 | 27 | ./configure --prefix="$_zlib_prefix" 28 | make -j$JOBS CFLAGS='-O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -g3' \ 29 | SFLAGS='-O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -g3' \ 30 | CC='ccache gcc -fdiagnostics-color=always' 31 | } 32 | 33 | check() { 34 | : 35 | } 36 | 37 | package() { 38 | make install DESTDIR="$pkgdir" 39 | rm -rf $pkgdir/$_zlib_prefix/share 40 | } 41 | 42 | static() { 43 | if ! is_function default_static; then 44 | local i= devpkg 45 | 46 | # search for -dev package matching our prefix 47 | if [ -z "$depends_static" ]; then 48 | devpkg="${subpkgname%-libs-static}" 49 | devpkg="${devpkg%-static}" 50 | devpkg="$devpkg-dev" 51 | if subpackages_has "$devpkg"; then 52 | depends_static="$devpkg" 53 | fi 54 | fi 55 | 56 | depends="$depends_static" 57 | pkgdesc="$pkgdesc (static library)" 58 | 59 | cd "$pkgdir" || return 0 60 | local libdirs=usr/lib 61 | [ -d lib/ ] && libdirs="lib/ $libdirs" 62 | 63 | # move *.a static library 64 | for i in $(find $libdir -name '*.a'); do 65 | mkdir -p "$subpkgdir"/"${i%/*}" 66 | mv "$i" "$subpkgdir/$i" || return 1 67 | done 68 | return 0 69 | fi 70 | 71 | default_static 72 | } 73 | 74 | sha512sums="580677aad97093829090d4b605ac81c50327e74a6c2de0b85dd2e8525553f3ddde17556ea46f8f007f89e435493c9a20bc997d1ef1c1c2c23274528e3c46b94f zlib-1.3.1.tar.gz" 75 | -------------------------------------------------------------------------------- /alpine/openresty/openresty.confd: -------------------------------------------------------------------------------- 1 | # Configuration for /etc/init.d/openresty 2 | 3 | cfgfile=/usr/local/openresty/nginx/conf/nginx.conf 4 | app_prefix=/usr/local/openresty/nginx 5 | -------------------------------------------------------------------------------- /alpine/openresty/openresty.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | # init.d file for alpine linux. 4 | 5 | description="OpenResty web application server" 6 | extra_commands="checkconfig" 7 | extra_started_commands="reload reopen upgrade" 8 | 9 | name=openresty 10 | 11 | command="/usr/local/$name/bin/$name" command_args="-c $cfgfile -p $app_prefix/" 12 | required_files="$cfgfile" 13 | 14 | start_stop_daemon_args="" 15 | pidfile="/usr/local/$name/nginx/logs/nginx.pid" 16 | 17 | depend() { 18 | need net 19 | after dns logger firewall netmount 20 | } 21 | 22 | start_pre() { 23 | $command $command_args -t -q 24 | } 25 | 26 | checkconfig() { 27 | ebegin "Checking $RC_SVCNAME configuration" 28 | start_pre 29 | eend $? 30 | } 31 | 32 | reload() { 33 | ebegin "Reloading $RC_SVCNAME configuration" 34 | start_pre && start-stop-daemon --signal HUP --pidfile $pidfile 35 | eend $? 36 | } 37 | 38 | reopen() { 39 | ebegin "Reopening $RC_SVCNAME log files" 40 | start-stop-daemon --signal USR1 --pidfile $pidfile 41 | eend $? 42 | } 43 | 44 | upgrade() { 45 | start_pre || return 1 46 | 47 | ebegin "Upgrading $RC_SVCNAME binary" 48 | 49 | einfo "Sending USR2 to old binary" 50 | start-stop-daemon --signal USR2 --pidfile $pidfile 51 | 52 | einfo "Sleeping 3 seconds before pid-files checking" 53 | sleep 3 54 | 55 | if [ ! -f $pidfile.oldbin ]; then 56 | eerror "File with old pid ($pidfile.oldbin) not found" 57 | return 1 58 | fi 59 | 60 | if [ ! -f $pidfile ]; then 61 | eerror "New binary failed to start" 62 | return 1 63 | fi 64 | 65 | einfo "Sleeping 3 seconds before WINCH" 66 | sleep 3 ; start-stop-daemon --signal 28 --pidfile $pidfile.oldbin 67 | 68 | einfo "Sending QUIT to old binary" 69 | start-stop-daemon --signal QUIT --pidfile $pidfile.oldbin 70 | 71 | einfo "Upgrade completed" 72 | 73 | eend $? "Upgrade failed" 74 | } 75 | -------------------------------------------------------------------------------- /alpine/openresty/openresty.post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # add something which happends after install 4 | 5 | -------------------------------------------------------------------------------- /alpine/openresty/openresty.pre-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # add something which happends before install 4 | 5 | -------------------------------------------------------------------------------- /alpine/openresty/restydoc-less-fix.patch: -------------------------------------------------------------------------------- 1 | --- openresty-1.15.8.3/bundle/resty-cli-0.24/bin/restydoc 2 | +++ openresty-1.15.8.3-new/bundle/resty-cli-0.24/bin/restydoc 3 | @@ -40,7 +40,7 @@ 4 | if ($^O eq 'MSWin32') { 5 | $pager = 'more'; 6 | } else { 7 | - $pager = 'less -nR'; 8 | + $pager = 'less -R'; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /alpine/perl-lemplate/APKBUILD: -------------------------------------------------------------------------------- 1 | # Automatically generated by apkbuild-cpan, template 2 2 | # Contributor: Yichun Zhang 3 | # Maintainer: Yichun Zhang 4 | pkgname=perl-lemplate 5 | _pkgreal=Lemplate 6 | pkgver=0.15 7 | pkgrel=0 8 | pkgdesc="OpenResty/Lua template framework implementing Perl's TT2 templating language" 9 | url="https://metacpan.org/release/Lemplate/" 10 | arch="noarch" 11 | license="GPL-1.0-or-later Artistic-1.0-Perl" 12 | cpandepends="perl-template-toolkit perl-file-find-rule" 13 | cpanmakedepends="perl-ipc-run3" 14 | cpancheckdepends="" 15 | depends="$cpandepends" 16 | makedepends="perl-dev $cpanmakedepends" 17 | checkdepends="$cpancheckdepends" 18 | subpackages="$pkgname-doc" 19 | source="https://cpan.metacpan.org/authors/id/A/AG/AGENT/Lemplate-$pkgver.tar.gz" 20 | builddir="$srcdir/$_pkgreal-$pkgver" 21 | 22 | build() { 23 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') 24 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor 25 | make 26 | } 27 | 28 | check() { 29 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') 30 | make test 31 | } 32 | 33 | package() { 34 | make DESTDIR="$pkgdir" install 35 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete 36 | } 37 | 38 | sha512sums="ca744bb1cca9d930da592a41fe447afa38d2f8a87f13c764622c42d0c059129a747df7c4b43aa9cd8afb1f1d79ae91bd21d3ddd7b5771f06a1a29691188ab314 Lemplate-0.15.tar.gz" 39 | -------------------------------------------------------------------------------- /deb/.gitignore: -------------------------------------------------------------------------------- 1 | openresty*/[^d]* 2 | openresty*/d[^e]* 3 | openresty*/de[^b]* 4 | openresty*/*.* 5 | openresty*/debian/*.log 6 | openresty*/debian/*.substvars 7 | openresty*/debian/changelog 8 | openresty*/debian/tmp/ 9 | openresty*/debian/files 10 | openresty*/debian/debhelper-build-stamp 11 | openresty*/debian/.debhelper/ 12 | lib*-perl/[^d]* 13 | lib*-perl*/d[^e]* 14 | lib*-perl/de[^b]* 15 | lib*-perl/*.* 16 | lib*-perl/debian/lib*-perl* 17 | lib*-perl/debian/changelog 18 | lib*-perl/debian/tmp/ 19 | lib*-perl/debian/files 20 | lib*-perl/debian/debhelper-build-stamp 21 | lib*-perl/debian/.debhelper/ 22 | upload 23 | go 24 | [a-z].txt 25 | *.upload 26 | openresty-debug/debian/openresty-debug-dbgsym/ 27 | openresty-debug/debian/openresty-debug/ 28 | openresty-openssl/debian/openresty-openssl-dbgsym/ 29 | openresty-openssl/debian/openresty-openssl-dev/ 30 | openresty-openssl/debian/openresty-openssl/ 31 | openresty-openssl111-debug/debian/openresty-openssl111-debug-dbgsym/ 32 | openresty-openssl111-debug/debian/openresty-openssl111-debug-dev/ 33 | openresty-openssl111-debug/debian/openresty-openssl111-debug/ 34 | openresty-openssl111/debian/openresty-openssl111-dbgsym/ 35 | openresty-openssl111/debian/openresty-openssl111-dev/ 36 | openresty-openssl111/debian/openresty-openssl111/ 37 | openresty-pcre/debian/openresty-pcre-dbgsym/ 38 | openresty-pcre/debian/openresty-pcre-dev/ 39 | openresty-pcre/debian/openresty-pcre/ 40 | openresty-valgrind/debian/openresty-valgrind-dbgsym/ 41 | openresty-valgrind/debian/openresty-valgrind/ 42 | openresty-zlib/debian/openresty-zlib-dbgsym/ 43 | openresty-zlib/debian/openresty-zlib-dev/ 44 | openresty-zlib/debian/openresty-zlib/ 45 | openresty/debian/openresty-dbgsym/ 46 | openresty/debian/openresty-opm/ 47 | openresty/debian/openresty-resty/ 48 | openresty/debian/openresty-restydoc/ 49 | openresty/debian/openresty.postinst.debhelper 50 | openresty/debian/openresty.postrm.debhelper 51 | openresty/debian/openresty.prerm.debhelper 52 | openresty/debian/openresty/ 53 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | liblemplate-perl (0.15-2~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * Updated for newer Perl and fixed bug in perllocal.pod. 4 | 5 | -- OpenResty Admin Thu, 15 Jun 2017 12:57:55 -0700 6 | 7 | liblemplate-perl (0.15-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * Upgraded to CPAN release 0.15. 10 | 11 | -- OpenResty Admin Thu, 15 Jun 2017 12:57:55 -0700 12 | 13 | liblemplate-perl (0.14-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * Fixed the repository link. 16 | 17 | -- OpenResty Admin Tue, 6 Jun 2017 12:57:55 -0700 18 | 19 | liblemplate-perl (0.13-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * Initial Release. 22 | 23 | -- OpenResty Admin Tue, 6 Jun 2017 12:57:55 -0700 24 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/control: -------------------------------------------------------------------------------- 1 | Source: liblemplate-perl 2 | Section: perl 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9) 6 | Build-Depends-Indep: perl, libipc-run3-perl, libfile-find-rule-perl, 7 | libtemplate-perl, libtext-glob-perl, libnumber-compare-perl 8 | Standards-Version: 3.9.8 9 | Homepage: https://metacpan.org/release/Lemplate 10 | 11 | Package: liblemplate-perl 12 | Architecture: all 13 | Depends: ${misc:Depends}, ${perl:Depends}, perl, libfile-find-rule-perl, libtemplate-perl 14 | Description: OpenResty/Lua template framework implementing Perl's TT2 templating language 15 | (no description was found) 16 | . 17 | This description was automagically extracted from the module by dh-make-perl. 18 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/copyright: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Source: https://metacpan.org/release/Lemplate 3 | Upstream-Contact: Yichun Zhang (agentzh), , OpenResty Inc. 4 | Upstream-Name: Lemplate 5 | DISCLAIMER: This copyright info was automatically extracted 6 | from the perl module. It may not be accurate, so you better 7 | check the module sources in order to ensure the module for its 8 | inclusion in Debian or for general legal information. Please, 9 | if licensing information is incorrectly generated, file a bug 10 | on dh-make-perl. 11 | NOTE: Don't forget to remove this disclaimer once you are happy 12 | with this file. 13 | 14 | Files: * 15 | Copyright: Yichun Zhang (agentzh), , OpenResty Inc. 16 | License: 17 | 18 | Files: debian/* 19 | Copyright: 2017, Yichun Zhang 20 | License: Artistic or GPL-1+ 21 | 22 | License: Artistic 23 | This program is free software; you can redistribute it and/or modify 24 | it under the terms of the Artistic License, which comes with Perl. 25 | . 26 | On Debian systems, the complete text of the Artistic License can be 27 | found in `/usr/share/common-licenses/Artistic'. 28 | 29 | License: GPL-1+ 30 | This program is free software; you can redistribute it and/or modify 31 | it under the terms of the GNU General Public License as published by 32 | the Free Software Foundation; either version 1, or (at your option) 33 | any later version. 34 | . 35 | On Debian systems, the complete text of version 1 of the GNU General 36 | Public License can be found in `/usr/share/common-licenses/GPL-1'. 37 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | export NJBS = `nproc` 9 | 10 | DESTDIR = $(CURDIR)/debian/liblemplate-perl 11 | 12 | %: 13 | dh $@ --parallel 14 | 15 | override_dh_auto_configure: 16 | perl Makefile.PL 17 | 18 | override_dh_usrlocal: 19 | 20 | override_dh_install: 21 | dh_install 22 | find $(DESTDIR)/usr/local/lib -name perllocal.pod -delete 23 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/upstream/metadata: -------------------------------------------------------------------------------- 1 | --- 2 | Archive: CPAN 3 | Contact: Yichun Zhang (agentzh), , OpenResty Inc. 4 | Name: Lemplate 5 | Repository: https://github.com/openresty/lemplate 6 | -------------------------------------------------------------------------------- /deb/liblemplate-perl/debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | https://metacpan.org/release/Lemplate .*/Lemplate-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ 3 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | libtest-nginx-perl (0.29-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded to CPAN release 0.29. 4 | 5 | -- OpenResty Admin Tue, 15 May 2018 20:00:57 -0700 6 | 7 | libtest-nginx-perl (0.28-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded to CPAN release 0.28. 10 | 11 | -- OpenResty Admin Tue, 15 May 2018 20:00:57 -0700 12 | 13 | libtest-nginx-perl (0.27-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded to CPAN release 0.27. 16 | 17 | -- OpenResty Admin Tue, 15 May 2018 20:00:57 -0700 18 | 19 | libtest-nginx-perl (0.26-3~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * Excluded perllocal.pod. 22 | 23 | -- OpenResty Admin Tue, 15 May 2018 20:00:57 -0700 24 | 25 | libtest-nginx-perl (0.26-2~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * Rebuilt with new Perl. 28 | 29 | -- OpenResty Admin Tue, 15 May 2018 15:00:57 -0700 30 | 31 | libtest-nginx-perl (0.26-1~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * Initial Release. 34 | 35 | -- OpenResty Admin Tue, 6 Jun 2017 15:00:57 -0700 36 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/control: -------------------------------------------------------------------------------- 1 | Source: libtest-nginx-perl 2 | Section: perl 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9) 6 | Build-Depends-Indep: perl, libencode-perl, libfile-path-perl, libfile-temp-perl, 7 | libhttp-message-perl, liblist-moreutils-perl, libwww-perl, libtest-base-perl, 8 | libtest-longstring-perl, libtext-diff-perl, libtime-hires-perl, liburi-perl, 9 | libipc-run-perl 10 | Standards-Version: 3.9.8 11 | Homepage: https://metacpan.org/release/Test-Nginx 12 | 13 | Package: libtest-nginx-perl 14 | Architecture: all 15 | Depends: ${misc:Depends}, ${perl:Depends}, 16 | perl, libencode-perl, libfile-path-perl, libfile-temp-perl, 17 | libhttp-message-perl, liblist-moreutils-perl, libwww-perl, libtest-base-perl, 18 | libtest-longstring-perl, libtext-diff-perl, libtime-hires-perl, liburi-perl, 19 | libipc-run-perl 20 | Description: Data-driven test scaffold for Nginx C module and Nginx/OpenResty-based libraries and applications 21 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/copyright: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Source: https://metacpan.org/release/Test-Nginx 3 | Upstream-Contact: Yichun Zhang (agentzh) C<< >>, OpenResty Inc. 4 | Upstream-Name: Test-Nginx 5 | DISCLAIMER: This copyright info was automatically extracted 6 | from the perl module. It may not be accurate, so you better 7 | check the module sources in order to ensure the module for its 8 | inclusion in Debian or for general legal information. Please, 9 | if licensing information is incorrectly generated, file a bug 10 | on dh-make-perl. 11 | NOTE: Don't forget to remove this disclaimer once you are happy 12 | with this file. 13 | 14 | Files: * 15 | Copyright: Yichun Zhang (agentzh) C<< >>, OpenResty Inc. 16 | License: 17 | 18 | Files: debian/* 19 | Copyright: 2017, Yichun Zhang 20 | License: Artistic or GPL-1+ 21 | 22 | License: Artistic 23 | This program is free software; you can redistribute it and/or modify 24 | it under the terms of the Artistic License, which comes with Perl. 25 | . 26 | On Debian systems, the complete text of the Artistic License can be 27 | found in `/usr/share/common-licenses/Artistic'. 28 | 29 | License: GPL-1+ 30 | This program is free software; you can redistribute it and/or modify 31 | it under the terms of the GNU General Public License as published by 32 | the Free Software Foundation; either version 1, or (at your option) 33 | any later version. 34 | . 35 | On Debian systems, the complete text of version 1 of the GNU General 36 | Public License can be found in `/usr/share/common-licenses/GPL-1'. 37 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | export NJBS = `nproc` 9 | 10 | DESTDIR = $(CURDIR)/debian/libtest-nginx-perl 11 | 12 | %: 13 | dh $@ --parallel 14 | 15 | override_dh_auto_configure: 16 | perl Makefile.PL 17 | 18 | override_dh_usrlocal: 19 | 20 | override_dh_install: 21 | dh_install 22 | find $(DESTDIR)/usr/local/lib -name perllocal.pod -delete 23 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/upstream/metadata: -------------------------------------------------------------------------------- 1 | --- 2 | Archive: CPAN 3 | Contact: Yichun Zhang (agentzh) C<< >>, OpenResty Inc. 4 | Name: Test-Nginx 5 | Repository: https://github.com/openresty/test-nginx 6 | -------------------------------------------------------------------------------- /deb/libtest-nginx-perl/debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | https://metacpan.org/release/Test-Nginx .*/Test-Nginx-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ 3 | -------------------------------------------------------------------------------- /deb/openresty-asan.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | OPENRESTY_ASAN_VER := $(OR_VER) 5 | 6 | .PHONY: openresty-asan-download 7 | openresty-asan-download: 8 | wget -nH --cut-dirs=100 --mirror 'https://openresty.org/download/openresty-$(OPENRESTY_ASAN_VER).tar.gz' 9 | rm -rf openresty-asan_$(OPENRESTY_ASAN_VER) 10 | mkdir -p openresty-asan_$(OPENRESTY_ASAN_VER) 11 | tar -xf openresty-$(OPENRESTY_ASAN_VER).tar.gz --strip-components=1 -C openresty-asan_$(OPENRESTY_ASAN_VER) 12 | tar -czf openresty-asan_$(OPENRESTY_ASAN_VER).orig.tar.gz openresty-asan_$(OPENRESTY_ASAN_VER) 13 | 14 | openresty-asan-clean: 15 | -cd openresty-asan && debclean 16 | -find openresty-asan -maxdepth 1 ! -name 'debian' ! -name 'openresty-asan' -print | xargs rm -rf 17 | rm -rf openresty-asan*.deb 18 | rm -rf openresty-asan_*.* 19 | 20 | .PHONY: openresty-asan-build 21 | openresty-asan-build: openresty-asan-clean openresty-asan-download 22 | sudo apt-get -y -q install ccache make perl systemtap-sdt-dev gcc valgrind openresty-zlib-asan-dev openresty-openssl3-asan-dev openresty-pcre2-asan-dev 23 | sudo apt-get -y -q install --only-upgrade ccache make perl systemtap-sdt-dev gcc valgrind openresty-zlib-asan-dev openresty-openssl3-asan-dev openresty-pcre2-asan-dev 24 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 25 | tar xf openresty-asan_$(OPENRESTY_ASAN_VER).orig.tar.gz --strip-components=1 -C openresty-asan 26 | cd openresty-asan \ 27 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 28 | && debuild --no-lintian $(OPTS) -j$(JOBS) 29 | #if [ -f ./upload ]; then ./upload || exit 1; fi 30 | -------------------------------------------------------------------------------- /deb/openresty-asan/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-asan/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-asan 2 | Section: httpd 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), ccache, make, perl, valgrind, systemtap-sdt-dev, gcc, openresty-zlib-asan-dev (>= 1.2.12), openresty-openssl3-asan-dev (>= 3.0.15), openresty-pcre2-asan-dev (>= 10.44) 6 | Standards-Version: 3.9.8 7 | Homepage: https://openresty.org/ 8 | 9 | Package: openresty-asan 10 | Architecture: any 11 | Section: httpd 12 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib-asan (>= 1.2.12), openresty-openssl3-asan (>= 3.0.15), openresty-pcre2-asan (>= 10.44) 13 | Description: The AddressSanitizer (ASAN) version of OpenResty 14 | This package contains a gcc AddressSanitizer version of the core server 15 | for OpenResty with 16 | gcc's AddressSanitizer built in. Built for development purposes only. 17 | DO NOT USE THIS PACKAGE IN PRODUCTION! 18 | OpenResty is a full-fledged web platform by integrating the standard Nginx 19 | core, LuaJIT, many carefully written Lua libraries, lots of high quality 20 | 3rd-party Nginx modules, and most of their external dependencies. It is 21 | designed to help developers easily build scalable web applications, web 22 | services, and dynamic web gateways. 23 | By taking advantage of various well-designed Nginx modules (most of which 24 | are developed by the OpenResty team themselves), OpenResty effectively 25 | turns the nginx server into a powerful web app server, in which the web 26 | developers can use the Lua programming language to script various existing 27 | nginx C modules and Lua modules and construct extremely high-performance 28 | web applications that are capable to handle 10K ~ 1000K+ connections in 29 | a single box. 30 | 31 | Package: openresty-asan-dbgsym 32 | Section: debug 33 | Architecture: any 34 | Depends: ${misc:Depends}, openresty-asan (>= ${source:Version}) 35 | Description: Debug symbols for the openresty-asan package 36 | Debug symbols (or debuginfo) for the openresty-asan package. 37 | -------------------------------------------------------------------------------- /deb/openresty-asan/debian/copyright: -------------------------------------------------------------------------------- 1 | License: BSD 2 | -------------------------------------------------------------------------------- /deb/openresty-asan/debian/openresty-asan.install: -------------------------------------------------------------------------------- 1 | usr/bin/openresty-asan 2 | usr/local/openresty-asan/bin/openresty 3 | usr/local/openresty-asan/site/lualib/ 4 | usr/local/openresty-asan/luajit/* 5 | usr/local/openresty-asan/lualib/* 6 | usr/local/openresty-asan/nginx/html/* 7 | usr/local/openresty-asan/nginx/logs/ 8 | usr/local/openresty-asan/nginx/sbin/* 9 | usr/local/openresty-asan/nginx/conf/* 10 | usr/local/openresty-asan//COPYRIGHT 11 | -------------------------------------------------------------------------------- /deb/openresty-asan/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev,systemd 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | export ASAN_OPTIONS=detect_leaks=0; unset LD_PRELOAD; \ 22 | ./configure \ 23 | --prefix="/usr/local/openresty-asan" \ 24 | --with-debug \ 25 | --with-cc="ccache gcc -fsanitize=address" \ 26 | --with-cc-opt="-I/usr/local/openresty-asan/zlib/include -I/usr/local/openresty-asan/pcre2/include -I/usr/local/openresty-asan/openssl3/include -O1" \ 27 | --with-ld-opt="-L/usr/local/openresty-asan/zlib/lib -L/usr/local/openresty-asan/pcre2/lib -L/usr/local/openresty-asan/openssl3/lib -Wl,-rpath,/usr/local/openresty-asan/zlib/lib:/usr/local/openresty-asan/pcre2/lib:/usr/local/openresty-asan/openssl3/lib" \ 28 | --with-pcre-jit \ 29 | --without-http_rds_json_module \ 30 | --without-http_rds_csv_module \ 31 | --without-lua_rds_parser \ 32 | --with-stream \ 33 | --with-stream_ssl_module \ 34 | --with-stream_ssl_preread_module \ 35 | --with-http_v2_module \ 36 | --with-http_v3_module \ 37 | --without-mail_pop3_module \ 38 | --without-mail_imap_module \ 39 | --without-mail_smtp_module \ 40 | --with-http_stub_status_module \ 41 | --with-http_realip_module \ 42 | --with-http_addition_module \ 43 | --with-http_auth_request_module \ 44 | --with-http_secure_link_module \ 45 | --with-http_random_index_module \ 46 | --with-http_gzip_static_module \ 47 | --with-http_sub_module \ 48 | --with-http_dav_module \ 49 | --with-http_flv_module \ 50 | --with-http_mp4_module \ 51 | --with-http_gunzip_module \ 52 | --with-http_slice_module \ 53 | --with-threads \ 54 | --with-poll_module \ 55 | --with-compat \ 56 | --with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_USE_VALGRIND -O1 -fno-omit-frame-pointer' \ 57 | --with-no-pool-patch \ 58 | -j`nproc` \ 59 | && make -j`nproc` 60 | 61 | override_dh_auto_install: 62 | rm -rf $(DESTDIR) \ 63 | && make install DESTDIR=$(DESTDIR) \ 64 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/luajit/share/man \ 65 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/luajit/lib/libluajit-5.1.a \ 66 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/bin/resty \ 67 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/bin/restydoc \ 68 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/bin/restydoc-index \ 69 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/bin/md2pod.pl \ 70 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/bin/opm \ 71 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/bin/nginx-xml2pod \ 72 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/pod/* \ 73 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/resty.index \ 74 | && mkdir -p $(DESTDIR)/usr/bin \ 75 | && ln -sf /usr/local/openresty-asan/nginx/sbin/nginx $(DESTDIR)/usr/bin/openresty-asan 76 | 77 | override_dh_auto_clean: 78 | dh_clean 79 | rm -rf $(DESTDIR) 80 | 81 | override_dh_strip: 82 | dh_strip --dbg-package=openresty-asan-dbgsym 83 | -------------------------------------------------------------------------------- /deb/openresty-asan/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-debug/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-debug/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-debug 2 | Section: httpd 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev, 6 | systemtap-sdt-dev, 7 | openresty-zlib-dev, openresty-openssl3-debug-dev (>= 3.0.15), 8 | openresty-pcre2-dev (>= 10.44), 9 | perl, libfile-temp-perl 10 | Standards-Version: 3.9.8 11 | Homepage: https://openresty.org/ 12 | 13 | Package: openresty-debug 14 | Architecture: any 15 | Depends: ${shlibs:Depends}, ${misc:Depends}, 16 | openresty-zlib, openresty-openssl3-debug (>= 3.0.15), openresty-pcre2 (>= 10.44) 17 | Description: debug version of OpenResty core server 18 | This package contains the debug version of the core server for OpenResty. 19 | Built for development purposes only. 20 | . 21 | DO NOT USE THIS PACKAGE IN PRODUCTION! 22 | . 23 | OpenResty is a full-fledged web platform by integrating the standard Nginx 24 | core, LuaJIT, many carefully written Lua libraries, lots of high quality 25 | 3rd-party Nginx modules, and most of their external dependencies. It is 26 | designed to help developers easily build scalable web applications, web 27 | services, and dynamic web gateways. 28 | . 29 | By taking advantage of various well-designed Nginx modules (most of which 30 | are developed by the OpenResty team themselves), OpenResty effectively 31 | turns the nginx server into a powerful web app server, in which the web 32 | developers can use the Lua programming language to script various existing 33 | nginx C modules and Lua modules and construct extremely high-performance 34 | web applications that are capable to handle 10K ~ 1000K+ connections in 35 | a single box. 36 | 37 | Package: openresty-debug-dbgsym 38 | Section: debug 39 | Architecture: any 40 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-debug 41 | Description: Debug symbols of OpenResty packages - debug version 42 | Debug symbols of OpenResty packages 43 | -------------------------------------------------------------------------------- /deb/openresty-debug/debian/openresty-debug.conffiles: -------------------------------------------------------------------------------- 1 | /usr/local/openresty-debug/nginx/conf/nginx.conf.default 2 | /usr/local/openresty-debug/nginx/conf/scgi_params 3 | /usr/local/openresty-debug/nginx/conf/fastcgi.conf 4 | /usr/local/openresty-debug/nginx/conf/uwsgi_params.default 5 | /usr/local/openresty-debug/nginx/conf/fastcgi.conf.default 6 | /usr/local/openresty-debug/nginx/conf/win-utf 7 | /usr/local/openresty-debug/nginx/conf/scgi_params.default 8 | /usr/local/openresty-debug/nginx/conf/nginx.conf 9 | /usr/local/openresty-debug/nginx/conf/mime.types.default 10 | /usr/local/openresty-debug/nginx/conf/mime.types 11 | /usr/local/openresty-debug/nginx/conf/uwsgi_params 12 | /usr/local/openresty-debug/nginx/conf/fastcgi_params 13 | /usr/local/openresty-debug/nginx/conf/koi-win 14 | /usr/local/openresty-debug/nginx/conf/fastcgi_params.default 15 | /usr/local/openresty-debug/nginx/conf/koi-utf 16 | -------------------------------------------------------------------------------- /deb/openresty-debug/debian/openresty-debug.install: -------------------------------------------------------------------------------- 1 | usr/bin/openresty-debug 2 | usr/local/openresty-debug/bin/openresty 3 | usr/local/openresty-debug/site/lualib 4 | usr/local/openresty-debug/luajit/* 5 | usr/local/openresty-debug/lualib/* 6 | usr/local/openresty-debug/nginx/html/* 7 | usr/local/openresty-debug/nginx/sbin/* 8 | usr/local/openresty-debug/nginx/conf/* 9 | usr/local/openresty-debug/nginx/logs 10 | -------------------------------------------------------------------------------- /deb/openresty-debug/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | DPKG_EXPORT_BUILDFLAGS = 1 3 | include /usr/share/dpkg/default.mk 4 | 5 | export NO_PKG_MANGLE=1 6 | export QA_RPATHS=$[ 0x0002 ] 7 | export NJBS = `nproc` 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev 13 | 14 | override_dh_auto_configure: 15 | ./configure \ 16 | --prefix="/usr/local/openresty-debug" \ 17 | --with-debug \ 18 | --with-cc-opt="-I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre2/include -I/usr/local/openresty-debug/openssl3/include -O0" \ 19 | --with-ld-opt="-L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre2/lib -L/usr/local/openresty-debug/openssl3/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre2/lib:/usr/local/openresty-debug/openssl3/lib" \ 20 | --with-pcre-jit \ 21 | --without-http_rds_json_module \ 22 | --without-http_rds_csv_module \ 23 | --without-lua_rds_parser \ 24 | --with-stream \ 25 | --with-stream_ssl_module \ 26 | --with-stream_ssl_preread_module \ 27 | --with-http_v2_module \ 28 | --with-http_v3_module \ 29 | --without-mail_pop3_module \ 30 | --without-mail_imap_module \ 31 | --without-mail_smtp_module \ 32 | --with-http_stub_status_module \ 33 | --with-http_realip_module \ 34 | --with-http_addition_module \ 35 | --with-http_auth_request_module \ 36 | --with-http_secure_link_module \ 37 | --with-http_random_index_module \ 38 | --with-http_gzip_static_module \ 39 | --with-http_sub_module \ 40 | --with-http_dav_module \ 41 | --with-http_flv_module \ 42 | --with-http_mp4_module \ 43 | --with-http_gunzip_module \ 44 | --with-http_slice_module \ 45 | --with-threads \ 46 | --with-poll_module \ 47 | --with-compat \ 48 | --with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT -O0' \ 49 | -j$(NJBS) 50 | 51 | override_dh_usrlocal: 52 | 53 | override_dh_auto_install: 54 | dh_auto_install 55 | rm -rf $(DESTDIR)/usr/local/openresty-debug/luajit/share/man 56 | rm -rf $(DESTDIR)/usr/local/openresty-debug/luajit/lib/libluajit-5.1.a 57 | mkdir -p $(DESTDIR)/usr/bin 58 | cd $(DESTDIR)/usr/bin 59 | ln -sf ../local/openresty-debug/nginx/sbin/nginx $(DESTDIR)/usr/bin/openresty-debug 60 | cd $(CURDIR) 61 | 62 | override_dh_strip: 63 | dh_strip --dbg-package=openresty-debug-dbgsym 64 | -------------------------------------------------------------------------------- /deb/openresty-debug/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl-debug (1.1.0l-3~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * bumped the release number to 3. 4 | 5 | -- OpenResty Admin Tue, 12 Jul 2022 12:07:30 +0800 6 | 7 | openresty-openssl-debug (1.1.0l-2~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * enable threads. 10 | 11 | -- OpenResty Admin Thu, 19 Mar 2020 22:18:57 -0700 12 | 13 | openresty-openssl-debug (1.1.0l-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded openssl to 1.1.0l. 16 | 17 | -- OpenResty Admin Thu, 19 Mar 2020 22:18:57 -0700 18 | 19 | openresty-openssl-debug (1.1.0k-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded openssl to 1.1.0k. 22 | 23 | -- OpenResty Admin Thu, 29 Aug 2019 17:41:56 -0700 24 | 25 | openresty-openssl-debug (1.1.0j-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * fixed -dev package dependency requirement on the main package. 28 | 29 | -- OpenResty Admin Thu, 16 May 2019 17:41:56 -0700 30 | 31 | openresty-openssl-debug (1.1.0h-2~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * fixed -dev package dependency requirement on the main package. 34 | 35 | -- OpenResty Admin Tue, 15 May 2018 22:49:45 -0700 36 | 37 | openresty-openssl-debug (1.1.0h-1~[% distro %]1) [% distro %]; urgency=high 38 | 39 | * upgraded OpenResty to 1.1.0h. 40 | 41 | -- OpenResty Admin Mon, 14 May 2018 22:49:45 -0700 42 | 43 | openresty-openssl-debug (1.0.2k-2~[% distro %]1) [% distro %]; urgency=low 44 | 45 | * Skips tests in builds. 46 | 47 | -- OpenResty Admin Sun, 30 Apr 2017 17:52:32 +0800 48 | 49 | openresty-openssl-debug (1.0.2k-1~[% distro %]1) [% distro %]; urgency=low 50 | 51 | * Initial release 52 | 53 | -- OpenResty Admin Sun, 30 Apr 2017 18:06:21 +0800 54 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl-debug 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev, openresty-zlib-dev 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl-debug 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib 12 | Description: Debug version of the OpenSSL library for OpenResty 13 | This is the debug version of the OpenSSL library build for OpenResty uses. 14 | 15 | Package: openresty-openssl-debug-dev 16 | Section: libdevel 17 | Architecture: any 18 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl-debug (>= 1.1.0h) 19 | Description: Development files for OpenResty's OpenSSL library - debug version 20 | Provides C header and static library for OpenResty's debug version of OpenSSL 21 | library. 22 | 23 | Package: openresty-openssl-debug-dbgsym 24 | Section: debug 25 | Architecture: any 26 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl-debug (>= 1.1.0h) 27 | Description: Debug symbols for OpenResty's OpenSSL library - debug version 28 | Debug symbols for OpenResty's debug version of OpenSSL library. 29 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/openresty-openssl-debug-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-debug/openssl/include/* 2 | usr/local/openresty-debug/openssl/lib/*.a 3 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/openresty-openssl-debug.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-debug/openssl/bin/openssl 2 | usr/local/openresty-debug/openssl/lib/*.so* 3 | usr/local/openresty-debug/openssl/lib/*/*.so* 4 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-1.1.0d-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #DH_VERBOSE = 1 5 | 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* 7 | DPKG_EXPORT_BUILDFLAGS = 1 8 | include /usr/share/dpkg/default.mk 9 | 10 | # see FEATURE AREAS in dpkg-buildflags(1) 11 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all 12 | 13 | # see ENVIRONMENT in dpkg-buildflags(1) 14 | # package maintainers to append CFLAGS 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 16 | # package maintainers to append LDFLAGS 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 18 | 19 | 20 | export NO_PKG_MANGLE=1 21 | 22 | export QA_RPATHS=$[ 0x0002 ] 23 | 24 | # main packaging script based on dh7 syntax 25 | %: 26 | dh $@ --parallel --with autotools-dev 27 | 28 | override_dh_auto_configure: 29 | ./config \ 30 | no-asm \ 31 | enable-ssl3 enable-ssl3-method \ 32 | shared zlib -g3 -O0 -DPURIFY \ 33 | --prefix=/usr/local/openresty-debug/openssl \ 34 | --libdir=lib \ 35 | -I/usr/local/openresty/zlib/include \ 36 | -L/usr/local/openresty/zlib/lib \ 37 | -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty-debug/openssl/lib 38 | sed -i 's/ -O3 / -O0 /g' Makefile 39 | 40 | override_dh_usrlocal: 41 | 42 | override_dh_auto_install: 43 | make install_sw DESTDIR=$(CURDIR)/debian/tmp 44 | 45 | override_dh_install: 46 | dh_install 47 | rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl/bin/c_rehash 48 | rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl/lib/pkgconfig 49 | rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl/misc 50 | 51 | override_dh_strip: 52 | dh_strip --dbg-package=openresty-openssl-debug-dbgsym 53 | 54 | override_dh_auto_test: 55 | -------------------------------------------------------------------------------- /deb/openresty-openssl-debug/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl (1.1.0l-3~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * bumped the release number to 3. 4 | 5 | -- OpenResty Admin Tue, 12 Jul 2022 12:07:30 +0800 6 | 7 | openresty-openssl (1.1.0l-2~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * enable threads. 10 | 11 | -- OpenResty Admin Thu, 19 Mar 2020 22:18:57 -0700 12 | 13 | openresty-openssl (1.1.0l-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded openssl to 1.1.0l. 16 | 17 | -- OpenResty Admin Thu, 19 Mar 2020 22:18:57 -0700 18 | 19 | openresty-openssl (1.1.0k-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded openssl to 1.1.0k. 22 | 23 | -- OpenResty Admin Thu, 29 Aug 2019 17:41:56 -0700 24 | 25 | openresty-openssl (1.1.0j-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * fixed -dev package dependency requirement on the main package. 28 | 29 | -- OpenResty Admin Thu, 16 May 2019 17:41:56 -0700 30 | 31 | openresty-openssl (1.1.0h-2~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * fixed -dev package dependency requirement on the main package. 34 | 35 | -- OpenResty Admin Tue, 15 May 2018 22:49:45 -0700 36 | 37 | openresty-openssl (1.1.0h-1~[% distro %]1) [% distro %]; urgency=high 38 | 39 | * upgraded OpenResty to 1.1.0h. 40 | 41 | -- OpenResty Admin Mon, 14 May 2018 22:49:45 -0700 42 | 43 | openresty-openssl (1.0.2k-2~[% distro %]1) [% distro %]; urgency=low 44 | 45 | * Skips tests in builds. 46 | 47 | -- OpenResty Admin Sun, 30 Apr 2017 17:52:32 +0800 48 | 49 | openresty-openssl (1.0.2k-1~[% distro %]1) [% distro %]; urgency=low 50 | 51 | * Initial release 52 | 53 | -- OpenResty Admin Sun, 30 Apr 2017 17:52:32 +0800 54 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev, openresty-zlib-dev 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib 12 | Description: OpenSSL library for use by OpenResty ONLY 13 | This OpenSSL library build is specifically for OpenResty uses. It contains 14 | custom patches from OpenResty. 15 | 16 | Package: openresty-openssl-dev 17 | Section: libdevel 18 | Architecture: any 19 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl (>= 1.1.0h) 20 | Description: Development files for OpenResty's OpenSSL library 21 | Provides C header and static library for OpenResty's OpenSSL library. 22 | 23 | Package: openresty-openssl-dbgsym 24 | Section: debug 25 | Architecture: any 26 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl (>= 1.1.0h) 27 | Description: Debug symbols for OpenResty's OpenSSL library 28 | Debug symbols for OpenResty's OpenSSL library. 29 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/openresty-openssl-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/openssl/include/* 2 | usr/local/openresty/openssl/lib/*.a 3 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/openresty-openssl.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/openssl/bin/openssl 2 | usr/local/openresty/openssl/lib/*.so* 3 | usr/local/openresty/openssl/lib/*/*.so* 4 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-1.1.0d-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #DH_VERBOSE = 1 5 | 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* 7 | DPKG_EXPORT_BUILDFLAGS = 1 8 | include /usr/share/dpkg/default.mk 9 | 10 | # see FEATURE AREAS in dpkg-buildflags(1) 11 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all 12 | 13 | # see ENVIRONMENT in dpkg-buildflags(1) 14 | # package maintainers to append CFLAGS 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 16 | # package maintainers to append LDFLAGS 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 18 | 19 | 20 | export NO_PKG_MANGLE=1 21 | 22 | export QA_RPATHS=$[ 0x0002 ] 23 | 24 | # main packaging script based on dh7 syntax 25 | %: 26 | dh $@ --parallel --with autotools-dev 27 | 28 | override_dh_auto_configure: 29 | ./config \ 30 | shared zlib -g3 \ 31 | enable-ssl3 enable-ssl3-method \ 32 | --prefix=/usr/local/openresty/openssl \ 33 | --libdir=lib \ 34 | -I/usr/local/openresty/zlib/include \ 35 | -L/usr/local/openresty/zlib/lib \ 36 | -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/openssl/lib 37 | 38 | override_dh_usrlocal: 39 | 40 | override_dh_auto_install: 41 | make install_sw DESTDIR=$(CURDIR)/debian/tmp 42 | 43 | override_dh_install: 44 | dh_install 45 | rm -rf $(DESTDIR)/usr/local/openresty/openssl/bin/c_rehash 46 | rm -rf $(DESTDIR)/usr/local/openresty/openssl/lib/pkgconfig 47 | rm -rf $(DESTDIR)/usr/local/openresty/openssl/misc 48 | 49 | override_dh_strip: 50 | dh_strip --dbg-package=openresty-openssl-dbgsym 51 | 52 | override_dh_auto_test: 53 | -------------------------------------------------------------------------------- /deb/openresty-openssl/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | .PHONY: openresty-openssl111-asan-download 5 | openresty-openssl111-asan-download: 6 | wget -nH --cut-dirs=100 --mirror 'https://www.openssl.org/source/openssl-$(SSL111_VER).tar.gz' 7 | rm -rf openresty-openssl111-asan_$(SSL111_VER) 8 | mkdir -p openresty-openssl111-asan_$(SSL111_VER) 9 | tar -xf openssl-$(SSL111_VER).tar.gz --strip-components=1 -C openresty-openssl111-asan_$(SSL111_VER) 10 | tar -czf openresty-openssl111-asan_$(SSL111_VER).orig.tar.gz openresty-openssl111-asan_$(SSL111_VER) 11 | 12 | openresty-openssl111-asan-clean: 13 | -cd openresty-openssl111-asan && debclean 14 | -find openresty-openssl111-asan -maxdepth 1 ! -name 'debian' ! -name 'openresty-openssl111-asan' -print | xargs rm -rf 15 | rm -rf openresty-openssl111-asan*.deb 16 | rm -rf openresty-openssl111-asan_*.* 17 | 18 | .PHONY: openresty-openssl111-asan-build 19 | openresty-openssl111-asan-build: openresty-openssl111-asan-clean openresty-openssl111-asan-download 20 | sudo apt-get -y -q install ccache make perl gcc openresty-zlib-asan-dev 21 | sudo apt-get -y -q install --only-upgrade ccache make perl gcc openresty-zlib-asan-dev 22 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 23 | tar xf openresty-openssl111-asan_$(SSL111_VER).orig.tar.gz --strip-components=1 -C openresty-openssl111-asan 24 | cd openresty-openssl111-asan \ 25 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 26 | && debuild --no-lintian $(OPTS) -j$(JOBS) 27 | #if [ -f ./upload ]; then ./upload || exit 1; fi 28 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl111-asan (1.1.1w-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 1.1.1w. 4 | 5 | -- OpenResty Admin Mon, 27 Nov 2023 11:02:08 +0800 6 | 7 | openresty-openssl111-asan (1.1.1t-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded OpenResty to 1.1.1t. 10 | 11 | -- OpenResty Admin Thu, 29 Jun 2023 17:37:04 -0700 12 | 13 | openresty-openssl111-asan (1.1.1s-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded OpenResty to 1.1.1s. 16 | 17 | -- OpenResty Admin Thu, 3 Nov 2022 08:45:26 +0800 18 | 19 | openresty-openssl111-asan (1.1.1n-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded OpenResty to 1.1.1n. 22 | 23 | -- OpenResty Admin Tue, 15 Mar 2022 18:47:57 +0100 24 | 25 | openresty-openssl111-asan (1.1.1m-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * upgraded OpenSSL to 1.1.1m. 28 | 29 | -- OpenResty Admin Wed, 26 Jan 2022 18:20:00 +0800 30 | 31 | openresty-openssl111-asan (1.1.1l-1~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * upgraded OpenSSL to 1.1.1l. 34 | 35 | -- OpenResty Admin Mon, 30 Aug 2021 15:38:55 +0800 36 | 37 | openresty-openssl111-asan (1.1.1k-1~[% distro %]1) [% distro %]; urgency=high 38 | 39 | * upgraded OpenSSL to 1.1.1k. 40 | 41 | -- OpenResty Admin Tue, 11 May 2021 11:51:20 +0800 42 | 43 | openresty-openssl111-asan (1.1.1i-5~[% distro %]1) [% distro %]; urgency=high 44 | 45 | * packaging files were generated by spec2deb.pl. 46 | 47 | -- OpenResty Admin Tue, 4 May 2021 20:47:54 -0700 48 | 49 | openresty-openssl111-asan (1.1.1i-1~[% distro %]1) [% distro %]; urgency=high 50 | 51 | * upgraded OpenSSL to 1.1.1i. 52 | 53 | -- OpenResty Admin Thu, 10 Dec 2020 00:00:00 -0700 54 | 55 | openresty-openssl111-asan (1.1.0h-1~[% distro %]1) [% distro %]; urgency=high 56 | 57 | * upgraded openresty-openssl to 1.1.0h. 58 | 59 | -- OpenResty Admin Mon, 14 May 2018 00:00:00 -0700 60 | 61 | openresty-openssl111-asan (1.0.2n-1~[% distro %]1) [% distro %]; urgency=high 62 | 63 | * upgraded openssl to 1.0.2n. 64 | 65 | -- OpenResty Admin Thu, 19 Apr 2018 00:00:00 -0700 66 | 67 | openresty-openssl111-asan (1.0.2k-2~[% distro %]1) [% distro %]; urgency=high 68 | 69 | * bugfix: forgot to add clang to the build dep list. 70 | 71 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 72 | 73 | openresty-openssl111-asan (1.0.2k-1~[% distro %]1) [% distro %]; urgency=high 74 | 75 | * initial build for OpenSSL 1.0.2k. 76 | 77 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 78 | 79 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl111-asan 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), ccache, make, perl, gcc, openresty-zlib-asan-dev (>= 1.2.11) 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl111-asan 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib-asan (>= 1.2.11) 13 | Description: Clang AddressSanitizer Debug version of the OpenSSL library for OpenResty 14 | This is the gcc AddressSanitizer version of the OpenSSL library build for OpenResty uses. 15 | 16 | Package: openresty-openssl111-asan-dev 17 | Architecture: any 18 | Section: libdevel 19 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl111-asan (>= 1.1.1i) 20 | Description: Clang AddressSanitizer version of development files for OpenResty's OpenSSL library 21 | Provides C header and static library for the gcc AddressSanitizer version of OpenResty's OpenSSL library. This is the gcc AddressSanitizer version. 22 | 23 | Package: openresty-openssl111-asan-dbgsym 24 | Section: debug 25 | Architecture: any 26 | Depends: ${misc:Depends}, openresty-openssl111-asan (>= 1.1.1i) 27 | Description: Debug symbols for the openresty-openssl111-asan package 28 | Debug symbols (or debuginfo) for the openresty-openssl111-asan package. 29 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/copyright: -------------------------------------------------------------------------------- 1 | License: OpenSSL 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/openresty-openssl111-asan-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/openssl111/include/* 2 | usr/local/openresty-asan/openssl111/lib/*.a 3 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/openresty-openssl111-asan.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/openssl111/bin/openssl 2 | usr/local/openresty-asan/openssl111/lib/*.so* 3 | usr/local/openresty-asan/openssl111/lib/*/*.so* 4 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-1.1.1f-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev,systemd 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | export ASAN_OPTIONS=detect_leaks=0; unset LD_PRELOAD; \ 22 | ./config \ 23 | no-asm \ 24 | enable-camellia enable-seed enable-rfc3779 \ 25 | enable-cms enable-md2 enable-rc5 \ 26 | enable-weak-ssl-ciphers \ 27 | enable-ssl3 enable-ssl3-method \ 28 | shared zlib -g3 -O1 -DPURIFY \ 29 | --prefix=/usr/local/openresty-asan/openssl111 \ 30 | --libdir=lib \ 31 | -I/usr/local/openresty-asan/zlib/include \ 32 | -L/usr/local/openresty-asan/zlib/lib \ 33 | -Wl,-rpath,/usr/local/openresty-asan/zlib/lib:/usr/local/openresty-asan/openssl111/lib 34 | make -j`nproc` \ 35 | LD_LIBRARY_PATH= \ 36 | CC="ccache gcc -fsanitize=address" 37 | 38 | override_dh_auto_install: 39 | make install_sw DESTDIR=$(DESTDIR) \ 40 | && chmod +w $(DESTDIR)/usr/local/openresty-asan/openssl111/lib/*.so \ 41 | && chmod +w $(DESTDIR)/usr/local/openresty-asan/openssl111/lib/*/*.so \ 42 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/openssl111/bin/c_rehash \ 43 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/openssl111/lib/pkgconfig \ 44 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/openssl111/misc 45 | 46 | override_dh_auto_clean: 47 | dh_clean 48 | rm -rf $(DESTDIR) 49 | 50 | override_dh_strip: 51 | dh_strip --dbg-package=openresty-openssl111-asan-dbgsym 52 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-asan/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl111-debug (1.1.1w-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 1.1.1w. 4 | 5 | -- OpenResty Admin Mon, 27 Nov 2023 11:02:08 +0800 6 | 7 | openresty-openssl111-debug (1.1.1t-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded OpenResty to 1.1.1t. 10 | 11 | -- OpenResty Admin Thu, 29 Jun 2023 17:37:04 -0700 12 | 13 | openresty-openssl111-debug (1.1.1s-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded OpenResty to 1.1.1s. 16 | 17 | -- OpenResty Admin Thu, 3 Nov 2022 08:45:26 +0800 18 | 19 | openresty-openssl111-debug (1.1.1n-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded OpenResty to 1.1.1n. 22 | 23 | -- OpenResty Admin Tue, 15 Mar 2022 18:47:57 +0100 24 | 25 | openresty-openssl111-debug (1.1.1m-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * upgraded OpenSSL to 1.1.1m. 28 | 29 | -- OpenResty Admin Wed, 26 Jan 2022 18:20:00 +0800 30 | 31 | openresty-openssl111-debug (1.1.1l-1~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * upgraded OpenSSL to 1.1.1l. 34 | 35 | -- OpenResty Admin Mon, 30 Aug 2021 15:38:55 +0800 36 | 37 | openresty-openssl111-debug (1.1.1k-1~[% distro %]1) [% distro %]; urgency=high 38 | 39 | * upgraded OpenSSL to 1.1.1k. 40 | 41 | -- OpenResty Admin Tue, 11 May 2021 11:51:20 +0800 42 | 43 | openresty-openssl111-debug (1.1.1i-1~[% distro %]1) [% distro %]; urgency=high 44 | 45 | * upgraded OpenResty to 1.1.1i. 46 | 47 | -- OpenResty Admin Fri, 11 Dec 2020 06:54:01 +0800 48 | 49 | openresty-openssl111-debug (1.1.1h-1~[% distro %]1) [% distro %]; urgency=high 50 | 51 | * upgraded to OpenSSL 1.1.1h. 52 | 53 | -- OpenResty Admin Thu, 19 Mar 2020 16:40:03 -0700 54 | 55 | openresty-openssl111-debug (1.1.1g-3~[% distro %]1) [% distro %]; urgency=high 56 | 57 | * enabled threads. 58 | 59 | -- OpenResty Admin Thu, 19 Mar 2020 16:40:03 -0700 60 | 61 | openresty-openssl111-debug (1.1.1g-2~[% distro %]1) [% distro %]; urgency=high 62 | 63 | * enabled more ciphers. 64 | 65 | -- OpenResty Admin Thu, 19 Mar 2020 16:40:03 -0700 66 | 67 | openresty-openssl111-debug (1.1.1g-1~[% distro %]1) [% distro %]; urgency=high 68 | 69 | * upgraded openssl to 1.1.1g. 70 | 71 | -- OpenResty Admin Thu, 19 Mar 2020 16:40:03 -0700 72 | 73 | openresty-openssl111-debug (1.1.1d-1~[% distro %]1) [% distro %]; urgency=high 74 | 75 | * Initial release 76 | 77 | -- OpenResty Admin Thu, 19 Mar 2020 16:40:03 -0700 78 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl111-debug 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev, openresty-zlib-dev 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl111-debug 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib 12 | Description: Debug version of the OpenSSL 1.1.1 library for OpenResty 13 | This is the debug version of the OpenSSL 1.1.1 library build for OpenResty uses. 14 | 15 | Package: openresty-openssl111-debug-dev 16 | Section: libdevel 17 | Architecture: any 18 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl111-debug (>= 1.1.1g) 19 | Description: Development files for OpenResty's OpenSSL 1.1.1 library - debug version 20 | Provides C header and static library for OpenResty's debug version of OpenSSL 21 | library. 22 | 23 | Package: openresty-openssl111-debug-dbgsym 24 | Section: debug 25 | Architecture: any 26 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl111-debug (>= 1.1.1g) 27 | Description: Debug symbols for OpenResty's OpenSSL 1.1.1 library - debug version 28 | Debug symbols for OpenResty's debug version of OpenSSL 1.1.1 library. 29 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/openresty-openssl111-debug-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-debug/openssl111/include/* 2 | usr/local/openresty-debug/openssl111/lib/*.a 3 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/openresty-openssl111-debug.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-debug/openssl111/bin/openssl 2 | usr/local/openresty-debug/openssl111/lib/*.so* 3 | usr/local/openresty-debug/openssl111/lib/*/*.so* 4 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-1.1.1f-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #DH_VERBOSE = 1 5 | 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* 7 | DPKG_EXPORT_BUILDFLAGS = 1 8 | include /usr/share/dpkg/default.mk 9 | 10 | # see FEATURE AREAS in dpkg-buildflags(1) 11 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all 12 | 13 | # see ENVIRONMENT in dpkg-buildflags(1) 14 | # package maintainers to append CFLAGS 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 16 | # package maintainers to append LDFLAGS 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 18 | 19 | 20 | export NO_PKG_MANGLE=1 21 | 22 | export QA_RPATHS=$[ 0x0002 ] 23 | 24 | DESTDIR = $(CURDIR)/debian/tmp 25 | 26 | # main packaging script based on dh7 syntax 27 | %: 28 | dh $@ --parallel --with autotools-dev 29 | 30 | override_dh_auto_configure: 31 | 32 | override_dh_auto_build: 33 | ./config \ 34 | no-asm \ 35 | enable-camellia enable-seed enable-rfc3779 \ 36 | enable-cms enable-md2 enable-rc5 \ 37 | enable-weak-ssl-ciphers \ 38 | enable-ssl3 enable-ssl3-method \ 39 | shared zlib -g3 -O0 -DPURIFY \ 40 | --prefix=/usr/local/openresty-debug/openssl111 \ 41 | --libdir=lib \ 42 | -I/usr/local/openresty/zlib/include \ 43 | -L/usr/local/openresty/zlib/lib \ 44 | -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty-debug/openssl111/lib 45 | #sed -i 's/ -O3 / -O0 /g' Makefile 46 | make -j`nproc` \ 47 | LD_LIBRARY_PATH= \ 48 | CC="ccache gcc" 49 | 50 | override_dh_usrlocal: 51 | 52 | override_dh_auto_install: 53 | make install_sw DESTDIR=$(CURDIR)/debian/tmp 54 | 55 | override_dh_install: 56 | dh_install 57 | rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl111/bin/c_rehash 58 | rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl111/lib/pkgconfig 59 | rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl111/misc 60 | 61 | override_dh_strip: 62 | dh_strip --dbg-package=openresty-openssl111-debug-dbgsym 63 | 64 | override_dh_auto_test: 65 | -------------------------------------------------------------------------------- /deb/openresty-openssl111-debug/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl111 (1.1.1w-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 1.1.1w. 4 | 5 | -- OpenResty Admin Mon, 27 Nov 2023 11:02:08 +0800 6 | 7 | openresty-openssl111 (1.1.1t-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded OpenResty to 1.1.1t. 10 | 11 | -- OpenResty Admin Thu, 29 Jun 2023 17:37:04 -0700 12 | 13 | openresty-openssl111 (1.1.1s-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded OpenResty to 1.1.1s. 16 | 17 | -- OpenResty Admin Thu, 3 Nov 2022 08:45:26 +0800 18 | 19 | openresty-openssl111 (1.1.1n-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded OpenResty to 1.1.1n. 22 | 23 | -- OpenResty Admin Tue, 15 Mar 2022 18:47:57 +0100 24 | 25 | openresty-openssl111 (1.1.1m-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * upgraded OpenSSL to 1.1.1m. 28 | 29 | -- OpenResty Admin Wed, 26 Jan 2022 18:20:00 +0800 30 | 31 | openresty-openssl111 (1.1.1l-1~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * upgraded OpenSSL to 1.1.1l. 34 | 35 | -- OpenResty Admin Mon, 30 Aug 2021 15:38:55 +0800 36 | 37 | openresty-openssl111 (1.1.1k-1~[% distro %]1) [% distro %]; urgency=high 38 | 39 | * upgraded OpenSSL to 1.1.1k. 40 | 41 | -- OpenResty Admin Tue, 11 May 2021 11:51:20 +0800 42 | 43 | openresty-openssl111 (1.1.1i-1~[% distro %]1) [% distro %]; urgency=high 44 | 45 | * upgraded OpenResty to 1.1.1i. 46 | 47 | -- OpenResty Admin Thu, 10 Dec 2020 01:31:53 +0800 48 | 49 | openresty-openssl111 (1.1.1h-1~[% distro %]1) [% distro %]; urgency=high 50 | 51 | * upgraded to OpenSSL 1.1.1h. 52 | 53 | -- OpenResty Admin Thu, 19 Mar 2017 16:40:03 -0700 54 | 55 | openresty-openssl111 (1.1.1g-3~[% distro %]1) [% distro %]; urgency=high 56 | 57 | * enable threads. 58 | 59 | -- OpenResty Admin Thu, 19 Mar 2017 16:40:03 -0700 60 | 61 | openresty-openssl111 (1.1.1g-2~[% distro %]1) [% distro %]; urgency=high 62 | 63 | * enabled more ciphers. 64 | 65 | -- OpenResty Admin Thu, 19 Mar 2017 16:40:03 -0700 66 | 67 | openresty-openssl111 (1.1.1g-1~[% distro %]1) [% distro %]; urgency=high 68 | 69 | * upgrade openssl to 1.1.1g. 70 | 71 | -- OpenResty Admin Thu, 19 Mar 2017 16:40:03 -0700 72 | 73 | openresty-openssl111 (1.1.1d-1~[% distro %]1) [% distro %]; urgency=high 74 | 75 | * Initial release 76 | 77 | -- OpenResty Admin Thu, 19 Mar 2017 16:40:03 -0700 78 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl111 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev, openresty-zlib-dev 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl111 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib 12 | Description: OpenSSL 1.1.1 library for use by OpenResty ONLY 13 | This OpenSSL 1.1.1 library build is specifically for OpenResty uses. It contains 14 | custom patches from OpenResty. 15 | 16 | Package: openresty-openssl111-dev 17 | Section: libdevel 18 | Architecture: any 19 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl111 (>= 1.1.1g) 20 | Description: Development files for OpenResty's OpenSSL 1.1.1 library 21 | Provides C header and static library for OpenResty's OpenSSL library. 22 | 23 | Package: openresty-openssl111-dbgsym 24 | Section: debug 25 | Architecture: any 26 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl111 (>= 1.1.1g) 27 | Description: Debug symbols for OpenResty's OpenSSL 1.1.1 library 28 | Debug symbols for OpenResty's OpenSSL 1.1.1 library. 29 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/openresty-openssl111-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/openssl111/include/* 2 | usr/local/openresty/openssl111/lib/*.a 3 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/openresty-openssl111.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/openssl111/bin/openssl 2 | usr/local/openresty/openssl111/lib/*.so* 3 | usr/local/openresty/openssl111/lib/*/*.so* 4 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-1.1.1f-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #DH_VERBOSE = 1 5 | 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* 7 | DPKG_EXPORT_BUILDFLAGS = 1 8 | include /usr/share/dpkg/default.mk 9 | 10 | # see FEATURE AREAS in dpkg-buildflags(1) 11 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all 12 | 13 | # see ENVIRONMENT in dpkg-buildflags(1) 14 | # package maintainers to append CFLAGS 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 16 | # package maintainers to append LDFLAGS 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 18 | 19 | 20 | export NO_PKG_MANGLE=1 21 | 22 | export QA_RPATHS=$[ 0x0002 ] 23 | 24 | DESTDIR = $(CURDIR)/debian/tmp 25 | 26 | # main packaging script based on dh7 syntax 27 | %: 28 | dh $@ --parallel --with autotools-dev 29 | 30 | override_dh_auto_configure: 31 | 32 | override_dh_auto_build: 33 | ./config \ 34 | shared zlib -g3 \ 35 | enable-camellia enable-seed enable-rfc3779 \ 36 | enable-cms enable-md2 enable-rc5 \ 37 | enable-weak-ssl-ciphers \ 38 | enable-ssl3 enable-ssl3-method \ 39 | --prefix=/usr/local/openresty/openssl111 \ 40 | --libdir=lib \ 41 | -I/usr/local/openresty/zlib/include \ 42 | -L/usr/local/openresty/zlib/lib \ 43 | -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/openssl111/lib 44 | make -j`nproc` \ 45 | LD_LIBRARY_PATH= \ 46 | CC="ccache gcc" 47 | 48 | override_dh_usrlocal: 49 | 50 | override_dh_auto_install: 51 | make install_sw DESTDIR=$(CURDIR)/debian/tmp 52 | 53 | override_dh_install: 54 | dh_install 55 | rm -rf $(DESTDIR)/usr/local/openresty/openssl111/bin/c_rehash 56 | rm -rf $(DESTDIR)/usr/local/openresty/openssl111/lib/pkgconfig 57 | rm -rf $(DESTDIR)/usr/local/openresty/openssl111/misc 58 | 59 | override_dh_strip: 60 | dh_strip --dbg-package=openresty-openssl111-dbgsym 61 | 62 | override_dh_auto_test: 63 | -------------------------------------------------------------------------------- /deb/openresty-openssl111/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | .PHONY: openresty-openssl3-asan-download 5 | openresty-openssl3-asan-download: 6 | LANG=C LC_ALL='C.UTF-8' wget -nH --cut-dirs=100 --mirror 'https://github.com/openssl/openssl/releases/download/openssl-$(SSL3_VER)/openssl-$(SSL3_VER).tar.gz' 7 | rm -rf openresty-openssl3-asan_$(SSL3_VER) 8 | mkdir -p openresty-openssl3-asan_$(SSL3_VER) 9 | tar -xf openssl-$(SSL3_VER).tar.gz --strip-components=1 -C openresty-openssl3-asan_$(SSL3_VER) 10 | tar -czf openresty-openssl3-asan_$(SSL3_VER).orig.tar.gz openresty-openssl3-asan_$(SSL3_VER) 11 | 12 | openresty-openssl3-asan-clean: 13 | -cd openresty-openssl3-asan && debclean 14 | -find openresty-openssl3-asan -maxdepth 1 ! -name 'debian' ! -name 'openresty-openssl3-asan' -print | xargs rm -rf 15 | rm -rf openresty-openssl3-asan*.deb 16 | rm -rf openresty-openssl3-asan_*.* 17 | 18 | #sudo apt-get -y -q install libtemplate-perl debhelper devscripts dh-systemd 19 | #sudo apt-get -y -q install --only-upgrade libtemplate-perl debhelper devscripts dh-systemd 20 | .PHONY: openresty-openssl3-asan-build 21 | openresty-openssl3-asan-build: openresty-openssl3-asan-clean openresty-openssl3-asan-download 22 | sudo apt-get -y -q install gcc make perl openresty-zlib-dev 23 | sudo apt-get -y -q install --only-upgrade gcc make perl openresty-zlib-dev 24 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 25 | tar xf openresty-openssl3-asan_$(SSL3_VER).orig.tar.gz --strip-components=1 -C openresty-openssl3-asan 26 | cd openresty-openssl3-asan \ 27 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 28 | && debuild --no-lintian $(OPTS) -j$(JOBS) 29 | #if [ -f ./upload ]; then ./upload || exit 1; fi 30 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl3-asan (3.4.1-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 3.4.1. 4 | 5 | -- OpenResty Admin Tue, 4 Mar 2025 11:12:26 +0800 6 | 7 | openresty-openssl3-asan (3.0.15-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * packaging files were generated by spec2deb.pl. 10 | 11 | -- OpenResty Admin Sat, 14 Sep 2024 23:19:25 -0700 12 | 13 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl3-asan 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), gcc, make, perl, openresty-zlib-dev (>= 1.2.11) 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl3-asan 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib (>= 1.2.11) 13 | Description: OpenSSL library for OpenResty 14 | This OpenSSL library build is specifically for OpenResty uses. It may contain 15 | custom patches from OpenResty. 16 | 17 | Package: openresty-openssl3-asan-dev 18 | Architecture: any 19 | Section: libdevel 20 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl3-asan (>= ${source:Upstream-Version}) 21 | Description: Development files for OpenResty's OpenSSL library 22 | Provides C header and static library for OpenResty's OpenSSL library. 23 | 24 | Package: openresty-openssl3-asan-dbgsym 25 | Section: debug 26 | Architecture: any 27 | Depends: ${misc:Depends}, openresty-openssl3-asan (>= ${source:Upstream-Version}) 28 | Description: Debug symbols for the openresty-openssl3-asan package 29 | Debug symbols (or debuginfo) for the openresty-openssl3-asan package. 30 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/copyright: -------------------------------------------------------------------------------- 1 | License: OpenSSL 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/openresty-openssl3-asan-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/openssl3/include/ 2 | usr/local/openresty-asan/openssl3/include/* 3 | usr/local/openresty-asan/openssl3/lib/*.a 4 | usr/local/openresty-asan/openssl3/lib/pkgconfig/*.pc 5 | usr/local/openresty-asan/openssl3/lib/cmake/OpenSSL/OpenSSLConfig.cmake 6 | usr/local/openresty-asan/openssl3/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake 7 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/openresty-openssl3-asan.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/openssl3/lib/engines-3/ 2 | usr/local/openresty-asan/openssl3/lib/ossl-modules/ 3 | usr/local/openresty-asan/openssl3/bin/openssl 4 | usr/local/openresty-asan/openssl3/lib/libcrypto.so.3 5 | usr/local/openresty-asan/openssl3/lib/libssl.so.3 6 | usr/local/openresty-asan/openssl3/lib/libcrypto.so 7 | usr/local/openresty-asan/openssl3/lib/libssl.so 8 | usr/local/openresty-asan/openssl3/lib/engines-3/*.so 9 | usr/local/openresty-asan/openssl3/lib/ossl-modules/*.so 10 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-3.4.1-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | export ASAN_OPTIONS=detect_leaks=0 \ 22 | && ./config \ 23 | shared zlib -g \ 24 | --prefix=/usr/local/openresty-asan/openssl3 \ 25 | --libdir=lib \ 26 | enable-asan \ 27 | enable-camellia enable-seed enable-rfc3779 \ 28 | enable-cms enable-md2 enable-rc5 \ 29 | enable-weak-ssl-ciphers \ 30 | enable-ssl3 enable-ssl3-method \ 31 | enable-md2 enable-ktls enable-fips\ 32 | -I/usr/local/openresty-asan/zlib/include \ 33 | -L/usr/local/openresty-asan/zlib/lib \ 34 | -Wl,-rpath,/usr/local/openresty-asan/zlib/lib:/usr/local/openresty-asan/openssl3/lib \ 35 | && ncpus=`nproc` \ 36 | && if [ "$$ncpus" -gt 16 ]; then ncpus=16; fi \ 37 | && make CC='ccache gcc -fdiagnostics-color=always' -j$$ncpus 38 | 39 | override_dh_auto_install: 40 | export ASAN_OPTIONS=detect_leaks=0 \ 41 | && make install_sw DESTDIR=$(DESTDIR) \ 42 | && chmod 0755 $(DESTDIR)/usr/local/openresty-asan/openssl3/lib/*.so* \ 43 | && chmod 0755 $(DESTDIR)/usr/local/openresty-asan/openssl3/lib/*/*.so* \ 44 | && rm -rf $(DESTDIR)/usr/local/openresty-asan/openssl3/bin/c_rehash 45 | 46 | override_dh_auto_clean: 47 | dh_clean 48 | rm -rf $(DESTDIR) 49 | 50 | override_dh_strip: 51 | dh_strip --dbg-package=openresty-openssl3-asan-dbgsym 52 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-asan/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | .PHONY: openresty-openssl3-debug-download 5 | openresty-openssl3-debug-download: 6 | LANG=C LC_ALL='C.UTF-8' wget -nH --cut-dirs=100 --mirror 'https://github.com/openssl/openssl/releases/download/openssl-$(SSL3_VER)/openssl-$(SSL3_VER).tar.gz' 7 | rm -rf openresty-openssl3-debug_$(SSL3_VER) 8 | mkdir -p openresty-openssl3-debug_$(SSL3_VER) 9 | tar -xf openssl-$(SSL3_VER).tar.gz --strip-components=1 -C openresty-openssl3-debug_$(SSL3_VER) 10 | tar -czf openresty-openssl3-debug_$(SSL3_VER).orig.tar.gz openresty-openssl3-debug_$(SSL3_VER) 11 | 12 | openresty-openssl3-debug-clean: 13 | -cd openresty-openssl3-debug && debclean 14 | -find openresty-openssl3-debug -maxdepth 1 ! -name 'debian' ! -name 'openresty-openssl3-debug' -print | xargs rm -rf 15 | rm -rf openresty-openssl3-debug*.deb 16 | rm -rf openresty-openssl3-debug_*.* 17 | 18 | #sudo apt-get -y -q install libtemplate-perl debhelper devscripts dh-systemd 19 | #sudo apt-get -y -q install --only-upgrade libtemplate-perl debhelper devscripts dh-systemd 20 | .PHONY: openresty-openssl3-debug-build 21 | openresty-openssl3-debug-build: openresty-openssl3-debug-clean openresty-openssl3-debug-download 22 | sudo apt-get -y -q install gcc make perl openresty-zlib-dev 23 | sudo apt-get -y -q install --only-upgrade gcc make perl openresty-zlib-dev 24 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 25 | tar xf openresty-openssl3-debug_$(SSL3_VER).orig.tar.gz --strip-components=1 -C openresty-openssl3-debug 26 | cd openresty-openssl3-debug \ 27 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 28 | && debuild --no-lintian $(OPTS) -j$(JOBS) 29 | #if [ -f ./upload ]; then ./upload || exit 1; fi 30 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl3-debug (3.4.1-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 3.4.1. 4 | 5 | -- OpenResty Admin Tue, 4 Mar 2025 11:12:26 +0800 6 | 7 | openresty-openssl3-debug (3.0.15-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * packaging files were generated by spec2deb.pl. 10 | 11 | -- OpenResty Admin Sat, 14 Sep 2024 23:19:25 -0700 12 | 13 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl3-debug 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), gcc, make, perl, openresty-zlib-dev (>= 1.2.11) 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl3-debug 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib (>= 1.2.11) 13 | Description: OpenSSL library for OpenResty 14 | This OpenSSL library build is specifically for OpenResty uses. It may contain 15 | custom patches from OpenResty. 16 | 17 | Package: openresty-openssl3-debug-dev 18 | Architecture: any 19 | Section: libdevel 20 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl3-debug (>= ${source:Upstream-Version}) 21 | Description: Development files for OpenResty's OpenSSL library 22 | Provides C header and static library for OpenResty's OpenSSL library. 23 | 24 | Package: openresty-openssl3-debug-dbgsym 25 | Section: debug 26 | Architecture: any 27 | Depends: ${misc:Depends}, openresty-openssl3-debug (>= ${source:Upstream-Version}) 28 | Description: Debug symbols for the openresty-openssl3-debug package 29 | Debug symbols (or debuginfo) for the openresty-openssl3-debug package. 30 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/copyright: -------------------------------------------------------------------------------- 1 | License: OpenSSL 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/openresty-openssl3-debug-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-debug/openssl3/include/ 2 | usr/local/openresty-debug/openssl3/include/* 3 | usr/local/openresty-debug/openssl3/lib/*.a 4 | usr/local/openresty-debug/openssl3/lib/pkgconfig/*.pc 5 | usr/local/openresty-debug/openssl3/lib/cmake/OpenSSL/OpenSSLConfig.cmake 6 | usr/local/openresty-debug/openssl3/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake 7 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/openresty-openssl3-debug.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-debug/openssl3/lib/engines-3/ 2 | usr/local/openresty-debug/openssl3/lib/ossl-modules/ 3 | usr/local/openresty-debug/openssl3/bin/openssl 4 | usr/local/openresty-debug/openssl3/lib/libcrypto.so.3 5 | usr/local/openresty-debug/openssl3/lib/libssl.so.3 6 | usr/local/openresty-debug/openssl3/lib/libcrypto.so 7 | usr/local/openresty-debug/openssl3/lib/libssl.so 8 | usr/local/openresty-debug/openssl3/lib/engines-3/*.so 9 | usr/local/openresty-debug/openssl3/lib/ossl-modules/*.so 10 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-3.4.1-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | ./config \ 22 | shared zlib -g -O0 \ 23 | --prefix=/usr/local/openresty-debug/openssl3 \ 24 | --libdir=lib \ 25 | enable-camellia enable-seed enable-rfc3779 \ 26 | enable-cms enable-md2 enable-rc5 \ 27 | enable-weak-ssl-ciphers \ 28 | enable-ssl3 enable-ssl3-method \ 29 | enable-md2 enable-ktls enable-fips\ 30 | -I/usr/local/openresty/zlib/include \ 31 | -L/usr/local/openresty/zlib/lib \ 32 | -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty-debug/openssl3/lib \ 33 | && ncpus=`nproc` \ 34 | && if [ "$$ncpus" -gt 16 ]; then ncpus=16; fi \ 35 | && make CC='ccache gcc -fdiagnostics-color=always' -j$$ncpus 36 | 37 | override_dh_auto_install: 38 | make install_sw DESTDIR=$(DESTDIR) \ 39 | && chmod 0755 $(DESTDIR)/usr/local/openresty-debug/openssl3/lib/*.so* \ 40 | && chmod 0755 $(DESTDIR)/usr/local/openresty-debug/openssl3/lib/*/*.so* \ 41 | && rm -rf $(DESTDIR)/usr/local/openresty-debug/openssl3/bin/c_rehash 42 | 43 | override_dh_auto_clean: 44 | dh_clean 45 | rm -rf $(DESTDIR) 46 | 47 | override_dh_strip: 48 | dh_strip --dbg-package=openresty-openssl3-debug-dbgsym 49 | -------------------------------------------------------------------------------- /deb/openresty-openssl3-debug/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | .PHONY: openresty-openssl3-download 5 | openresty-openssl3-download: 6 | LANG=C LC_ALL='C.UTF-8' wget -nH --cut-dirs=100 --mirror 'https://github.com/openssl/openssl/releases/download/openssl-$(SSL3_VER)/openssl-$(SSL3_VER).tar.gz' 7 | rm -rf openresty-openssl3_$(SSL3_VER) 8 | mkdir -p openresty-openssl3_$(SSL3_VER) 9 | tar -xf openssl-$(SSL3_VER).tar.gz --strip-components=1 -C openresty-openssl3_$(SSL3_VER) 10 | tar -czf openresty-openssl3_$(SSL3_VER).orig.tar.gz openresty-openssl3_$(SSL3_VER) 11 | 12 | openresty-openssl3-clean: 13 | -cd openresty-openssl3 && debclean 14 | -find openresty-openssl3 -maxdepth 1 ! -name 'debian' ! -name 'openresty-openssl3' -print | xargs rm -rf 15 | rm -rf openresty-openssl3*.deb 16 | rm -rf openresty-openssl3_*.* 17 | 18 | #sudo apt-get -y -q install libtemplate-perl debhelper devscripts dh-systemd 19 | #sudo apt-get -y -q install --only-upgrade libtemplate-perl debhelper devscripts dh-systemd 20 | .PHONY: openresty-openssl3-build 21 | openresty-openssl3-build: openresty-openssl3-clean openresty-openssl3-download 22 | sudo apt-get -y -q install gcc make perl openresty-zlib-dev 23 | sudo apt-get -y -q install --only-upgrade gcc make perl openresty-zlib-dev 24 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 25 | tar xf openresty-openssl3_$(SSL3_VER).orig.tar.gz --strip-components=1 -C openresty-openssl3 26 | cd openresty-openssl3 \ 27 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 28 | && debuild --no-lintian $(OPTS) -j$(JOBS) 29 | #if [ -f ./upload ]; then ./upload || exit 1; fi 30 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-openssl3 (3.4.1-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 3.4.1. 4 | 5 | -- OpenResty Admin Tue, 4 Mar 2025 11:12:26 +0800 6 | 7 | openresty-openssl3 (3.0.15-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * packaging files were generated by spec2deb.pl. 10 | 11 | -- OpenResty Admin Sat, 14 Sep 2024 23:19:25 -0700 12 | 13 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-openssl3 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), gcc, make, perl, openresty-zlib-dev (>= 1.2.11) 6 | Standards-Version: 3.9.8 7 | Homepage: https://www.openssl.org/ 8 | 9 | Package: openresty-openssl3 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib (>= 1.2.11) 13 | Description: OpenSSL library for OpenResty 14 | This OpenSSL library build is specifically for OpenResty uses. It may contain 15 | custom patches from OpenResty. 16 | 17 | Package: openresty-openssl3-dev 18 | Architecture: any 19 | Section: libdevel 20 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-openssl3 (>= ${source:Upstream-Version}) 21 | Description: Development files for OpenResty's OpenSSL library 22 | Provides C header and static library for OpenResty's OpenSSL library. 23 | 24 | Package: openresty-openssl3-dbgsym 25 | Section: debug 26 | Architecture: any 27 | Depends: ${misc:Depends}, openresty-openssl3 (>= ${source:Upstream-Version}) 28 | Description: Debug symbols for the openresty-openssl3 package 29 | Debug symbols (or debuginfo) for the openresty-openssl3 package. 30 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/copyright: -------------------------------------------------------------------------------- 1 | License: OpenSSL 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/openresty-openssl3-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/openssl3/include/ 2 | usr/local/openresty/openssl3/include/* 3 | usr/local/openresty/openssl3/lib/*.a 4 | usr/local/openresty/openssl3/lib/pkgconfig/*.pc 5 | usr/local/openresty/openssl3/lib/cmake/OpenSSL/OpenSSLConfig.cmake 6 | usr/local/openresty/openssl3/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake 7 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/openresty-openssl3.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/openssl3/lib/engines-3/ 2 | usr/local/openresty/openssl3/lib/ossl-modules/ 3 | usr/local/openresty/openssl3/bin/openssl 4 | usr/local/openresty/openssl3/lib/libcrypto.so.3 5 | usr/local/openresty/openssl3/lib/libssl.so.3 6 | usr/local/openresty/openssl3/lib/libcrypto.so 7 | usr/local/openresty/openssl3/lib/libssl.so 8 | usr/local/openresty/openssl3/lib/engines-3/*.so 9 | usr/local/openresty/openssl3/lib/ossl-modules/*.so 10 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/patches/series: -------------------------------------------------------------------------------- 1 | openssl-3.4.1-sess_set_get_cb_yield.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | ./config \ 22 | shared zlib -g \ 23 | --prefix=/usr/local/openresty/openssl3 \ 24 | --libdir=lib \ 25 | enable-camellia enable-seed enable-rfc3779 \ 26 | enable-cms enable-md2 enable-rc5 \ 27 | enable-weak-ssl-ciphers \ 28 | enable-ssl3 enable-ssl3-method \ 29 | enable-md2 enable-ktls enable-fips\ 30 | -I/usr/local/openresty/zlib/include \ 31 | -L/usr/local/openresty/zlib/lib \ 32 | -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/openssl3/lib \ 33 | && ncpus=`nproc` \ 34 | && if [ "$$ncpus" -gt 16 ]; then ncpus=16; fi \ 35 | && make CC='ccache gcc -fdiagnostics-color=always' -j$$ncpus 36 | 37 | override_dh_auto_install: 38 | make install_sw DESTDIR=$(DESTDIR) \ 39 | && chmod 0755 $(DESTDIR)/usr/local/openresty/openssl3/lib/*.so* \ 40 | && chmod 0755 $(DESTDIR)/usr/local/openresty/openssl3/lib/*/*.so* \ 41 | && rm -rf $(DESTDIR)/usr/local/openresty/openssl3/bin/c_rehash 42 | 43 | override_dh_auto_clean: 44 | dh_clean 45 | rm -rf $(DESTDIR) 46 | 47 | override_dh_strip: 48 | dh_strip --dbg-package=openresty-openssl3-dbgsym 49 | -------------------------------------------------------------------------------- /deb/openresty-openssl3/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | OPENRESTY_PCRE_ASAN_VER := 8.45 5 | 6 | .PHONY: openresty-pcre-asan-download 7 | openresty-pcre-asan-download: 8 | wget -nH --cut-dirs=100 --mirror 'https://sourceforge.net/projects/pcre/files/pcre/$(OPENRESTY_PCRE_ASAN_VER)/pcre-$(OPENRESTY_PCRE_ASAN_VER).tar.bz2' 9 | rm -rf openresty-pcre-asan_$(OPENRESTY_PCRE_ASAN_VER) 10 | mkdir -p openresty-pcre-asan_$(OPENRESTY_PCRE_ASAN_VER) 11 | tar -xf pcre-$(OPENRESTY_PCRE_ASAN_VER).tar.bz2 --strip-components=1 -C openresty-pcre-asan_$(OPENRESTY_PCRE_ASAN_VER) 12 | tar -czf openresty-pcre-asan_$(OPENRESTY_PCRE_ASAN_VER).orig.tar.gz openresty-pcre-asan_$(OPENRESTY_PCRE_ASAN_VER) 13 | 14 | openresty-pcre-asan-clean: 15 | -cd openresty-pcre-asan && debclean 16 | -find openresty-pcre-asan -maxdepth 1 ! -name 'debian' ! -name 'openresty-pcre-asan' -print | xargs rm -rf 17 | rm -rf openresty-pcre-asan*.deb 18 | rm -rf openresty-pcre-asan_*.* 19 | 20 | .PHONY: openresty-pcre-asan-build 21 | openresty-pcre-asan-build: openresty-pcre-asan-clean openresty-pcre-asan-download 22 | sudo apt-get -y -q install ccache libtool gcc 23 | sudo apt-get -y -q install --only-upgrade ccache libtool gcc 24 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 25 | tar xf openresty-pcre-asan_$(OPENRESTY_PCRE_ASAN_VER).orig.tar.gz --strip-components=1 -C openresty-pcre-asan 26 | cd openresty-pcre-asan \ 27 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 28 | && debuild --no-lintian $(OPTS) -j$(JOBS) 29 | #if [ -f ./upload ]; then ./upload || exit 1; fi 30 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-pcre-asan (8.45-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded PCRE to 8.45. 4 | 5 | -- OpenResty Admin Wed, 26 Jan 2022 23:00:28 +0800 6 | 7 | openresty-pcre-asan (8.44-5~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * packaging files were generated by spec2deb.pl. 10 | 11 | -- OpenResty Admin Tue, 4 May 2021 20:47:09 -0700 12 | 13 | openresty-pcre-asan (8.42-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded openresty-pcre to 8.42. 16 | 17 | -- OpenResty Admin Mon, 14 May 2018 00:00:00 -0700 18 | 19 | openresty-pcre-asan (8.40-3~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * fixed changelog dates. 22 | 23 | -- OpenResty Admin Sat, 15 Jul 2017 00:00:00 -0700 24 | 25 | openresty-pcre-asan (8.40-2~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * fixed spec for CentOS 6 regarding missing build id issues. 28 | 29 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 30 | 31 | openresty-pcre-asan (8.40-1~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * initial build for PCRE 8.40. 34 | 35 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 36 | 37 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-pcre-asan 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), ccache, libtool, gcc 6 | Standards-Version: 3.9.8 7 | Homepage: http://www.pcre.org/ 8 | 9 | Package: openresty-pcre-asan 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends} 13 | Description: Clang AddressSanitizer version of the Perl-compatible regular expression library for OpenResty 14 | Perl-compatible regular expression library for use by OpenResty ONLY. 15 | This is the gcc AddressSanitizer version. 16 | 17 | Package: openresty-pcre-asan-dev 18 | Architecture: any 19 | Section: libdevel 20 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-pcre-asan (>= 8.44) 21 | Description: Development files for openresty-pcre-asan 22 | Development files for Perl-compatible regular expression library for use by OpenResty ONLY. 23 | This is the gcc AddressSanitizer version. 24 | 25 | Package: openresty-pcre-asan-dbgsym 26 | Section: debug 27 | Architecture: any 28 | Depends: ${misc:Depends}, openresty-pcre-asan (>= 8.44) 29 | Description: Debug symbols for the openresty-pcre-asan package 30 | Debug symbols (or debuginfo) for the openresty-pcre-asan package. 31 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/copyright: -------------------------------------------------------------------------------- 1 | License: BSD 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/openresty-pcre-asan-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/pcre/lib/*.a 2 | usr/local/openresty-asan/pcre/include/*.h 3 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/openresty-pcre-asan.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/pcre/lib/*.so* 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev,systemd 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | export CC="ccache gcc -fsanitize=address" \ 22 | && export CFLAGS="-O1 -fno-omit-frame-pointer -g" \ 23 | && export ASAN_OPTIONS=detect_leaks=0 \ 24 | && ./configure \ 25 | --prefix=/usr/local/openresty-asan/pcre \ 26 | --libdir=/usr/local/openresty-asan/pcre/lib \ 27 | --disable-cpp \ 28 | --enable-jit \ 29 | --enable-utf \ 30 | --enable-unicode-properties \ 31 | && make -j`nproc` V=1 > /dev/stderr 32 | 33 | override_dh_auto_install: 34 | make install DESTDIR=$(DESTDIR) \ 35 | && rm -rf $(DESTDIR)//usr/local/openresty-asan/pcre/bin \ 36 | && rm -rf $(DESTDIR)//usr/local/openresty-asan/pcre/share \ 37 | && rm -f $(DESTDIR)//usr/local/openresty-asan/pcre/lib/*.la \ 38 | && rm -f $(DESTDIR)//usr/local/openresty-asan/pcre/lib/*pcrecpp* \ 39 | && rm -f $(DESTDIR)//usr/local/openresty-asan/pcre/lib/*pcreposix* \ 40 | && rm -rf $(DESTDIR)//usr/local/openresty-asan/pcre/lib/pkgconfig 41 | 42 | override_dh_auto_clean: 43 | dh_clean 44 | rm -rf $(DESTDIR) 45 | 46 | override_dh_strip: 47 | dh_strip --dbg-package=openresty-pcre-asan-dbgsym 48 | -------------------------------------------------------------------------------- /deb/openresty-pcre-asan/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-pcre (8.45-2~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * bumped the release number to 2. 4 | 5 | -- OpenResty Admin Tue, 12 Jul 2022 12:07:30 +0800 6 | 7 | openresty-pcre (8.45-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded PCRE to 8.45. 10 | 11 | -- OpenResty Admin Wed, 26 Jan 2022 23:00:28 +0800 12 | 13 | openresty-pcre (8.44-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded OpenResty to 8.44. 16 | 17 | -- OpenResty Admin Thu, 19 Mar 2020 23:23:20 -0700 18 | 19 | openresty-pcre (8.43-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded OpenResty to 8.43. 22 | 23 | -- OpenResty Admin Thu, 29 Aug 2019 22:51:58 -0700 24 | 25 | openresty-pcre (8.42-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * upgraded OpenResty to 8.42. 28 | 29 | -- OpenResty Admin Mon, 14 May 2018 22:51:58 -0700 30 | 31 | openresty-pcre (8.41-1~[% distro %]1) [% distro %]; urgency=low 32 | 33 | * upgraded pcre to 8.41 34 | 35 | -- OpenResty Admin Thu, 2 Nov 2017 16:46:28 -0700 36 | 37 | openresty-pcre (8.40-1~[% distro %]1) [% distro %]; urgency=low 38 | 39 | * Initial release 40 | 41 | -- OpenResty Admin Sun, 30 Apr 2017 23:08:33 +0800 42 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-pcre 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev 6 | Standards-Version: 3.9.8 7 | Homepage: http://www.pcre.org/ 8 | 9 | Package: openresty-pcre 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: Perl-compatible regular expression library for use by OpenResty ONLY 13 | Perl-compatible regular expression library for use by OpenResty ONLY 14 | 15 | Package: openresty-pcre-dev 16 | Section: libdevel 17 | Architecture: any 18 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-pcre 19 | Description: Development files for Perl-compatible regular expression library for use by OpenResty ONLY 20 | Development files for Perl-compatible regular expression library for use by OpenResty ONLY 21 | 22 | Package: openresty-pcre-dbgsym 23 | Section: debug 24 | Architecture: any 25 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-pcre 26 | Description: Debug symbols for Perl-compatible regular expression library for use by OpenResty ONLY 27 | Debug symbols for Perl-compatible regular expression library for use by OpenResty ONLY 28 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/copyright: -------------------------------------------------------------------------------- 1 | This is Debian GNU/Linux's prepackaged version of the PCRE regular 2 | expression library and associated pgrep utility. 3 | 4 | This package was put together by me, Mark Baker from the 5 | original sources obtained from ftp.csx.cam.ac.uk:/pub/software/programming/pcre. 6 | 7 | PCRE LICENCE 8 | ------------ 9 | 10 | PCRE is a library of functions to support regular expressions whose syntax 11 | and semantics are as close as possible to those of the Perl 5 language. 12 | 13 | Release 7 of PCRE is distributed under the terms of the "BSD" licence, as 14 | specified below. The documentation for PCRE, supplied in the "doc" 15 | directory, is distributed under the same terms as the software itself. 16 | 17 | The basic library functions are written in C and are freestanding. Also 18 | included in the distribution is a set of C++ wrapper functions. 19 | 20 | 21 | THE BASIC LIBRARY FUNCTIONS 22 | --------------------------- 23 | 24 | Written by: Philip Hazel 25 | Email local part: ph10 26 | Email domain: cam.ac.uk 27 | 28 | University of Cambridge Computing Service, 29 | Cambridge, England. 30 | 31 | Copyright (c) 1997-2007 University of Cambridge 32 | All rights reserved. 33 | 34 | 35 | THE C++ WRAPPER FUNCTIONS 36 | ------------------------- 37 | 38 | Contributed by: Google Inc. 39 | 40 | Copyright (c) 2007, Google Inc. 41 | All rights reserved. 42 | 43 | 44 | THE "BSD" LICENCE 45 | ----------------- 46 | 47 | Redistribution and use in source and binary forms, with or without 48 | modification, are permitted provided that the following conditions are met: 49 | 50 | * Redistributions of source code must retain the above copyright notice, 51 | this list of conditions and the following disclaimer. 52 | 53 | * Redistributions in binary form must reproduce the above copyright 54 | notice, this list of conditions and the following disclaimer in the 55 | documentation and/or other materials provided with the distribution. 56 | 57 | * Neither the name of the University of Cambridge nor the name of Google 58 | Inc. nor the names of their contributors may be used to endorse or 59 | promote products derived from this software without specific prior 60 | written permission. 61 | 62 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 63 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 64 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 65 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 66 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 67 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 68 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 69 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 70 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 71 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 72 | POSSIBILITY OF SUCH DAMAGE. 73 | 74 | End 75 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/openresty-pcre-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/pcre/lib/*.a 2 | usr/local/openresty/pcre/include/*.h 3 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/openresty-pcre.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/pcre/lib/*.so* 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #DH_VERBOSE = 1 5 | 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* 7 | DESTDIR = $(CURDIR)/debian/tmp 8 | DPKG_EXPORT_BUILDFLAGS = 1 9 | include /usr/share/dpkg/default.mk 10 | 11 | # see FEATURE AREAS in dpkg-buildflags(1) 12 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all 13 | 14 | # see ENVIRONMENT in dpkg-buildflags(1) 15 | # package maintainers to append CFLAGS 16 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 17 | # package maintainers to append LDFLAGS 18 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 19 | 20 | 21 | export NO_PKG_MANGLE=1 22 | 23 | # main packaging script based on dh7 syntax 24 | %: 25 | dh $@ --parallel --with autotools-dev 26 | 27 | override_dh_auto_configure: 28 | ./configure \ 29 | --prefix=/usr/local/openresty/pcre \ 30 | --disable-cpp \ 31 | --enable-jit \ 32 | --enable-utf \ 33 | --enable-unicode-properties 34 | 35 | override_dh_usrlocal: 36 | 37 | override_dh_install: 38 | dh_install 39 | rm -rf $(DESTDIR)/usr/local/openresty/pcre/bin 40 | rm -rf $(DESTDIR)/usr/local/openresty/pcre/share 41 | rm -f $(DESTDIR)/usr/local/openresty/pcre/lib/*.la 42 | rm -f $(DESTDIR)/usr/local/openresty/pcre/lib/*pcrecpp* 43 | rm -f $(DESTDIR)/usr/local/openresty/pcre/lib/*pcreposix* 44 | rm -rf $(DESTDIR)/usr/local/openresty/pcre/lib/pkgconfig 45 | 46 | override_dh_strip: 47 | dh_strip --dbg-package=openresty-pcre-dbgsym 48 | -------------------------------------------------------------------------------- /deb/openresty-pcre/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | OPENRESTY_SAAS_PCRE2_VER = 10.44 5 | 6 | .PHONY: openresty-pcre2-asan-download 7 | openresty-pcre2-asan-download: 8 | LANG=C LC_ALL='C.UTF-8' wget -nH --cut-dirs=100 --mirror 'https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$(OPENRESTY_SAAS_PCRE2_VER)/pcre2-$(OPENRESTY_SAAS_PCRE2_VER).tar.gz' 9 | rm -rf openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER) 10 | mkdir -p openresty-pcre2-asan_$(OPENRESTY_SAAS_PCRE2_VER) 11 | tar -xf pcre2-$(OPENRESTY_SAAS_PCRE2_VER).tar.gz --strip-components=1 -C openresty-pcre2-asan_$(OPENRESTY_SAAS_PCRE2_VER) 12 | tar -czf openresty-pcre2-asan_$(OPENRESTY_SAAS_PCRE2_VER).orig.tar.gz openresty-pcre2-asan_$(OPENRESTY_SAAS_PCRE2_VER) 13 | 14 | openresty-pcre2-asan-clean: 15 | -cd openresty-pcre2-asan && debclean 16 | -find openresty-pcre2-asan -maxdepth 1 ! -name 'debian' ! -name 'openresty-pcre2-asan' -print | xargs rm -rf 17 | rm -rf openresty-pcre2-asan*.deb 18 | rm -rf openresty-pcre2-asan_*.* 19 | 20 | #sudo apt-get -y -q install libtemplate-perl debhelper devscripts dh-systemd 21 | #sudo apt-get -y -q install --only-upgrade libtemplate-perl debhelper devscripts dh-systemd 22 | .PHONY: openresty-pcre2-asan-build 23 | openresty-pcre2-asan-build: openresty-pcre2-asan-clean openresty-pcre2-asan-download 24 | sudo apt-get -y -q install coreutils gcc make ccache sed 25 | sudo apt-get -y -q install --only-upgrade coreutils gcc libtool make ccache sed 26 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 27 | tar xf openresty-pcre2-asan_$(OPENRESTY_SAAS_PCRE2_VER).orig.tar.gz --strip-components=1 -C openresty-pcre2-asan 28 | cd openresty-pcre2-asan \ 29 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 30 | && debuild $(OPTS) -j$(JOBS) 31 | #if [ -f ./upload ]; then ./upload || exit 1; fi 32 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-pcre2-asan (10.44-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 10.44. 4 | 5 | -- OpenResty Admin Tue, 20 Aug 2024 10:16:51 +0800 6 | 7 | openresty-pcre2-asan (10.42-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * packaging files were generated by spec2deb.pl. 10 | 11 | -- OpenResty Admin Tue, 4 May 2021 20:47:09 -0700 12 | 13 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-pcre2-asan 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), ccache, libtool, gcc 6 | Standards-Version: 3.9.8 7 | Homepage: http://www.pcre.org/ 8 | 9 | Package: openresty-pcre2-asan 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends} 13 | Description: Clang AddressSanitizer version of the Perl-compatible regular expression library for OpenResty 14 | Perl-compatible regular expression library for use by OpenResty ONLY. 15 | This is the gcc AddressSanitizer version. 16 | 17 | Package: openresty-pcre2-asan-dev 18 | Architecture: any 19 | Section: libdevel 20 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-pcre2-asan (>= 10.44) 21 | Description: Development files for openresty-pcre2-asan 22 | Development files for Perl-compatible regular expression library for use by OpenResty ONLY. 23 | This is the gcc AddressSanitizer version. 24 | 25 | Package: openresty-pcre2-asan-dbgsym 26 | Section: debug 27 | Architecture: any 28 | Depends: ${misc:Depends}, openresty-pcre2-asan (>= 10.44) 29 | Description: Debug symbols for the openresty-pcre2-asan package 30 | Debug symbols (or debuginfo) for the openresty-pcre2-asan package. 31 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/copyright: -------------------------------------------------------------------------------- 1 | License: BSD 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/openresty-pcre2-asan-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/pcre2/lib/*.so 2 | usr/local/openresty-asan/pcre2/lib/*.la 3 | usr/local/openresty-asan/pcre2/lib/pkgconfig/* 4 | usr/local/openresty-asan/pcre2/include/*.h 5 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/openresty-pcre2-asan.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/pcre2/lib/libpcre2-8.so.0* 2 | usr/local/openresty-asan/pcre2/lib/libpcre2-posix.so.3* 3 | usr/local/openresty-asan/pcre2/lib/libpcre2-16.so.0* 4 | usr/local/openresty-asan/pcre2/lib/libpcre2-32.so.0* 5 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev,systemd 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | export CC="ccache gcc -fsanitize=address" \ 22 | && export CFLAGS="-O1 -fno-omit-frame-pointer -g" \ 23 | && export ASAN_OPTIONS=detect_leaks=0 \ 24 | && ./configure \ 25 | --prefix=/usr/local/openresty-asan/pcre2 \ 26 | --libdir=/usr/local/openresty-asan/pcre2/lib \ 27 | --enable-jit \ 28 | --enable-pcre2grep-jit \ 29 | --disable-bsr-anycrlf \ 30 | --disable-coverage \ 31 | --disable-ebcdic \ 32 | --disable-fuzz-support \ 33 | --disable-jit-sealloc \ 34 | --disable-never-backslash-C \ 35 | --enable-newline-is-lf \ 36 | --enable-pcre2-8 \ 37 | --enable-pcre2-16 \ 38 | --enable-pcre2-32 \ 39 | --enable-pcre2grep-callout \ 40 | --enable-pcre2grep-callout-fork \ 41 | --disable-pcre2grep-libbz2 \ 42 | --disable-pcre2grep-libz \ 43 | --disable-pcre2test-libedit \ 44 | --enable-percent-zt \ 45 | --disable-rebuild-chartables \ 46 | --enable-shared \ 47 | --disable-static \ 48 | --disable-silent-rules \ 49 | --enable-unicode \ 50 | --disable-valgrind \ 51 | && make CC='ccache gcc' -j`nproc` 52 | 53 | override_dh_auto_install: 54 | make install DESTDIR=$(DESTDIR) \ 55 | && rm -rf $(DESTDIR)$(PREFIX)/share \ 56 | && rm -rf $(DESTDIR)$(PREFIX)/bin 57 | 58 | override_dh_auto_clean: 59 | dh_clean 60 | rm -rf $(DESTDIR) 61 | 62 | override_dh_strip: 63 | dh_strip --dbg-package=openresty-pcre2-asan-dbgsym 64 | -------------------------------------------------------------------------------- /deb/openresty-pcre2-asan/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | OPENRESTY_SAAS_PCRE2_VER = 10.44 5 | 6 | .PHONY: openresty-pcre2-download 7 | openresty-pcre2-download: 8 | LANG=C LC_ALL='C.UTF-8' wget -nH --cut-dirs=100 --mirror 'https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$(OPENRESTY_SAAS_PCRE2_VER)/pcre2-$(OPENRESTY_SAAS_PCRE2_VER).tar.gz' 9 | rm -rf openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER) 10 | mkdir -p openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER) 11 | tar -xf pcre2-$(OPENRESTY_SAAS_PCRE2_VER).tar.gz --strip-components=1 -C openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER) 12 | tar -czf openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER).orig.tar.gz openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER) 13 | 14 | openresty-pcre2-clean: 15 | -cd openresty-pcre2 && debclean 16 | -find openresty-pcre2 -maxdepth 1 ! -name 'debian' ! -name 'openresty-pcre2' -print | xargs rm -rf 17 | rm -rf openresty-pcre2*.deb 18 | rm -rf openresty-pcre2_*.* 19 | 20 | #sudo apt-get -y -q install libtemplate-perl debhelper devscripts dh-systemd 21 | #sudo apt-get -y -q install --only-upgrade libtemplate-perl debhelper devscripts dh-systemd 22 | .PHONY: openresty-pcre2-build 23 | openresty-pcre2-build: openresty-pcre2-clean openresty-pcre2-download 24 | sudo apt-get -y -q install coreutils gcc make ccache sed 25 | sudo apt-get -y -q install --only-upgrade coreutils gcc libtool make ccache sed 26 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 27 | tar xf openresty-pcre2_$(OPENRESTY_SAAS_PCRE2_VER).orig.tar.gz --strip-components=1 -C openresty-pcre2 28 | cd openresty-pcre2 \ 29 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 30 | && debuild $(OPTS) -j$(JOBS) 31 | #if [ -f ./upload ]; then ./upload || exit 1; fi 32 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-pcre2 (10.44-2~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded OpenResty to 10.44. 4 | 5 | -- OpenResty Admin Thu, 3 Apr 2025 10:15:27 +0800 6 | 7 | openresty-pcre2 (10.44-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded OpenResty to 10.44. 10 | 11 | -- OpenResty Admin Tue, 20 Aug 2024 10:15:27 +0800 12 | 13 | openresty-pcre2 (10.42-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded OpenResty to 10.42. 16 | 17 | -- OpenResty Admin Mon, 27 Nov 2023 08:32:43 +0800 18 | 19 | openresty-pcre2 (10.39-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded pcre2 to 10.39. 22 | 23 | -- OpenResty Admin Tue, 29 Mar 2022 00:00:00 +0800 24 | 25 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-pcre2 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), coreutils, gcc, make, ccache, sed 6 | Standards-Version: 3.9.8 7 | Homepage: https://github.com/PCRE2Project/pcre2 8 | 9 | Package: openresty-pcre2 10 | Architecture: any 11 | Section: libs 12 | Depends: ${shlibs:Depends}, ${misc:Depends} 13 | Description: Perl-compatible regular expression library 14 | PCRE2 is a re-working of the original PCRE (Perl-compatible regular 15 | expression) library to provide an entirely new API. 16 | PCRE2 is written in C, and it has its own API. There are three sets of 17 | functions, one for the 8-bit library, which processes strings of bytes, one 18 | for the 16-bit library, which processes strings of 16-bit values, and one for 19 | the 32-bit library, which processes strings of 32-bit values. There are no C++ 20 | wrappers. This package provides support for strings in 8-bit and UTF-8 21 | encodings. 22 | The distribution does contain a set of C wrapper functions for the 8-bit 23 | library that are based on the POSIX regular expression API (see the pcre2posix 24 | man page). These can be found in a library called libpcre2posix. Note that 25 | this just provides a POSIX calling interface to PCRE2; the regular expressions 26 | themselves still follow Perl syntax and semantics. The POSIX API is 27 | restricted, and does not give full access to all of PCRE2's facilities. 28 | 29 | Package: openresty-pcre2-dev 30 | Architecture: any 31 | Section: libs 32 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-pcre2 (>= ${source:Upstream-Version}) 33 | Description: Development files for openresty-pcre2 34 | Development files (headers, libraries for dynamic linking, documentation) 35 | for openresty-pcre2. The header file for the POSIX-style functions is called 36 | pcre2posix.h. 37 | 38 | Package: openresty-pcre2-dbgsym 39 | Section: debug 40 | Architecture: any 41 | Depends: ${misc:Depends}, openresty-pcre2 (>= ${source:Upstream-Version}) 42 | Description: Debug symbols for the openresty-pcre2 package 43 | Debug symbols (or debuginfo) for the openresty-pcre2 package. 44 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/copyright: -------------------------------------------------------------------------------- 1 | License: BSD 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/openresty-pcre2-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/pcre2/lib/*.so 2 | usr/local/openresty/pcre2/lib/*.la 3 | usr/local/openresty/pcre2/lib/pkgconfig/* 4 | usr/local/openresty/pcre2/include/*.h 5 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/openresty-pcre2.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/pcre2/lib/libpcre2-8.so.0* 2 | usr/local/openresty/pcre2/lib/libpcre2-posix.so.3* 3 | usr/local/openresty/pcre2/lib/libpcre2-16.so.0* 4 | usr/local/openresty/pcre2/lib/libpcre2-32.so.0* 5 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/patches/pcre2-range-minus.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c 2 | index 8e6787ab..4920701e 100644 3 | --- a/src/pcre2_compile.c 4 | +++ b/src/pcre2_compile.c 5 | @@ -3880,6 +3880,7 @@ while (ptr < ptrend) 6 | goto FAILED; 7 | } 8 | 9 | +#if 0 10 | /* Perl gives a warning unless a following hyphen is the last character 11 | in the class. PCRE throws an error. */ 12 | 13 | @@ -3889,6 +3890,7 @@ while (ptr < ptrend) 14 | errorcode = ERR50; 15 | goto FAILED; 16 | } 17 | +#endif 18 | } 19 | 20 | /* Proceed to next thing in the class. */ 21 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/patches/series: -------------------------------------------------------------------------------- 1 | pcre2-range-minus.patch 2 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | PREFIX = /usr/local/openresty/pcre2 11 | 12 | %: 13 | dh $@ --parallel --with autotools-dev 14 | 15 | override_dh_auto_test: 16 | 17 | override_dh_usrlocal: 18 | 19 | override_dh_auto_configure: 20 | 21 | override_dh_auto_build: 22 | CFLAGS="-g -O3" ./configure \ 23 | --prefix=$(PREFIX) \ 24 | --libdir=$(PREFIX)/lib \ 25 | --enable-jit \ 26 | --enable-pcre2grep-jit \ 27 | --disable-bsr-anycrlf \ 28 | --disable-coverage \ 29 | --disable-ebcdic \ 30 | --disable-fuzz-support \ 31 | --disable-jit-sealloc \ 32 | --disable-never-backslash-C \ 33 | --enable-newline-is-lf \ 34 | --enable-pcre2-8 \ 35 | --enable-pcre2-16 \ 36 | --enable-pcre2-32 \ 37 | --enable-pcre2grep-callout \ 38 | --enable-pcre2grep-callout-fork \ 39 | --disable-pcre2grep-libbz2 \ 40 | --disable-pcre2grep-libz \ 41 | --disable-pcre2test-libedit \ 42 | --enable-percent-zt \ 43 | --disable-rebuild-chartables \ 44 | --enable-shared \ 45 | --disable-static \ 46 | --disable-silent-rules \ 47 | --enable-unicode \ 48 | --disable-valgrind \ 49 | && make CC='ccache gcc' -j`nproc` 50 | 51 | override_dh_auto_install: 52 | make install DESTDIR=$(DESTDIR) \ 53 | && rm -rf $(DESTDIR)$(PREFIX)/share \ 54 | && rm -rf $(DESTDIR)$(PREFIX)/bin 55 | 56 | override_dh_strip: 57 | dh_strip --dbg-package=openresty-pcre2-dbgsym 58 | -------------------------------------------------------------------------------- /deb/openresty-pcre2/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-valgrind/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-valgrind/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-valgrind 2 | Section: httpd 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev, 6 | systemtap-sdt-dev, valgrind, 7 | openresty-zlib-dev, openresty-openssl3-debug-dev (>= 3.0.15), 8 | openresty-pcre2-dev (>= 10.44), 9 | perl, libfile-temp-perl 10 | Standards-Version: 3.9.8 11 | Homepage: https://openresty.org/ 12 | 13 | Package: openresty-valgrind 14 | Architecture: any 15 | Depends: ${shlibs:Depends}, ${misc:Depends}, valgrind, 16 | openresty-zlib, openresty-openssl3-debug (>= 3.0.15), openresty-pcre2 (>= 10.44) 17 | Description: valgrind debug version of OpenResty core server 18 | This package contains the debug version of the core server for OpenResty. 19 | Built for development purposes only. 20 | . 21 | DO NOT USE THIS PACKAGE IN PRODUCTION! 22 | . 23 | OpenResty is a full-fledged web platform by integrating the standard Nginx 24 | core, LuaJIT, many carefully written Lua libraries, lots of high quality 25 | 3rd-party Nginx modules, and most of their external dependencies. It is 26 | designed to help developers easily build scalable web applications, web 27 | services, and dynamic web gateways. 28 | . 29 | By taking advantage of various well-designed Nginx modules (most of which 30 | are developed by the OpenResty team themselves), OpenResty effectively 31 | turns the nginx server into a powerful web app server, in which the web 32 | developers can use the Lua programming language to script various existing 33 | nginx C modules and Lua modules and construct extremely high-performance 34 | web applications that are capable to handle 10K ~ 1000K+ connections in 35 | a single box. 36 | 37 | Package: openresty-valgrind-dbgsym 38 | Section: debug 39 | Architecture: any 40 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-valgrind 41 | Description: Debug symbols of OpenResty packages - valgrind debug version 42 | Debug symbols of OpenResty packages 43 | -------------------------------------------------------------------------------- /deb/openresty-valgrind/debian/openresty-valgrind.conffiles: -------------------------------------------------------------------------------- 1 | /usr/local/openresty-valgrind/nginx/conf/nginx.conf.default 2 | /usr/local/openresty-valgrind/nginx/conf/scgi_params 3 | /usr/local/openresty-valgrind/nginx/conf/fastcgi.conf 4 | /usr/local/openresty-valgrind/nginx/conf/uwsgi_params.default 5 | /usr/local/openresty-valgrind/nginx/conf/fastcgi.conf.default 6 | /usr/local/openresty-valgrind/nginx/conf/win-utf 7 | /usr/local/openresty-valgrind/nginx/conf/scgi_params.default 8 | /usr/local/openresty-valgrind/nginx/conf/nginx.conf 9 | /usr/local/openresty-valgrind/nginx/conf/mime.types.default 10 | /usr/local/openresty-valgrind/nginx/conf/mime.types 11 | /usr/local/openresty-valgrind/nginx/conf/uwsgi_params 12 | /usr/local/openresty-valgrind/nginx/conf/fastcgi_params 13 | /usr/local/openresty-valgrind/nginx/conf/koi-win 14 | /usr/local/openresty-valgrind/nginx/conf/fastcgi_params.default 15 | /usr/local/openresty-valgrind/nginx/conf/koi-utf 16 | -------------------------------------------------------------------------------- /deb/openresty-valgrind/debian/openresty-valgrind.install: -------------------------------------------------------------------------------- 1 | usr/bin/openresty-valgrind 2 | usr/local/openresty-valgrind/bin/openresty 3 | usr/local/openresty-valgrind/site/lualib 4 | usr/local/openresty-valgrind/luajit/* 5 | usr/local/openresty-valgrind/lualib/* 6 | usr/local/openresty-valgrind/nginx/html/* 7 | usr/local/openresty-valgrind/nginx/sbin/* 8 | usr/local/openresty-valgrind/nginx/conf/* 9 | usr/local/openresty-valgrind/nginx/logs 10 | -------------------------------------------------------------------------------- /deb/openresty-valgrind/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | DPKG_EXPORT_BUILDFLAGS = 1 3 | include /usr/share/dpkg/default.mk 4 | 5 | export NO_PKG_MANGLE=1 6 | export QA_RPATHS=$[ 0x0002 ] 7 | export NJBS = `nproc` 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev 13 | 14 | override_dh_auto_configure: 15 | ./configure \ 16 | --prefix="/usr/local/openresty-valgrind" \ 17 | --with-debug \ 18 | --with-cc-opt="-I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre2/include -I/usr/local/openresty-debug/openssl3/include -O0" \ 19 | --with-ld-opt="-L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre2/lib -L/usr/local/openresty-debug/openssl3/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre2/lib:/usr/local/openresty-debug/openssl3/lib" \ 20 | --with-pcre-jit \ 21 | --without-http_rds_json_module \ 22 | --without-http_rds_csv_module \ 23 | --without-lua_rds_parser \ 24 | --with-stream \ 25 | --with-stream_ssl_module \ 26 | --with-stream_ssl_preread_module \ 27 | --with-http_v2_module \ 28 | --with-http_v3_module \ 29 | --without-mail_pop3_module \ 30 | --without-mail_imap_module \ 31 | --without-mail_smtp_module \ 32 | --with-http_stub_status_module \ 33 | --with-http_realip_module \ 34 | --with-http_addition_module \ 35 | --with-http_auth_request_module \ 36 | --with-http_secure_link_module \ 37 | --with-http_random_index_module \ 38 | --with-http_gzip_static_module \ 39 | --with-http_sub_module \ 40 | --with-http_dav_module \ 41 | --with-http_flv_module \ 42 | --with-http_mp4_module \ 43 | --with-http_gunzip_module \ 44 | --with-threads \ 45 | --with-poll_module \ 46 | --with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_USE_VALGRIND -DLUAJIT_USE_SYSMALLOC -O0' \ 47 | --with-no-pool-patch \ 48 | -j$(NJBS) 49 | 50 | override_dh_usrlocal: 51 | 52 | override_dh_auto_install: 53 | dh_auto_install 54 | rm -rf $(DESTDIR)/usr/local/openresty-valgrind/luajit/share/man 55 | rm -rf $(DESTDIR)/usr/local/openresty-valgrind/luajit/lib/libluajit-5.1.a 56 | mkdir -p $(DESTDIR)/usr/bin 57 | cd $(DESTDIR)/usr/bin 58 | ln -sf ../local/openresty-valgrind/nginx/sbin/nginx $(DESTDIR)/usr/bin/openresty-valgrind 59 | cd $(CURDIR) 60 | 61 | override_dh_strip: 62 | dh_strip --dbg-package=openresty-valgrind-dbgsym 63 | -------------------------------------------------------------------------------- /deb/openresty-valgrind/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan.mk: -------------------------------------------------------------------------------- 1 | ## Author: spec2deb.pl 2 | ### Version: 0.01 3 | 4 | OPENRESTY_ZLIB_ASAN_VER := $(ZLIB_VER) 5 | 6 | .PHONY: openresty-zlib-asan-download 7 | openresty-zlib-asan-download: 8 | wget -nH --cut-dirs=100 --mirror 'https://www.zlib.net/fossils/zlib-$(OPENRESTY_ZLIB_ASAN_VER).tar.gz' 9 | rm -rf openresty-zlib-asan_$(OPENRESTY_ZLIB_ASAN_VER) 10 | mkdir -p openresty-zlib-asan_$(OPENRESTY_ZLIB_ASAN_VER) 11 | tar -xf zlib-$(OPENRESTY_ZLIB_ASAN_VER).tar.gz --strip-components=1 -C openresty-zlib-asan_$(OPENRESTY_ZLIB_ASAN_VER) 12 | tar -czf openresty-zlib-asan_$(OPENRESTY_ZLIB_ASAN_VER).orig.tar.gz openresty-zlib-asan_$(OPENRESTY_ZLIB_ASAN_VER) 13 | 14 | openresty-zlib-asan-clean: 15 | -cd openresty-zlib-asan && debclean 16 | -find openresty-zlib-asan -maxdepth 1 ! -name 'debian' ! -name 'openresty-zlib-asan' -print | xargs rm -rf 17 | rm -rf openresty-zlib-asan*.deb 18 | rm -rf openresty-zlib-asan_*.* 19 | 20 | .PHONY: openresty-zlib-asan-build 21 | openresty-zlib-asan-build: openresty-zlib-asan-clean openresty-zlib-asan-download 22 | sudo apt-get -y -q install libtool gcc 23 | sudo apt-get -y -q install --only-upgrade libtool gcc 24 | rm -f *.deb *.debian.tar.xz *.dsc *.changes 25 | tar xf openresty-zlib-asan_$(OPENRESTY_ZLIB_ASAN_VER).orig.tar.gz --strip-components=1 -C openresty-zlib-asan 26 | cd openresty-zlib-asan \ 27 | && tpage --define distro=$(DISTRO) debian/changelog.tt2 > debian/changelog \ 28 | && debuild --no-lintian $(OPTS) -j$(JOBS) 29 | #if [ -f ./upload ]; then ./upload || exit 1; fi 30 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-zlib-asan (1.3.1-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded zlib to 1.3.1. 4 | 5 | -- OpenResty Admin Fri, 7 Jun 2024 05:54:35 +0000 6 | 7 | openresty-zlib-asan (1.3-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded zlib to 1.3. 10 | 11 | -- OpenResty Admin Wed, 13 Sep 2023 10:14:30 +0800 12 | 13 | openresty-zlib-asan (1.2.13-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded zlib to 1.2.13. 16 | 17 | -- OpenResty Admin Wed, 30 Nov 2022 10:50:59 +0800 18 | 19 | openresty-zlib-asan (1.2.12-1~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * upgraded zlib to 1.2.12. 22 | 23 | -- OpenResty Admin Thu, 31 Mar 2022 22:57:23 +0800 24 | 25 | openresty-zlib-asan (1.2.11-17~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * packaging files were generated by spec2deb.pl. 28 | 29 | -- OpenResty Admin Tue, 4 May 2021 19:58:58 -0700 30 | 31 | openresty-zlib-asan (1.2.11-6~[% distro %]1) [% distro %]; urgency=high 32 | 33 | * specify the correct CC environment before running ./configure too. 34 | 35 | -- OpenResty Admin Sat, 15 Jul 2017 00:00:00 -0700 36 | 37 | openresty-zlib-asan (1.2.11-5~[% distro %]1) [% distro %]; urgency=high 38 | 39 | * restored --version-script. 40 | 41 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 42 | 43 | openresty-zlib-asan (1.2.11-4~[% distro %]1) [% distro %]; urgency=high 44 | 45 | * removed linker option --version-script. 46 | 47 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 48 | 49 | openresty-zlib-asan (1.2.11-3~[% distro %]1) [% distro %]; urgency=high 50 | 51 | * fixed spec for CentOS 6 regarding missing build id issues. 52 | 53 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 54 | 55 | openresty-zlib-asan (1.2.11-2~[% distro %]1) [% distro %]; urgency=high 56 | 57 | * forgot to use clang -fsanitize=address to link shared libraries. 58 | 59 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 60 | 61 | openresty-zlib-asan (1.2.11-1~[% distro %]1) [% distro %]; urgency=high 62 | 63 | * initial build for zlib 1.2.11. 64 | 65 | -- OpenResty Admin Fri, 14 Jul 2017 00:00:00 -0700 66 | 67 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-zlib-asan 2 | Section: libdevel 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), libtool, gcc 6 | Standards-Version: 3.9.8 7 | Homepage: http://www.zlib.net/ 8 | 9 | Package: openresty-zlib-asan 10 | Architecture: any 11 | Section: libdevel 12 | Depends: ${shlibs:Depends}, ${misc:Depends} 13 | Description: Gcc AddressSanitizer version for the zlib compression library for OpenResty 14 | The zlib compression library for use by Openresty ONLY. This is the gcc AddressSanitizer build. 15 | 16 | Package: openresty-zlib-asan-dev 17 | Architecture: any 18 | Section: libdevel 19 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib-asan (>= 1.2.11) 20 | Description: Development files for OpenResty's zlib library 21 | Provides C header and static library for OpenResty's gcc AddressSanitizer version of zlib library. 22 | 23 | Package: openresty-zlib-asan-dbgsym 24 | Section: debug 25 | Architecture: any 26 | Depends: ${misc:Depends}, openresty-zlib-asan (>= 1.2.11) 27 | Description: Debug symbols for the openresty-zlib-asan package 28 | Debug symbols (or debuginfo) for the openresty-zlib-asan package. 29 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/copyright: -------------------------------------------------------------------------------- 1 | License: zlib and Boost 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/openresty-zlib-asan-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/zlib/lib/*.a 2 | usr/local/openresty-asan/zlib/include/zlib.h 3 | usr/local/openresty-asan/zlib/include/zconf.h 4 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/openresty-zlib-asan.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty-asan/zlib/lib/libz.so* 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | DPKG_EXPORT_BUILDFLAGS = 1 4 | include /usr/share/dpkg/default.mk 5 | 6 | export NO_PKG_MANGLE=1 7 | export QA_RPATHS=$[ 0x0002 ] 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev,systemd 13 | 14 | override_dh_auto_test: 15 | 16 | override_dh_usrlocal: 17 | 18 | override_dh_auto_configure: 19 | 20 | override_dh_auto_build: 21 | export ASAN_OPTIONS=detect_leaks=0; unset LD_PRELOAD; \ 22 | ./configure --prefix=/usr/local/openresty-asan/zlib \ 23 | && make -j`nproc` CC="gcc -fsanitize=address" \ 24 | CFLAGS='-O1 -fno-omit-frame-pointer -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -g3' \ 25 | SFLAGS='-O1 -fno-omit-frame-pointer -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -g3' \ 26 | LDSHARED='gcc -fsanitize=address -shared -Wl,-soname,libz.so.1,--version-script,zlib.map' \ 27 | > /dev/stderr 28 | 29 | override_dh_auto_install: 30 | make install DESTDIR=$(DESTDIR) \ 31 | && rm -rf $(DESTDIR)//usr/local/openresty-asan/zlib/share \ 32 | && rm -f $(DESTDIR)//usr/local/openresty-asan/zlib/lib/*.la \ 33 | && rm -rf $(DESTDIR)//usr/local/openresty-asan/zlib/lib/pkgconfig 34 | 35 | override_dh_auto_clean: 36 | dh_clean 37 | rm -rf $(DESTDIR) 38 | 39 | override_dh_strip: 40 | dh_strip --dbg-package=openresty-zlib-asan-dbgsym 41 | -------------------------------------------------------------------------------- /deb/openresty-zlib-asan/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/changelog.tt2: -------------------------------------------------------------------------------- 1 | openresty-zlib (1.3.1-1~[% distro %]1) [% distro %]; urgency=high 2 | 3 | * upgraded zlib to 1.3.1. 4 | 5 | -- OpenResty Admin Fri, 7 Jun 2024 05:54:35 +0000 6 | 7 | openresty-zlib (1.3-1~[% distro %]1) [% distro %]; urgency=high 8 | 9 | * upgraded zlib to 1.3. 10 | 11 | -- OpenResty Admin Wed, 13 Sep 2023 10:14:30 +0800 12 | 13 | openresty-zlib (1.2.13-1~[% distro %]1) [% distro %]; urgency=high 14 | 15 | * upgraded zlib to 1.2.13. 16 | 17 | -- OpenResty Admin Wed, 30 Nov 2022 10:50:59 +0800 18 | 19 | openresty-zlib (1.2.12-2~[% distro %]1) [% distro %]; urgency=high 20 | 21 | * bumped the release number to 2. 22 | 23 | -- OpenResty Admin Tue, 12 Jul 2022 12:07:30 +0800 24 | 25 | openresty-zlib (1.2.12-1~[% distro %]1) [% distro %]; urgency=high 26 | 27 | * upgraded zlib to 1.2.12. 28 | 29 | -- OpenResty Admin Thu, 31 Mar 2022 22:57:23 +0800 30 | 31 | openresty-zlib (1.2.11-3~[% distro %]1) [% distro %]; urgency=low 32 | 33 | * bugfix: we did not enable debuginfo in the shared library files. 34 | 35 | -- OpenResty Admin Sat, 15 Jul 2017 12:13:41 -0700 36 | 37 | openresty-zlib (1.2.11-2~[% distro %]1) [% distro %]; urgency=low 38 | 39 | * Initial release 40 | 41 | -- OpenResty Admin Wed, 05 Oct 2016 00:49:03 +0800 42 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/control: -------------------------------------------------------------------------------- 1 | Source: openresty-zlib 2 | Section: libs 3 | Priority: optional 4 | Maintainer: OpenResty Admin 5 | Build-Depends: debhelper (>= 9), autotools-dev 6 | Standards-Version: 3.9.8 7 | Homepage: http://zlib.net/ 8 | 9 | Package: openresty-zlib 10 | Architecture: any 11 | Depends: ${shlibs:Depends}, ${misc:Depends} 12 | Description: The zlib compression library for use by Openresty ONLY 13 | The zlib compression library for use by Openresty ONLY 14 | 15 | Package: openresty-zlib-dev 16 | Section: libdevel 17 | Architecture: any 18 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib 19 | Description: Provides C header and static library for OpenResty's zlib library 20 | Provides C header and static library for OpenResty's zlib library. 21 | 22 | Package: openresty-zlib-dbgsym 23 | Section: debug 24 | Architecture: any 25 | Depends: ${shlibs:Depends}, ${misc:Depends}, openresty-zlib 26 | Description: Debug symbols for OpenResty's zlib library 27 | Debug symbols for OpenResty's zlib library 28 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/copyright: -------------------------------------------------------------------------------- 1 | This is the pre-packaged Debian Linux version of the zlib compression 2 | library. It was packaged by Michael Alan Dorman 3 | from sources originally retrieved from ftp.uu.net in the directory 4 | /pub/archiving/zip/zlib as the file zlib-1.0.4.tar.gz. 5 | 6 | There is a homepage at http://www.gzip.org/zlib/ 7 | 8 | Acknowledgments: 9 | 10 | The deflate format used by zlib was defined by Phil Katz. The deflate 11 | and zlib specifications were written by Peter Deutsch. Thanks to all the 12 | people who reported problems and suggested various improvements in zlib; 13 | they are too numerous to cite here. 14 | 15 | Copyright notice: 16 | 17 | Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler 18 | 19 | This software is provided 'as-is', without any express or implied 20 | warranty. In no event will the authors be held liable for any damages 21 | arising from the use of this software. 22 | 23 | Permission is granted to anyone to use this software for any purpose, 24 | including commercial applications, and to alter it and redistribute it 25 | freely, subject to the following restrictions: 26 | 27 | 1. The origin of this software must not be misrepresented; you must not 28 | claim that you wrote the original software. If you use this software 29 | in a product, an acknowledgment in the product documentation would be 30 | appreciated but is not required. 31 | 2. Altered source versions must be plainly marked as such, and must not be 32 | misrepresented as being the original software. 33 | 3. This notice may not be removed or altered from any source distribution. 34 | 35 | Jean-loup Gailly Mark Adler 36 | jloup@gzip.org madler@alumni.caltech.edu 37 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/openresty-zlib-dev.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/zlib/lib/*.a 2 | usr/local/openresty/zlib/include/zlib.h 3 | usr/local/openresty/zlib/include/zconf.h 4 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/openresty-zlib.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/zlib/lib/libz.so* 2 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | DPKG_EXPORT_BUILDFLAGS = 1 3 | include /usr/share/dpkg/default.mk 4 | 5 | export NO_PKG_MANGLE=1 6 | DESTDIR = $(CURDIR)/debian/tmp 7 | 8 | %: 9 | +dh $@ --parallel --with autotools-dev 10 | 11 | override_dh_auto_configure: 12 | ./configure --prefix=/usr/local/openresty/zlib 13 | 14 | override_dh_auto_build: 15 | $(MAKE) CFLAGS='-O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -g3' \ 16 | SFLAGS='-O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -g3' 17 | 18 | override_dh_usrlocal: 19 | 20 | override_dh_install: 21 | dh_install 22 | rm -rf $(DESTDIR)/usr/local/openresty/zlib/share 23 | rm -f $(DESTDIR)/usr/local/openresty/zlib/lib/*.la 24 | rm -rf $(DESTDIR)/usr/local/openresty/zlib/lib/pkgconfig 25 | 26 | override_dh_strip: 27 | dh_strip --dbg-package=openresty-zlib-dbgsym 28 | -------------------------------------------------------------------------------- /deb/openresty-zlib/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/openresty/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty-opm.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/bin/opm 2 | usr/local/openresty/site/manifest/ 3 | usr/local/openresty/site/pod/ 4 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty-opm.links: -------------------------------------------------------------------------------- 1 | /usr/local/openresty/bin/opm /usr/bin/opm 2 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty-resty.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/bin/resty 2 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty-resty.links: -------------------------------------------------------------------------------- 1 | /usr/local/openresty/bin/resty /usr/bin/resty 2 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty-restydoc.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/bin/restydoc 2 | usr/local/openresty/bin/restydoc-index 3 | usr/local/openresty/bin/md2pod.pl 4 | usr/local/openresty/bin/nginx-xml2pod 5 | usr/local/openresty/pod/* 6 | usr/local/openresty/resty.index 7 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty-restydoc.links: -------------------------------------------------------------------------------- 1 | /usr/local/openresty/bin/restydoc /usr/bin/restydoc 2 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty.conffiles: -------------------------------------------------------------------------------- 1 | /usr/local/openresty/nginx/conf/nginx.conf.default 2 | /usr/local/openresty/nginx/conf/scgi_params 3 | /usr/local/openresty/nginx/conf/fastcgi.conf 4 | /usr/local/openresty/nginx/conf/uwsgi_params.default 5 | /usr/local/openresty/nginx/conf/fastcgi.conf.default 6 | /usr/local/openresty/nginx/conf/win-utf 7 | /usr/local/openresty/nginx/conf/scgi_params.default 8 | /usr/local/openresty/nginx/conf/nginx.conf 9 | /usr/local/openresty/nginx/conf/mime.types.default 10 | /usr/local/openresty/nginx/conf/mime.types 11 | /usr/local/openresty/nginx/conf/uwsgi_params 12 | /usr/local/openresty/nginx/conf/fastcgi_params 13 | /usr/local/openresty/nginx/conf/koi-win 14 | /usr/local/openresty/nginx/conf/fastcgi_params.default 15 | /usr/local/openresty/nginx/conf/koi-utf 16 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty.install: -------------------------------------------------------------------------------- 1 | usr/local/openresty/bin/openresty 2 | usr/local/openresty/site/lualib 3 | usr/local/openresty/luajit/* 4 | usr/local/openresty/lualib/* 5 | usr/local/openresty/nginx/html/* 6 | usr/local/openresty/nginx/sbin/* 7 | usr/local/openresty/nginx/conf/* 8 | usr/local/openresty/nginx/logs 9 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty.links: -------------------------------------------------------------------------------- 1 | /usr/local/openresty/nginx/conf /etc/openresty 2 | /usr/local/openresty/nginx/sbin/nginx /usr/bin/openresty 3 | -------------------------------------------------------------------------------- /deb/openresty/debian/openresty.service: -------------------------------------------------------------------------------- 1 | # Stop dance for OpenResty 2 | # ========================= 3 | # 4 | # ExecStop sends SIGSTOP (graceful stop) to OpenResty's nginx process. 5 | # If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control 6 | # and sends SIGTERM (fast shutdown) to the main process. 7 | # After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends 8 | # SIGKILL to all the remaining processes in the process group (KillMode=mixed). 9 | # 10 | # nginx signals reference doc: 11 | # http://nginx.org/en/docs/control.html 12 | # 13 | [Unit] 14 | Description=The OpenResty Application Platform 15 | After=syslog.target network-online.target remote-fs.target nss-lookup.target 16 | Wants=network-online.target 17 | 18 | [Service] 19 | Type=forking 20 | PIDFile=/usr/local/openresty/nginx/logs/nginx.pid 21 | ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t -q -g 'daemon on; master_process on;' 22 | ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon on; master_process on;' 23 | ExecStartPost=/bin/sleep 1 24 | ExecReload=/usr/local/openresty/nginx/sbin/nginx -g 'daemon on; master_process on;' -s reload 25 | ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /usr/local/openresty/nginx/logs/nginx.pid 26 | RuntimeDirectory=openresty 27 | TimeoutStopSec=5 28 | KillMode=mixed 29 | 30 | [Install] 31 | WantedBy=multi-user.target 32 | -------------------------------------------------------------------------------- /deb/openresty/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | DPKG_EXPORT_BUILDFLAGS = 1 3 | include /usr/share/dpkg/default.mk 4 | 5 | export NO_PKG_MANGLE=1 6 | export QA_RPATHS=$[ 0x0002 ] 7 | export NJBS = `nproc` 8 | 9 | DESTDIR = $(CURDIR)/debian/tmp 10 | 11 | %: 12 | dh $@ --parallel --with autotools-dev,systemd 13 | 14 | override_dh_auto_configure: 15 | ./configure \ 16 | --with-cc-opt="-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include" \ 17 | --with-ld-opt="-L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre2/lib -L/usr/local/openresty/openssl3/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre2/lib:/usr/local/openresty/openssl3/lib" \ 18 | --with-pcre-jit \ 19 | --without-http_rds_json_module \ 20 | --without-http_rds_csv_module \ 21 | --without-lua_rds_parser \ 22 | --with-stream \ 23 | --with-stream_ssl_module \ 24 | --with-stream_ssl_preread_module \ 25 | --with-http_v2_module \ 26 | --with-http_v3_module \ 27 | --without-mail_pop3_module \ 28 | --without-mail_imap_module \ 29 | --without-mail_smtp_module \ 30 | --with-http_stub_status_module \ 31 | --with-http_realip_module \ 32 | --with-http_addition_module \ 33 | --with-http_auth_request_module \ 34 | --with-http_secure_link_module \ 35 | --with-http_random_index_module \ 36 | --with-http_gzip_static_module \ 37 | --with-http_sub_module \ 38 | --with-http_dav_module \ 39 | --with-http_flv_module \ 40 | --with-http_mp4_module \ 41 | --with-http_slice_module \ 42 | --with-http_gunzip_module \ 43 | --with-threads \ 44 | --with-compat \ 45 | --with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT' \ 46 | -j$(NJBS) 47 | 48 | override_dh_usrlocal: 49 | 50 | override_dh_auto_install: 51 | dh_auto_install 52 | rm -rf $(DESTDIR)/usr/local/openresty/luajit/share/man 53 | rm -rf $(DESTDIR)/usr/local/openresty/luajit/lib/libluajit-5.1.a 54 | mkdir -p $(DESTDIR)/usr/bin 55 | cd $(DESTDIR)/usr/bin 56 | cd $(CURDIR) 57 | 58 | override_dh_strip: 59 | dh_strip --dbg-package=openresty-dbgsym 60 | 61 | override_dh_installinit: 62 | dh_installinit --no-stop-on-upgrade || dh_installinit --no-restart-on-upgrade 63 | -------------------------------------------------------------------------------- /deb/openresty/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /deb/to-ppa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ -z "$1" ]]; then 4 | echo No package name specified. > /dev/stderr 5 | exit 1 6 | fi 7 | 8 | if [[ "$1" == *"plus"* ]]; then 9 | echo "Cannot upload $1 to PPA" > /dev/stderr 10 | exit 1 11 | fi 12 | 13 | if [[ "$1" == *"edge"* ]]; then 14 | echo "Cannot upload $1 to PPA" > /dev/stderr 15 | exit 1 16 | fi 17 | 18 | if [[ "$1" == *"ip-database"* ]]; then 19 | echo "Cannot upload $1 to PPA" > /dev/stderr 20 | exit 1 21 | fi 22 | 23 | for distro in disco cosmic bionic xenial trusty 24 | do 25 | make $1-build OPTS=-S DISTRO=$distro || exit 1 26 | done 27 | -------------------------------------------------------------------------------- /deb/update-makefile-clean-targets.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub cols ($); 8 | 9 | use List::Util qw/ uniq /; 10 | my @goals; 11 | while (<>) { 12 | s/\s*\\\s*$//; 13 | push @goals, grep { !/^\s*$/ } split /\s+/, $_; 14 | } 15 | 16 | my %all_goals; 17 | { 18 | my @all_goals = grep { !/^\s*$/ } map { s/.*?://; s/:$//; $_ } split /\n+/, `grep -E '^[-a-zA-Z0-9_]+-clean:' *.mk Makefile`; 19 | warn "all goals: ", scalar @all_goals; 20 | %all_goals = map { $_ => 1 } @all_goals; 21 | } 22 | 23 | warn "old: ", scalar @goals; 24 | @goals = uniq @goals; 25 | warn "new: ", scalar @goals; 26 | #print join " ", @goals; 27 | 28 | for my $goal (@goals) { 29 | if ($goal !~ /-clean$/) { 30 | die "bad target: $goal"; 31 | } 32 | my $val = delete %all_goals{$goal}; 33 | if (!$val) { 34 | die "clean target $goal not defined"; 35 | } 36 | } 37 | 38 | if (%all_goals) { 39 | for my $g (sort keys %all_goals) { 40 | if ($g !~ /-clean$/) { 41 | die "bad target: $g"; 42 | } 43 | push @goals, $g; 44 | } 45 | } 46 | 47 | my $line = "clean:"; 48 | while (@goals) { 49 | my $goal = shift @goals; 50 | my $new = "$line $goal"; 51 | if (cols($new) > 80) { 52 | unshift @goals, $goal; 53 | print $line, " \\\n"; 54 | $line = "\t\t"; 55 | } else { 56 | $line = $new; 57 | } 58 | } 59 | 60 | if ($line ne "\t\t") { 61 | print "$line\n"; 62 | } else { 63 | print "\n"; 64 | } 65 | 66 | sub cols ($) { 67 | my $s = shift; 68 | $s .= " \\\n"; 69 | $s =~ s/\t/ /g; 70 | length $s; 71 | } 72 | -------------------------------------------------------------------------------- /deb/update-or: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub update_changelog ($$); 8 | 9 | my $version = shift or die "No version number specified.\n"; 10 | 11 | if ($version !~ /^\d+(?:\.\d+){3}$/) { 12 | die "Bad version number: $version"; 13 | } 14 | 15 | { 16 | my $file = "Makefile"; 17 | open my $in, $file 18 | or die "Cannot open $file for reading: $!\n"; 19 | my $new; 20 | my $changed; 21 | while (<$in>) { 22 | if (s/^ OR_VER = ( \d+ (?: \.\d+ ){3} ) $/OR_VER=$version/msx) { 23 | my $old_ver = $1; 24 | if ($old_ver ne $version) { 25 | $changed = 1; 26 | say "INFO: $file: version needs update from $old_ver to $version"; 27 | 28 | } else { 29 | say "INFO: $file is already up to date: $old_ver"; 30 | last; 31 | } 32 | } 33 | 34 | } continue { 35 | $new .= $_; 36 | } 37 | close $in; 38 | 39 | if ($changed) { 40 | open my $out, ">$file" 41 | or die "Cannot open $file for writing: $!\n"; 42 | print $out $new; 43 | close $out; 44 | say "$file updated."; 45 | } 46 | } 47 | 48 | for my $dir (reverse sort glob 'openresty*') { 49 | next unless -d $dir && -d "$dir/debian"; 50 | if ($dir =~ /^openresty(?:-(?:valgrind|asan|debug))?$/) { 51 | my $name = $dir; 52 | my $changelog = "$dir/debian/changelog.tt2"; 53 | if (!-f $changelog) { 54 | warn "Cannot find $changelog file\n"; 55 | next; 56 | } 57 | #say $dir; 58 | update_changelog $name, $changelog; 59 | } 60 | } 61 | 62 | sub update_changelog ($$) { 63 | my ($name, $file) = @_; 64 | 65 | #warn "name: $name, file: $file"; 66 | 67 | open my $in, $file 68 | or die "Cannot open $file for reading: $!\n"; 69 | my $src = do { local $/; <$in>; }; 70 | close $in; 71 | 72 | if ($src !~ m/^ \Q$name\E \s+ \( \d+ /xsm) { 73 | die "Bad file content in $file"; 74 | } 75 | 76 | if ($src =~ /^ \Q$name\E \s+ \( ( \d+ (?: \.\d+ ){3} ) - \d+ ~ /xsm) { 77 | my $old_ver = $1; 78 | if ($old_ver ne $version) { 79 | say "INFO: $file: version needs update from $old_ver to $version"; 80 | 81 | } else { 82 | say "INFO: $file is already up to date: $old_ver"; 83 | return; 84 | } 85 | 86 | } else { 87 | die "$file: version not found"; 88 | } 89 | 90 | my $now = `date +'%a, %e %b %Y %H:%M:%S %z'`; 91 | chomp $now; 92 | $now =~ s/\s\s+/ /g; 93 | #warn "today: $today"; 94 | 95 | my $new = <<_EOC_; 96 | $name ($version-1~[% distro %]1) [% distro %]; urgency=high 97 | 98 | * upgraded OpenResty to $version. 99 | 100 | -- OpenResty Admin $now 101 | 102 | _EOC_ 103 | 104 | $src = $new . $src; 105 | 106 | open my $out, ">$file" 107 | or die "Cannot open $file for writing: $!\n"; 108 | print $out $src; 109 | close $out; 110 | say "$file updated."; 111 | } 112 | -------------------------------------------------------------------------------- /deb/update-pcre2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub update_changelog ($$); 8 | 9 | my $version = shift or die "No version number specified.\n"; 10 | 11 | for my $file (reverse sort glob 'openresty-pcre2*.mk') { 12 | next unless -f $file; 13 | open my $in, $file 14 | or die "Cannot open $file for reading: $!\n"; 15 | my $new; 16 | my $changed; 17 | while (<$in>) { 18 | if (s/^OPENRESTY_SAAS_PCRE2_VER\s*=\s*( \d+ \.\d+ ) $/OPENRESTY_SAAS_PCRE2_VER = $version/msx) { 19 | my $old_ver = $1; 20 | if ($old_ver ne $version) { 21 | $changed = 1; 22 | say "INFO: $file: version needs update from $old_ver to $version"; 23 | 24 | } else { 25 | say "INFO: $file is already up to date: $old_ver"; 26 | last; 27 | } 28 | } 29 | 30 | } continue { 31 | $new .= $_; 32 | } 33 | close $in; 34 | 35 | if ($changed) { 36 | open my $out, ">$file" 37 | or die "Cannot open $file for writing: $!\n"; 38 | print $out $new; 39 | close $out; 40 | say "$file updated."; 41 | } 42 | } 43 | 44 | for my $dir (reverse sort glob 'openresty-pcre2*') { 45 | next unless -d $dir && -d "$dir/debian"; 46 | my $name = $dir; 47 | my $changelog = "$dir/debian/changelog.tt2"; 48 | if (!-f $changelog) { 49 | warn "Cannot find $changelog file\n"; 50 | next; 51 | } 52 | #say $dir; 53 | update_changelog $name, $changelog; 54 | } 55 | 56 | sub update_changelog ($$) { 57 | my ($name, $file) = @_; 58 | 59 | #warn "name: $name, file: $file"; 60 | 61 | open my $in, $file 62 | or die "Cannot open $file for reading: $!\n"; 63 | my $src = do { local $/; <$in>; }; 64 | close $in; 65 | 66 | if ($src !~ m/^ \Q$name\E \s+ \( \d+ /xsm) { 67 | die "Bad file content in $file"; 68 | } 69 | 70 | if ($src =~ /^ \Q$name\E \s+ \( ( \d+ (?: \.\d+ ){1} ) - \d+ ~ /xsm) { 71 | my $old_ver = $1; 72 | if ($old_ver ne $version) { 73 | say "INFO: $file: version needs update from $old_ver to $version"; 74 | 75 | } else { 76 | say "INFO: $file is already up to date: $old_ver"; 77 | return; 78 | } 79 | 80 | } else { 81 | die "$file: version not found"; 82 | } 83 | 84 | my $now = `date +'%a, %e %b %Y %H:%M:%S %z'`; 85 | chomp $now; 86 | $now =~ s/\s\s+/ /g; 87 | #warn "today: $today"; 88 | 89 | my $new = <<_EOC_; 90 | $name ($version-1~[% distro %]1) [% distro %]; urgency=high 91 | 92 | * upgraded OpenResty to $version. 93 | 94 | -- OpenResty Admin $now 95 | 96 | _EOC_ 97 | 98 | $src = $new . $src; 99 | 100 | open my $out, ">$file" 101 | or die "Cannot open $file for writing: $!\n"; 102 | print $out $src; 103 | close $out; 104 | say "$file updated."; 105 | } 106 | -------------------------------------------------------------------------------- /deb/update-ssl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub update_changelog ($$); 8 | 9 | my $version = shift or die "No version number specified.\n"; 10 | 11 | { 12 | my $file = "Makefile"; 13 | open my $in, $file 14 | or die "Cannot open $file for reading: $!\n"; 15 | my $new; 16 | my $changed; 17 | while (<$in>) { 18 | if (s/^ SSL111_VER = ( \d+ (?: \.\d+ ){2} [a-z] ) $/SSL111_VER=$version/msx) { 19 | my $old_ver = $1; 20 | if ($old_ver ne $version) { 21 | $changed = 1; 22 | say "INFO: $file: version needs update from $old_ver to $version"; 23 | 24 | } else { 25 | say "INFO: $file is already up to date: $old_ver"; 26 | last; 27 | } 28 | } 29 | 30 | } continue { 31 | $new .= $_; 32 | } 33 | close $in; 34 | 35 | if ($changed) { 36 | open my $out, ">$file" 37 | or die "Cannot open $file for writing: $!\n"; 38 | print $out $new; 39 | close $out; 40 | say "$file updated."; 41 | } 42 | } 43 | 44 | for my $dir (reverse sort glob 'openresty-openssl111*') { 45 | next unless -d $dir && -d "$dir/debian"; 46 | my $name = $dir; 47 | my $changelog = "$dir/debian/changelog.tt2"; 48 | if (!-f $changelog) { 49 | warn "Cannot find $changelog file\n"; 50 | next; 51 | } 52 | #say $dir; 53 | update_changelog $name, $changelog; 54 | } 55 | 56 | sub update_changelog ($$) { 57 | my ($name, $file) = @_; 58 | 59 | #warn "name: $name, file: $file"; 60 | 61 | open my $in, $file 62 | or die "Cannot open $file for reading: $!\n"; 63 | my $src = do { local $/; <$in>; }; 64 | close $in; 65 | 66 | if ($src !~ m/^ \Q$name\E \s+ \( \d+ /xsm) { 67 | die "Bad file content in $file"; 68 | } 69 | 70 | if ($src =~ /^ \Q$name\E \s+ \( ( \d+ (?: \.\d+ ){2} [a-z] ) - \d+ ~ /xsm) { 71 | my $old_ver = $1; 72 | if ($old_ver ne $version) { 73 | say "INFO: $file: version needs update from $old_ver to $version"; 74 | 75 | } else { 76 | say "INFO: $file is already up to date: $old_ver"; 77 | return; 78 | } 79 | 80 | } else { 81 | die "$file: version not found"; 82 | } 83 | 84 | my $now = `date +'%a, %e %b %Y %H:%M:%S %z'`; 85 | chomp $now; 86 | $now =~ s/\s\s+/ /g; 87 | #warn "today: $today"; 88 | 89 | my $new = <<_EOC_; 90 | $name ($version-1~[% distro %]1) [% distro %]; urgency=high 91 | 92 | * upgraded OpenResty to $version. 93 | 94 | -- OpenResty Admin $now 95 | 96 | _EOC_ 97 | 98 | $src = $new . $src; 99 | 100 | open my $out, ">$file" 101 | or die "Cannot open $file for writing: $!\n"; 102 | print $out $src; 103 | close $out; 104 | say "$file updated."; 105 | } 106 | -------------------------------------------------------------------------------- /deb/update-ssl3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub update_changelog ($$); 8 | 9 | my $version = shift or die "No version number specified.\n"; 10 | 11 | { 12 | my $file = "Makefile"; 13 | open my $in, $file 14 | or die "Cannot open $file for reading: $!\n"; 15 | my $new; 16 | my $changed; 17 | while (<$in>) { 18 | if (s/^ SSL3_VER = ( \d+ (?: \.\d+ ){2} ) $/SSL3_VER=$version/msx) { 19 | my $old_ver = $1; 20 | if ($old_ver ne $version) { 21 | $changed = 1; 22 | say "INFO: $file: version needs update from $old_ver to $version"; 23 | 24 | } else { 25 | say "INFO: $file is already up to date: $old_ver"; 26 | last; 27 | } 28 | } 29 | 30 | } continue { 31 | $new .= $_; 32 | } 33 | close $in; 34 | 35 | if ($changed) { 36 | open my $out, ">$file" 37 | or die "Cannot open $file for writing: $!\n"; 38 | print $out $new; 39 | close $out; 40 | say "$file updated."; 41 | } 42 | } 43 | 44 | for my $dir (reverse sort glob 'openresty-openssl3*') { 45 | next unless -d $dir && -d "$dir/debian"; 46 | my $name = $dir; 47 | my $changelog = "$dir/debian/changelog.tt2"; 48 | if (!-f $changelog) { 49 | warn "Cannot find $changelog file\n"; 50 | next; 51 | } 52 | #say $dir; 53 | update_changelog $name, $changelog; 54 | } 55 | 56 | sub update_changelog ($$) { 57 | my ($name, $file) = @_; 58 | 59 | #warn "name: $name, file: $file"; 60 | 61 | open my $in, $file 62 | or die "Cannot open $file for reading: $!\n"; 63 | my $src = do { local $/; <$in>; }; 64 | close $in; 65 | 66 | if ($src !~ m/^ \Q$name\E \s+ \( \d+ /xsm) { 67 | die "Bad file content in $file"; 68 | } 69 | 70 | if ($src =~ /^ \Q$name\E \s+ \( ( \d+ (?: \.\d+ ){2}) - \d+ ~ /xsm) { 71 | my $old_ver = $1; 72 | if ($old_ver ne $version) { 73 | say "INFO: $file: version needs update from $old_ver to $version"; 74 | 75 | } else { 76 | say "INFO: $file is already up to date: $old_ver"; 77 | return; 78 | } 79 | 80 | } else { 81 | die "$file: version not found"; 82 | } 83 | 84 | my $now = `date +'%a, %e %b %Y %H:%M:%S %z'`; 85 | chomp $now; 86 | $now =~ s/\s\s+/ /g; 87 | #warn "today: $today"; 88 | 89 | my $new = <<_EOC_; 90 | $name ($version-1~[% distro %]1) [% distro %]; urgency=high 91 | 92 | * upgraded OpenResty to $version. 93 | 94 | -- OpenResty Admin $now 95 | 96 | _EOC_ 97 | 98 | $src = $new . $src; 99 | 100 | open my $out, ">$file" 101 | or die "Cannot open $file for writing: $!\n"; 102 | print $out $src; 103 | close $out; 104 | say "$file updated."; 105 | } 106 | -------------------------------------------------------------------------------- /deb/update-zlib: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub update_changelog ($$); 8 | 9 | my $version = shift or die "No version number specified.\n"; 10 | 11 | { 12 | my $file = "Makefile"; 13 | open my $in, $file 14 | or die "Cannot open $file for reading: $!\n"; 15 | my $new; 16 | my $changed; 17 | while (<$in>) { 18 | if (s/^ ZLIB_VER = ( \d+ (?: \.\d+ ){1,2} ) $/ZLIB_VER=$version/msx) { 19 | my $old_ver = $1; 20 | if ($old_ver ne $version) { 21 | $changed = 1; 22 | say "INFO: $file: version needs update from $old_ver to $version"; 23 | 24 | } else { 25 | say "INFO: $file is already up to date: $old_ver"; 26 | last; 27 | } 28 | } 29 | 30 | } continue { 31 | $new .= $_; 32 | } 33 | close $in; 34 | 35 | if ($changed) { 36 | open my $out, ">$file" 37 | or die "Cannot open $file for writing: $!\n"; 38 | print $out $new; 39 | close $out; 40 | say "$file updated."; 41 | } 42 | } 43 | 44 | for my $dir (reverse sort glob 'openresty-zlib*') { 45 | next unless -d $dir && -d "$dir/debian"; 46 | my $name = $dir; 47 | my $changelog = "$dir/debian/changelog.tt2"; 48 | if (!-f $changelog) { 49 | warn "Cannot find $changelog file\n"; 50 | next; 51 | } 52 | #say $dir; 53 | update_changelog $name, $changelog; 54 | } 55 | 56 | sub update_changelog ($$) { 57 | my ($name, $file) = @_; 58 | 59 | #warn "name: $name, file: $file"; 60 | 61 | open my $in, $file 62 | or die "Cannot open $file for reading: $!\n"; 63 | my $src = do { local $/; <$in>; }; 64 | close $in; 65 | 66 | if ($src !~ m/^ \Q$name\E \s+ \( \d+ /xsm) { 67 | die "Bad file content in $file"; 68 | } 69 | 70 | if ($src =~ /^ \Q$name\E \s+ \( ( \d+ (?: \.\d+ ){1,2} ) - \d+ ~ /xsm) { 71 | my $old_ver = $1; 72 | if ($old_ver ne $version) { 73 | say "INFO: $file: version needs update from $old_ver to $version"; 74 | 75 | } else { 76 | say "INFO: $file is already up to date: $old_ver"; 77 | return; 78 | } 79 | 80 | } else { 81 | die "$file: version not found"; 82 | } 83 | 84 | my $now = `date +'%a, %e %b %Y %H:%M:%S %z'`; 85 | chomp $now; 86 | $now =~ s/\s\s+/ /g; 87 | #warn "today: $today"; 88 | 89 | my $new = <<_EOC_; 90 | $name ($version-1~[% distro %]1) [% distro %]; urgency=high 91 | 92 | * upgraded zlib to $version. 93 | 94 | -- OpenResty Admin $now 95 | 96 | _EOC_ 97 | 98 | $src = $new . $src; 99 | 100 | open my $out, ">$file" 101 | or die "Cannot open $file for writing: $!\n"; 102 | print $out $src; 103 | close $out; 104 | say "$file updated."; 105 | } 106 | -------------------------------------------------------------------------------- /rpm/SOURCES/Test-Nginx-0.25-older_perl.patch: -------------------------------------------------------------------------------- 1 | --- Test-Nginx-0.25/Makefile.PL 2015-06-17 00:43:55.000000000 -0700 2 | +++ Test-Nginx-0.25-patched/Makefile.PL 2016-07-12 18:50:58.032916460 -0700 3 | @@ -21,7 +21,6 @@ requires ('URI::Escape'); 4 | requires ('IO::Select'); 5 | requires ('File::Path'); 6 | requires ('File::Temp'); 7 | -requires ('File::Path' => '2.06_05'); 8 | requires ('List::MoreUtils'); 9 | requires ('List::Util'); 10 | requires ('Encode'); 11 | -------------------------------------------------------------------------------- /rpm/SOURCES/nginx-1.13.6-rm_glibc_crypt_r_workaround.patch: -------------------------------------------------------------------------------- 1 | commit 1ef5c9ce6f03907dad1677d25f108d2bf59a5c15 2 | Author: Maxim Dounin 3 | Date: Wed May 23 16:38:16 2018 +0300 4 | 5 | Removed glibc crypt_r() bug workaround (ticket #1469). 6 | 7 | The bug in question was fixed in glibc 2.3.2 and is no longer expected 8 | to manifest itself on real servers. On the other hand, the workaround 9 | causes compilation problems on various systems. Previously, we've 10 | already fixed the code to compile with musl libc (fd6fd02f6a4d), and 11 | now it is broken on Fedora 28 where glibc's crypt library was replaced 12 | by libxcrypt. So the workaround was removed. 13 | 14 | diff --git a/bundle/nginx-1.13.6/src/os/unix/ngx_user.c b/bundle/nginx-1.13.6/src/os/unix/ngx_user.c 15 | index 7ebe2b57..b3d81d07 100644 16 | --- a/bundle/nginx-1.13.6/src/os/unix/ngx_user.c 17 | +++ b/bundle/nginx-1.13.6/src/os/unix/ngx_user.c 18 | @@ -21,10 +21,6 @@ ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) 19 | struct crypt_data cd; 20 | 21 | cd.initialized = 0; 22 | -#ifdef __GLIBC__ 23 | - /* work around the glibc bug */ 24 | - cd.current_salt[0] = ~salt[0]; 25 | -#endif 26 | 27 | value = crypt_r((char *) key, (char *) salt, &cd); 28 | 29 | -------------------------------------------------------------------------------- /rpm/SOURCES/openresty.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # openresty - this script starts and stops the nginx daemon of OpenResty 4 | # 5 | # chkconfig: 345 85 15 6 | # description: OpenResty is a scalable web platform by extending 7 | # NGINX with Lua 8 | # processname: openresty 9 | # config: /usr/local/openresty/nginx/conf/nginx.conf 10 | # config: /etc/sysconfig/openresty 11 | # pidfile: /usr/local/openresty/nginx/logs/nginx.pid 12 | 13 | # Source function library. 14 | . /etc/rc.d/init.d/functions 15 | 16 | # Source networking configuration. 17 | . /etc/sysconfig/network 18 | 19 | # Check that networking is up. 20 | [ "$NETWORKING" = "no" ] && exit 0 21 | 22 | nginx="/usr/local/openresty/nginx/sbin/nginx" 23 | prog=$(basename $nginx) 24 | pidfile=/usr/local/openresty/nginx/logs/nginx.pid 25 | 26 | NGINX_CONF_FILE="/usr/local/openresty/nginx/conf/nginx.conf" 27 | 28 | [ -f /etc/sysconfig/openresty ] && . /etc/sysconfig/openresty 29 | 30 | lockfile=/var/lock/subsys/openresty 31 | 32 | start() { 33 | [ -x $nginx ] || exit 5 34 | [ -f $NGINX_CONF_FILE ] || exit 6 35 | echo -n $"Starting $prog: " 36 | daemon $nginx -c $NGINX_CONF_FILE 37 | retval=$? 38 | echo 39 | [ $retval -eq 0 ] && touch $lockfile 40 | return $retval 41 | } 42 | 43 | stop() { 44 | echo -n $"Stopping $prog: " 45 | killproc $prog -QUIT 46 | retval=$? 47 | echo 48 | [ $retval -eq 0 ] && rm -f $lockfile 49 | return $retval 50 | } 51 | 52 | restart() { 53 | configtest || return $? 54 | stop 55 | sleep 1 56 | start 57 | } 58 | 59 | reload() { 60 | configtest || return $? 61 | echo -n $"Reloading $prog: " 62 | killproc $nginx -HUP 63 | RETVAL=$? 64 | echo 65 | } 66 | 67 | force_reload() { 68 | restart 69 | } 70 | 71 | configtest() { 72 | $nginx -q -t -c $NGINX_CONF_FILE 73 | } 74 | 75 | rh_status() { 76 | status $nginx 77 | } 78 | 79 | rh_status_q() { 80 | rh_status >/dev/null 2>&1 81 | } 82 | 83 | case "$1" in 84 | start) 85 | rh_status_q && exit 0 86 | $1 87 | ;; 88 | stop) 89 | rh_status_q || exit 0 90 | $1 91 | ;; 92 | restart|configtest) 93 | $1 94 | ;; 95 | reload) 96 | rh_status_q || exit 7 97 | $1 98 | ;; 99 | force-reload) 100 | force_reload 101 | ;; 102 | status) 103 | rh_status 104 | ;; 105 | condrestart|try-restart) 106 | rh_status_q || exit 0 107 | ;; 108 | *) 109 | echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}" 110 | exit 2 111 | esac 112 | -------------------------------------------------------------------------------- /rpm/SOURCES/openresty.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=The OpenResty Application Platform 3 | After=syslog.target network-online.target remote-fs.target nss-lookup.target 4 | Wants=network-online.target 5 | 6 | [Service] 7 | Type=forking 8 | PIDFile=/usr/local/openresty/nginx/logs/nginx.pid 9 | ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t 10 | ExecStart=/usr/local/openresty/nginx/sbin/nginx 11 | ExecStartPost=/bin/sleep 1 12 | ExecReload=/bin/kill -s HUP $MAINPID 13 | ExecStop=/bin/kill -s QUIT $MAINPID 14 | RuntimeDirectory=openresty 15 | PrivateTmp=true 16 | 17 | [Install] 18 | WantedBy=multi-user.target 19 | -------------------------------------------------------------------------------- /rpm/SOURCES/pcre2-range-minus.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c 2 | index 8e6787ab..4920701e 100644 3 | --- a/src/pcre2_compile.c 4 | +++ b/src/pcre2_compile.c 5 | @@ -3880,6 +3880,7 @@ while (ptr < ptrend) 6 | goto FAILED; 7 | } 8 | 9 | +#if 0 10 | /* Perl gives a warning unless a following hyphen is the last character 11 | in the class. PCRE throws an error. */ 12 | 13 | @@ -3889,6 +3890,7 @@ while (ptr < ptrend) 14 | errorcode = ERR50; 15 | goto FAILED; 16 | } 17 | +#endif 18 | } 19 | 20 | /* Proceed to next thing in the class. */ 21 | -------------------------------------------------------------------------------- /rpm/SPECS/Makefile: -------------------------------------------------------------------------------- 1 | rpmbuild_dir := $(shell ls -d $$HOME/rpmbuild) 2 | 3 | targets = \ 4 | openresty-zlib \ 5 | openresty-zlib-asan \ 6 | openresty-pcre \ 7 | openresty-pcre2 \ 8 | openresty-pcre-asan \ 9 | openresty-pcre2-asan \ 10 | openresty-openssl111 \ 11 | openresty-openssl111-debug \ 12 | openresty-openssl111-asan \ 13 | openresty-openssl3 \ 14 | openresty-openssl3-asan \ 15 | openresty-openssl3-debug \ 16 | openresty-openssl \ 17 | openresty-openssl-debug \ 18 | openresty-openssl-asan \ 19 | openresty \ 20 | openresty-debug \ 21 | openresty-valgrind \ 22 | openresty-asan \ 23 | perl-Test-Nginx \ 24 | perl-Lemplate \ 25 | perl-Test-LongString \ 26 | perl-Test-Base \ 27 | perl-Spiffy \ 28 | perl-Test-Deep \ 29 | perl-IPC-Run \ 30 | perl-IO-Tty \ 31 | perl-Readonly \ 32 | perl-Test-Simple 33 | 34 | .PHONY: all 35 | all: openresty 36 | 37 | .PHONY: $(targets) 38 | $(targets): 39 | #echo $(rpmbuild_dir) 40 | rm -f ~/rpmbuild/SRPMS/$@-[0-9]*.rpm ~/rpmbuild/RPMS/*/$@*-[0-9].rpm 41 | spectool -g -R $@.spec 42 | sudo dnf builddep -y $@.spec 43 | PATH=/usr/bin:$$PATH time rpmbuild -v -ba $@.spec 44 | #time rpmbuild -bi --short-circuit $@.spec 45 | #-cp -v ~/rpmbuild/SRPMS/$@*.src.rpm ~/rpmbuild/RPMS/*/$@*.rpm /tmp/ 46 | ls -lh $(rpmbuild_dir)/SRPMS/$@-[0-9]*.src.rpm 47 | ls -lh $(rpmbuild_dir)/RPMS/*/$@-[0-9]*.rpm 48 | for f in $(rpmbuild_dir)/RPMS/*/$@-*[0-9]*.rpm $(rpmbuild_dir)/SRPMS/$@-[0-9]*.src.rpm; do rpmsign -v --addsign $$f || exit 1; done 49 | ls $(rpmbuild_dir)/SRPMS/$@-[0-9]*.src.rpm > file.txt 50 | rsync --progress -av `cat file.txt` openresty.org:/home/agentz/www/misc/nginx/ 51 | rsync --progress -av `cat file.txt` ~/packaging/SRPMS/ 52 | cd ~/rpmbuild/RPMS && ./sync-repo 53 | cd ~/pkg/oss && ./build-repo 54 | #cd ~/pkg/oss && ./upload 55 | echo https://openresty.org/download/`basename $(rpmbuild_dir)/SRPMS/$@-[0-9]*.src.rpm` 56 | curl -I https://openresty.org/download/`basename $(rpmbuild_dir)/SRPMS/$@-[0-9]*.src.rpm` 57 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-IO-Tty.spec: -------------------------------------------------------------------------------- 1 | Name: perl-IO-Tty 2 | Version: 1.14 3 | Release: 2%{?dist} 4 | Summary: Low-level allocate a pseudo-Tty, import constants 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/IO-Tty/ 8 | Source0: http://www.cpan.org/authors/id/T/TO/TODDR/IO-Tty-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildRequires: perl(ExtUtils::MakeMaker) 11 | BuildRequires: perl(Test::More) 12 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 13 | AutoReqProv: no 14 | 15 | %description 16 | IO::Tty is used internally by IO::Pty to create a pseudo-tty. You wouldn't 17 | want to use it directly except to import constants, use IO::Pty. For a list 18 | of importable constants, see IO::Tty::Constant. 19 | 20 | %prep 21 | %setup -q -n IO-Tty-%{version} 22 | 23 | %build 24 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" 25 | make %{?_smp_mflags} 26 | 27 | %install 28 | rm -rf $RPM_BUILD_ROOT 29 | 30 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 31 | 32 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 33 | find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; 34 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 35 | 36 | %{_fixperms} $RPM_BUILD_ROOT/* 37 | 38 | %check 39 | make test 40 | 41 | %clean 42 | rm -rf $RPM_BUILD_ROOT 43 | 44 | %files 45 | %defattr(-,root,root,-) 46 | %doc ChangeLog META.json README.md try 47 | %{perl_vendorarch}/auto/* 48 | %{perl_vendorarch}/IO* 49 | %{_mandir}/man3/* 50 | 51 | %changelog 52 | * Tue Jul 07 2020 Yichun Zhang (agentzh) 1.14-1 53 | - Specfile autogenerated by cpanspec 1.78. 54 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-IPC-Run.spec: -------------------------------------------------------------------------------- 1 | Name: perl-IPC-Run 2 | Version: 20200505.0 3 | Release: 2%{?dist} 4 | Summary: System() and background procs w/ piping, redirs, ptys (Unix, Win32) 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/IPC-Run/ 8 | Source0: http://www.cpan.org/authors/id/T/TO/TODDR/IPC-Run-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl(ExtUtils::MakeMaker) 12 | BuildRequires: perl(IO::Pty) >= 1.08 13 | BuildRequires: perl(Readonly) 14 | BuildRequires: perl(Readonly::Array) 15 | BuildRequires: perl(Test::More) >= 0.47 16 | Requires: perl(IO::Pty) >= 1.08 17 | Requires: perl(Readonly) 18 | Requires: perl(Test::More) >= 0.47 19 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 20 | AutoReqProv: no 21 | 22 | %description 23 | IPC::Run allows you to run and interact with child processes using files, 24 | pipes, and pseudo-ttys. Both system()-style and scripted usages are 25 | supported and may be mixed. Likewise, functional and OO API styles are both 26 | supported and may be mixed. 27 | 28 | %prep 29 | %setup -q -n IPC-Run-%{version} 30 | 31 | %build 32 | %{__perl} Makefile.PL INSTALLDIRS=vendor 33 | make %{?_smp_mflags} 34 | 35 | %install 36 | rm -rf $RPM_BUILD_ROOT 37 | 38 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 39 | 40 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 41 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 42 | 43 | %{_fixperms} $RPM_BUILD_ROOT/* 44 | 45 | %check 46 | make test 47 | 48 | %clean 49 | rm -rf $RPM_BUILD_ROOT 50 | 51 | %files 52 | %defattr(-,root,root,-) 53 | %doc Changelog LICENSE META.json README.md 54 | %{perl_vendorlib}/* 55 | %{_mandir}/man3/* 56 | 57 | %changelog 58 | * Tue Jul 07 2020 Yichun Zhang (agentzh) 20200505.0-1 59 | - Specfile autogenerated by cpanspec 1.78. 60 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Lemplate.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Lemplate 2 | Version: 0.15 3 | Release: 4%{?dist} 4 | Summary: Lemplate Perl module 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Lemplate/ 8 | Source0: http://www.cpan.org/authors/id/A/AG/AGENT/Lemplate-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl >= 5.8.1 12 | BuildRequires: perl(ExtUtils::MakeMaker) 13 | #BuildRequires: perl(File::Find::Rule) 14 | BuildRequires: perl(Template) 15 | BuildRequires: perl(Test::More) 16 | BuildRequires: perl(IPC::Run3) 17 | BuildRequires: perl(Filter::Util::Call) 18 | BuildRequires: perl(CPAN) 19 | BuildRequires: perl(File::Find::Rule) 20 | BuildRequires: perl(Text::Glob) 21 | BuildRequires: perl(Number::Compare) 22 | Requires: perl(Template) 23 | AutoReqProv: no 24 | 25 | Provides: perl(Lemplate) 26 | 27 | %description 28 | Lemplate parses TT2 templates using the TT2 Perl framework, but with a 29 | twist. Instead of compiling the templates into Perl code, it compiles them 30 | into Lua that can run on OpenResty. 31 | 32 | %prep 33 | %setup -q -n Lemplate-%{version} 34 | 35 | %build 36 | %{__perl} Makefile.PL INSTALLDIRS=vendor 37 | make %{?_smp_mflags} 38 | 39 | %install 40 | rm -rf $RPM_BUILD_ROOT 41 | 42 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 43 | 44 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 45 | find $RPM_BUILD_ROOT%{_mandir} -type f -exec rm -f {} \; 46 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 47 | 48 | %{_fixperms} $RPM_BUILD_ROOT/* 49 | 50 | %check 51 | make test 52 | 53 | %clean 54 | rm -rf $RPM_BUILD_ROOT 55 | 56 | %files 57 | %defattr(-,root,root,-) 58 | %doc Changes Install README.md 59 | %{perl_vendorlib}/* 60 | /usr/bin/lemplate 61 | 62 | %changelog 63 | * Mon Jan 8 2024 Jiahao Wang 0.15-4 64 | - remove _mandir from files. 65 | * Thu Jun 15 2017 Yichun Zhang (agentzh) 0.15-1 66 | - upgraded to CPAN release 0.15. 67 | * Tue Jun 6 2017 Yichun Zhang (agentzh) 0.14-1 68 | - upgraded to CPAN release 0.14. 69 | * Tue May 9 2017 Yichun Zhang (agentzh) 0.12-1 70 | - upgraded to CPAN release 0.12. 71 | * Tue May 9 2017 Yichun Zhang (agentzh) 0.11-3 72 | - missing the a few more perl packages. 73 | * Tue May 9 2017 Yichun Zhang (agentzh) 0.11-2 74 | - missing the CPAN dependency. 75 | * Tue May 9 2017 Yichun Zhang (agentzh) 0.11-1 76 | - upgraded to CPAN release 0.11. 77 | * Thu Oct 13 2016 Yichun Zhang (agentzh) 0.07-5 78 | - No longer require a particular perl version. 79 | * Fri Jul 15 2016 Yichun Zhang (agentzh) 0.04-1 80 | - Specfile autogenerated by cpanspec 1.78. 81 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Readonly.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Readonly 2 | Version: 2.05 3 | Release: 1%{?dist} 4 | Summary: Readonly Perl module 5 | License: Artistic 2.0 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Readonly/ 8 | Source0: http://www.cpan.org/authors/id/S/SA/SANKO/Readonly-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl >= 0:5.005 12 | BuildRequires: perl(Module::Build::Tiny) 13 | BuildRequires: perl(Test::More) 14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 15 | 16 | %description 17 | # Deep Read-only scalar 18 | Readonly::Scalar $sca => $initial_value; Readonly::Scalar my $sca => 19 | $initial_value; 20 | 21 | %prep 22 | %setup -q -n Readonly-%{version} 23 | 24 | %build 25 | %{__perl} Build.PL --installdirs=vendor 26 | ./Build 27 | 28 | %install 29 | rm -rf $RPM_BUILD_ROOT 30 | 31 | ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 32 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 33 | 34 | %{_fixperms} $RPM_BUILD_ROOT/* 35 | 36 | %check 37 | ./Build test 38 | 39 | %clean 40 | rm -rf $RPM_BUILD_ROOT 41 | 42 | %files 43 | %defattr(-,root,root,-) 44 | %doc Changes cpanfile LICENSE META.json minil.toml README.md 45 | %{perl_vendorlib}/* 46 | %{_mandir}/man3/* 47 | 48 | %changelog 49 | * Tue Jul 07 2020 Yichun Zhang (agentzh) 2.05-1 50 | - Specfile autogenerated by cpanspec 1.78. 51 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Spiffy.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Spiffy 2 | Version: 0.46 3 | Release: 4%{?dist} 4 | Summary: Spiffy Perl Interface Framework For You 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Spiffy/ 8 | Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl >= 1:v5.8.1 12 | BuildRequires: perl(Test::More) 13 | BuildRequires: perl(Filter::Util::Call) 14 | BuildRequires: perl(ExtUtils::MakeMaker) 15 | Requires: perl(Filter::Util::Call) 16 | Provides: perl(Spiffy) 17 | AutoReqProv: no 18 | 19 | %description 20 | "Spiffy" is a framework and methodology for doing object oriented (OO) 21 | programming in Perl. Spiffy combines the best parts of Exporter.pm, 22 | base.pm, mixin.pm and SUPER.pm into one magic foundation class. It attempts 23 | to fix all the nits and warts of traditional Perl OO, in a clean, 24 | straightforward and (perhaps someday) standard way. 25 | 26 | %prep 27 | %setup -q -n Spiffy-%{version} 28 | 29 | %build 30 | %{__perl} Makefile.PL INSTALLDIRS=vendor 31 | make %{?_smp_mflags} 32 | 33 | %install 34 | rm -rf $RPM_BUILD_ROOT 35 | 36 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 37 | 38 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 39 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 40 | 41 | %{_fixperms} $RPM_BUILD_ROOT/* 42 | 43 | %check 44 | make test 45 | 46 | %clean 47 | rm -rf $RPM_BUILD_ROOT 48 | 49 | %files 50 | %defattr(-,root,root,-) 51 | %doc Changes CONTRIBUTING LICENSE META.json README 52 | %{perl_vendorlib}/* 53 | %{_mandir}/man3/* 54 | 55 | %changelog 56 | * Mon May 22 2017 Yichun Zhang (agentzh) 0.46-3 57 | - added missing dependency, Filter::Util::Call. 58 | * Mon May 22 2017 Yichun Zhang (agentzh) 0.46-2 59 | - added missing build dependency, Test::More. 60 | * Sun May 21 2017 Yichun Zhang (agentzh) 0.46-1 61 | - Specfile autogenerated by cpanspec 1.78. 62 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Test-Base.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Test-Base 2 | Version: 0.89 3 | Release: 1%{?dist} 4 | Summary: Data Driven Testing Framework 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Test-Base/ 8 | Source0: http://www.cpan.org/authors/id/I/IN/INGY/Test-Base-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl >= 1:v5.8.1 12 | BuildRequires: perl(Algorithm::Diff) 13 | BuildRequires: perl(ExtUtils::MakeMaker) 14 | BuildRequires: perl(Filter::Util::Call) 15 | BuildRequires: perl-Spiffy 16 | BuildRequires: perl(Test::Deep) 17 | BuildRequires: perl(Text::Diff) 18 | BuildRequires: perl(Test::More) 19 | Requires: perl(Filter::Util::Call) 20 | Requires: perl-Spiffy 21 | Requires: perl(Test::Deep) 22 | Requires: perl(Test::More) 23 | Provides: perl(Test::Base) 24 | AutoReqProv: no 25 | 26 | %description 27 | Testing is usually the ugly part of Perl module authoring. Perl gives you a 28 | standard way to run tests with Test::Harness, and basic testing primitives 29 | with Test::More. After that you are pretty much on your own to develop a 30 | testing framework and philosophy. Test::More encourages you to make your 31 | own framework by subclassing Test::Builder, but that is not trivial. 32 | 33 | %prep 34 | %setup -q -n Test-Base-%{version} 35 | 36 | %build 37 | %{__perl} Makefile.PL INSTALLDIRS=vendor 38 | make %{?_smp_mflags} 39 | 40 | %install 41 | rm -rf $RPM_BUILD_ROOT 42 | 43 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 44 | 45 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 46 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 47 | 48 | %{_fixperms} $RPM_BUILD_ROOT/* 49 | 50 | %check 51 | #make test 52 | 53 | %clean 54 | rm -rf $RPM_BUILD_ROOT 55 | 56 | %files 57 | %defattr(-,root,root,-) 58 | %doc Changes CONTRIBUTING LICENSE META.json README 59 | %{perl_vendorlib}/* 60 | %{_mandir}/man3/* 61 | 62 | %changelog 63 | * Sun May 21 2017 Yichun Zhang (agentzh) 0.88-2 64 | - added misssing build dep and runtime dep, Test::More. 65 | * Sun May 21 2017 Yichun Zhang (agentzh) 0.88-1 66 | - Specfile autogenerated by cpanspec 1.78. 67 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Test-Deep.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Test-Deep 2 | Version: 1.128 3 | Release: 3%{?dist} 4 | Summary: Extremely flexible deep comparison 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Test-Deep/ 8 | Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl(ExtUtils::MakeMaker) 12 | BuildRequires: perl(List::Util) 13 | BuildRequires: perl(Scalar::Util) 14 | BuildRequires: perl(Test::Builder) 15 | BuildRequires: perl(Test::More) 16 | BuildRequires: perl(Test::Tester) 17 | Requires: perl(List::Util) 18 | Requires: perl(Scalar::Util) 19 | Requires: perl(Test::Builder) 20 | Provides: perl(Test::Deep) 21 | 22 | %description 23 | If you don't know anything about automated testing in Perl then you should 24 | probably read about Test::Simple and Test::More before preceding. 25 | Test::Deep uses the Test::Builder framework. 26 | 27 | %prep 28 | %setup -q -n Test-Deep-%{version} 29 | 30 | %build 31 | %{__perl} Makefile.PL INSTALLDIRS=vendor 32 | make %{?_smp_mflags} 33 | 34 | %install 35 | rm -rf $RPM_BUILD_ROOT 36 | 37 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 38 | 39 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 40 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 41 | 42 | %{_fixperms} $RPM_BUILD_ROOT/* 43 | 44 | %check 45 | make test 46 | 47 | %clean 48 | rm -rf $RPM_BUILD_ROOT 49 | 50 | %files 51 | %defattr(-,root,root,-) 52 | %doc Changes META.json README TODO 53 | %{perl_vendorlib}/* 54 | %{_mandir}/man3/* 55 | 56 | %changelog 57 | * Fri Sep 06 2019 Yichun Zhang (agentzh) 1.128-1 58 | - Specfile autogenerated by cpanspec 1.78. 59 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Test-LongString.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Test-LongString 2 | Version: 0.17 3 | Release: 1%{?dist} 4 | Summary: Tests strings for equality, with more helpful failures 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Test-LongString/ 8 | Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/Test-LongString-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl >= 1:5.8.1 12 | BuildRequires: perl(ExtUtils::MakeMaker) 13 | BuildRequires: perl(Test::Builder) 14 | BuildRequires: perl(Test::Builder::Tester) 15 | Requires: perl(Test::Builder) 16 | Requires: perl(Test::Builder::Tester) 17 | 18 | %description 19 | This module provides some drop-in replacements for the string comparison 20 | functions of Test::More, but which are more suitable when you test against 21 | long strings. If you've ever had to search for text in a multi-line string 22 | like an HTML document, or find specific items in binary data, this is the 23 | module for you. 24 | 25 | %prep 26 | %setup -q -n Test-LongString-%{version} 27 | 28 | %build 29 | %{__perl} Makefile.PL INSTALLDIRS=vendor 30 | make %{?_smp_mflags} 31 | 32 | %install 33 | rm -rf $RPM_BUILD_ROOT 34 | 35 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 36 | 37 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 38 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 39 | 40 | %{_fixperms} $RPM_BUILD_ROOT/* 41 | 42 | %check 43 | make test 44 | 45 | %clean 46 | rm -rf $RPM_BUILD_ROOT 47 | 48 | %files 49 | %defattr(-,root,root,-) 50 | %doc Changes META.json README 51 | %{perl_vendorlib}/* 52 | %{_mandir}/man3/* 53 | 54 | %changelog 55 | * Sun May 21 2017 Yichun Zhang (agentzh) 0.17-1 56 | - Specfile autogenerated by cpanspec 1.78. 57 | -------------------------------------------------------------------------------- /rpm/SPECS/perl-Test-Simple.spec: -------------------------------------------------------------------------------- 1 | Name: perl-Test-Simple 2 | Version: 1.302190 3 | Release: 1%{?dist} 4 | Summary: Basic utilities for writing tests 5 | License: GPL+ or Artistic 6 | Group: Development/Libraries 7 | URL: http://search.cpan.org/dist/Test-Simple/ 8 | Source0: http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-%{version}.tar.gz 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 | BuildArch: noarch 11 | BuildRequires: perl >= 0:5.006002 12 | BuildRequires: perl(ExtUtils::MakeMaker) 13 | BuildRequires: perl(File::Spec) 14 | BuildRequires: perl(File::Temp) 15 | BuildRequires: perl(Scalar::Util) >= 1.13 16 | BuildRequires: perl(Storable) 17 | BuildRequires: perl(utf8) 18 | Requires: perl(File::Spec) 19 | Requires: perl(File::Temp) 20 | Requires: perl(Scalar::Util) >= 1.13 21 | Requires: perl(Storable) 22 | Requires: perl(utf8) 23 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 24 | Provides: perl(Test::Tester) 25 | Provides: perl(Test::More) 26 | Provides: perl(Test::Simple) 27 | Provides: perl(Test::Builder) 28 | 29 | %description 30 | ** If you are unfamiliar with testing read Test::Tutorial first! ** 31 | 32 | %prep 33 | %setup -q -n Test-Simple-%{version} 34 | 35 | %build 36 | %{__perl} Makefile.PL INSTALLDIRS=vendor 37 | make %{?_smp_mflags} 38 | 39 | %install 40 | rm -rf $RPM_BUILD_ROOT 41 | 42 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT 43 | 44 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; 45 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; 46 | 47 | %{_fixperms} $RPM_BUILD_ROOT/* 48 | 49 | %check 50 | make test 51 | 52 | %clean 53 | rm -rf $RPM_BUILD_ROOT 54 | 55 | %files 56 | %defattr(-,root,root,-) 57 | %doc appveyor.yml Changes cpanfile dist.ini examples LICENSE META.json README README.md 58 | %{perl_vendorlib}/* 59 | %{_mandir}/man3/* 60 | 61 | %changelog 62 | * Sat Apr 02 2022 rongfengliang 1.302190 63 | - upgraded Test-Simple to 1.302190 64 | * Tue Jul 07 2020 Yichun Zhang (agentzh) 1.302175-1 65 | - Specfile autogenerated by cpanspec 1.78. 66 | -------------------------------------------------------------------------------- /rpm/SPECS/update-or: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | 3 | use v5.10.1; 4 | use strict; 5 | use warnings; 6 | 7 | sub update_spec ($); 8 | 9 | my $version = shift or die "No version number specified.\n"; 10 | 11 | for my $specfile (reverse sort glob 'openresty*.spec') { 12 | if ($specfile =~ /^openresty(?:-(?:valgrind|asan|debug))?\.spec$/) { 13 | update_spec $specfile; 14 | } 15 | } 16 | 17 | sub update_spec ($) { 18 | my $file = shift; 19 | open my $in, $file 20 | or die "Cannot open $file for reading: $!\n"; 21 | my $src = do { local $/; <$in>; }; 22 | close $in; 23 | 24 | if ($src !~ /^Name: \s+ openresty\b/xsm) { 25 | die "Bad file content in $file"; 26 | } 27 | 28 | my $changes = 0; 29 | 30 | if ($src =~ s/^Version: (\s+) ( \d+ (?: \.\d+ ){3} ) $/Version:$1$version/xsm) { 31 | my $old_ver = $2; 32 | if ($old_ver ne $version) { 33 | say "INFO: version got changed from $old_ver to $version"; 34 | $changes++; 35 | 36 | } else { 37 | say "INFO: $file is already up to date: $version"; 38 | return; 39 | } 40 | 41 | } else { 42 | die "$file: Version line not found"; 43 | } 44 | 45 | if ($src =~ s/^Release: (\s+) (\d+) ( \%\{\?dist\} ) $/Release:${1}1$3/xsm) { 46 | my $old_rel = $2; 47 | if ($old_rel ne '1') { 48 | say "INFO: release number got changed from $old_rel to 1"; 49 | $changes++; 50 | } 51 | 52 | } else { 53 | die "$file: Release line not found"; 54 | } 55 | 56 | my $today = `date +'%a %b %e %Y'`; 57 | chomp $today; 58 | $today =~ s/\s\s+/ /g; 59 | #warn "today: $today"; 60 | 61 | if ($src =~ s/^ (\%changelog\n) /${1}\* $today Yichun Zhang (agentzh) ${version}-1\n- upgraded openresty to $version.\n/xsm) { 62 | $changes++; 63 | 64 | } else { 65 | die "$file: \%changelog section not found"; 66 | } 67 | 68 | if ($changes > 0) { 69 | open my $out, ">$file" 70 | or die "Cannot open $file for writing: $!\n"; 71 | print $out $src; 72 | close $out; 73 | say "$file updated with $changes change(s)."; 74 | } 75 | } 76 | --------------------------------------------------------------------------------