Skip to content

Commit

Permalink
openresty: manual stripping
Browse files Browse the repository at this point in the history
multun committed Apr 26, 2017
1 parent ffc76f6 commit d344d30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/openresty/PKGBUILD
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ url="http://openresty.org/"
license=('BSD')
depends=('perl>=5.6.1' 'readline' 'pcre' 'openssl')
makedepends=('patchelf')

options=('!strip')
source=(https://openresty.org/download/$pkgname-$pkgver.tar.gz{,.asc}
lua-resty-extra-lib.tar.gz
configure-add-lua-packages.patch
@@ -114,9 +114,10 @@ package() {

install -Dm644 "$srcdir/service" "$pkgdir"/usr/lib/systemd/system/nginx.service

local nginx_lib_path="/etc/nginx/libcrypto.so"
install -Dm755 "${srcdir}/openssl/libcrypto.so.1.1" "${pkgdir}/${nginx_lib_path}"
patchelf --add-needed "${nginx_lib_path}" "${pkgdir}/usr/bin/nginx"
local nginx_libcrypto="/etc/nginx/libcrypto.so"
install -Dm755 "${srcdir}/openssl/libcrypto.so.1.1" "${pkgdir}/${nginx_libcrypto}"
strip -s "${pkgdir}/usr/bin/nginx"
patchelf --add-needed "${nginx_libcrypto}" "${pkgdir}/usr/bin/nginx"

rmdir "$pkgdir/run"
}

0 comments on commit d344d30

Please sign in to comment.