Download source
# apt-get source nginx # git clone https://github.com/arut/nginx-rtmp-module.git
Install depends
# apt-get build-dep nginx # apt install dpkg-dev
Change debian/rules
# nano debian/rules
at line start with: extras_configure_flags
add:
–add-module=/root/nginx/nginx-rtmp-module
tried, but failed:
–add-dynamic-module=/root/nginx/nginx-rtmp-module
Build package
# dpkg-buildpackage -us -uc
Install packages
# dpkg -i libnginx-mod-http-auth-pam_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-cache-purge_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-dav-ext_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-echo_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-fancyindex_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-geoip_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-headers-more-filter_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-image-filter_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-lua_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-perl_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-subs-filter_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-uploadprogress_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-upstream-fair_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-xslt-filter_1.10.3-1+deb9u2_amd64.deb libnginx-mod-mail_1.10.3-1+deb9u2_amd64.deb libnginx-mod-nchan_1.10.3-1+deb9u2_amd64.deb libnginx-mod-stream_1.10.3-1+deb9u2_amd64.deb libnginx-mod-http-ndk_1.10.3-1+deb9u2_amd64.deb nginx-common_1.10.3-1+deb9u2_amd64.deb
Hold packages
# dpkg -l | grep nginx|cut -d " " -f 3|while read pkg ; do apt-mark hold $pkg;done
Referencias
- https://johnathan.org/originals/2016/07/add-rtmp-support-to-nginx-installed-from-apt.html