gentoo NGINX_MODULESを追加する

追加したい

[code lang=text] astel4696 ~ # emerge -av nginx --- Invalid atom in /etc/portage/package.env: FEATURES="-userpriv"

  • IMPORTANT: 2 news items need reading for repository 'gentoo'.
  • Use eselect news read to view new items.

These are the packages that would be merged, in order:

Calculating dependencies... done! [ebuild U ] www-servers/nginx-1.8.0::gentoo [1.7.6::gentoo] USE="aio http http-cache ipv6 pcre ssl vim-syntax -debug -libatomic -luajit -pcre-jit -rtmp (-selinux)" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi -addition -ajp -auth_pam -auth_request -cache_purge -dav -dav_ext -degradation -echo -fancyindex -flv -geoip -gunzip -gzip_static -headers_more -image_filter -lua -metrics -mogilefs -mp4 -naxsi -perl -push_stream -random_index -realip -secure_link -security -slowfs_cache -spdy -sticky -stub_status -sub -upload_progress -upstream_check -xslt" NGINX_MODULES_MAIL="-imap -pop3 -smtp" 813 KiB

Total: 1 package (1 upgrade), Size of downloads: 813 KiB

Would you like to merge these packages? [Yes/No] No

Quitting.

[/code]

<code>-</code>になっているのが入らないものなのでこれを追加する 今回は<code>-gunzip -gzip_static</code>を追加しようと思う

追加する場所は<code>/etc/portage/make.conf</code>

[code lang=text] astel4696 ~ # cat /etc/portage/make.conf | tail -n 1 NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi gunzip gzip_static" [/code]

既存で有効になっているものと追加したいものを追記する。

そうすると追記したものが<code>-</code>表示から無くなり追加されることがわかる

[code lang=text] astel4696 ~ # emerge -av nginx --- Invalid atom in /etc/portage/package.env: FEATURES="-userpriv"

  • IMPORTANT: 2 news items need reading for repository 'gentoo'.
  • Use eselect news read to view new items.

These are the packages that would be merged, in order:

Calculating dependencies... done! [ebuild U ] www-servers/nginx-1.8.0::gentoo [1.7.6::gentoo] USE="aio http http-cache ipv6 pcre ssl vim-syntax -debug -libatomic -luajit -pcre-jit -rtmp (-selinux)" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gunzip gzip gzip_static limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi -addition -ajp -auth_pam -auth_request -cache_purge -dav -dav_ext -degradation -echo -fancyindex -flv -geoip -headers_more -image_filter -lua -metrics -mogilefs -mp4 -naxsi -perl -push_stream -random_index -realip -secure_link -security -slowfs_cache -spdy -sticky -stub_status -sub -upload_progress -upstream_check -xslt" NGINX_MODULES_MAIL="-imap -pop3 -smtp" 813 KiB

Total: 1 package (1 upgrade), Size of downloads: 813 KiB

Would you like to merge these packages? [Yes/No] Yes

[/code]

[code lang=text] astel4696 ~ # nginx -Vv nginx version: nginx/1.8.0 built with OpenSSL 1.0.1o 12 Jun 2015 TLS SNI support enabled configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib64 --http-log-path=/var/log/nginx/access_log --http-client-body-temp-path=/var/lib/nginx/tmp/client --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --with-file-aio --with-aio_module --with-ipv6 --with-pcre --with-http_gunzip_module --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --user=nginx --group=nginx [/code]