1 |
commit: 051d652ca697e5c634e9a14e7f596ecd797afdcf |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 31 19:30:04 2015 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 31 19:30:04 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=051d652c |
7 |
|
8 |
www-servers/nginx: Remove old |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
www-servers/nginx/Manifest | 13 - |
13 |
www-servers/nginx/nginx-1.7.12.ebuild | 683 ---------------------------------- |
14 |
www-servers/nginx/nginx-1.7.6.ebuild | 681 --------------------------------- |
15 |
3 files changed, 1377 deletions(-) |
16 |
|
17 |
diff --git a/www-servers/nginx/Manifest b/www-servers/nginx/Manifest |
18 |
index d5367c8..1959e79 100644 |
19 |
--- a/www-servers/nginx/Manifest |
20 |
+++ b/www-servers/nginx/Manifest |
21 |
@@ -1,7 +1,4 @@ |
22 |
DIST modsecurity-2.9.0.tar.gz 4246467 SHA256 e2bbf789966c1f80094d88d9085a81bde082b2054f8e38e0db571ca49208f434 SHA512 1af04f29bf23c51d03cdd3795c530f88b523a645aa02d776a6b23dcbc31decec7cd574919e5c7c7cf82684df2774062de5e465bddbbaf4c01a442c6d49401d3d WHIRLPOOL 1167ba6048a3ca05dcdabf03c67ae12720cca0cec74547fc223ee92ff76b6d5131785fa77b5f16da180e56590c851c192eaf02817b798e4d6f41fa6bfb2735a6 |
23 |
-DIST modsecurity-apache_2.8.0.tar.gz 3940435 SHA256 95de6ec30982e5bde7981929ba89be89488e9f237ee8c4236e064b074bbb6f28 SHA512 2620d9ee0c7e40e02b908af5be916d1588f2ba55b8718495b6a3654e868973c45e8f8e794bf28b4677eb8a2d96ba427ead6ae4b26e48014bcd2b2f02013ceeef WHIRLPOOL cd90488ca5a85292bae32685ce44bcb82f46d98194636ba68f47a860c648c6933766bd56a38143f7656725fb3bd359de17f1b5513447c6ee40dbad945559fe4d |
24 |
-DIST nginx-1.7.12.tar.gz 831957 SHA256 22d1f0b6d064e125b01aeb2c6171682559d2488e1b102fc48ec564aa36e66897 SHA512 54dabbf56bdc7ffde69b0a010ab5dbee7237431f35ce81c78598b2205f8af88027521920d52f95f44dffbf872c409f10f0b8dbc9328e94e9e6c5e7d8a84b14d5 WHIRLPOOL baea92734046a997d3b0282e9bb7232c9d99ca0064685930113b1cc2d152c44698726747462a9c0b9afe776393efe9f609df8064a39028995632ef046db44b4f |
25 |
-DIST nginx-1.7.6.tar.gz 817265 SHA256 08e2efc169c9f9d511ce53ea16f17d8478ab9b0f7a653f212c03c61c52101599 SHA512 ac551020608e0c5ced17519509419e25513ab7a134f5e705cc8dd3866f3164c63ab7e3da9485ba5431d976978f4a9c68c5348bd102f9cb989c16f2e0ba65892a WHIRLPOOL bb247b8215fe10c6ad12df1da5e6fd7dfcd9ff441ef0bc1ecb9047ba132735a79ba4c5f0487bf8d2aee44ed940573b70ddaf0b77499d29fd4de8d9700b0ec038 |
26 |
DIST nginx-1.8.0.tar.gz 832104 SHA256 23cca1239990c818d8f6da118320c4979aadf5386deda691b1b7c2c96b9df3d5 SHA512 3e5d7e1b01839b2638251c47046149450b9b65985e611ef55e5953846e9eb0128c3708c695540ad4dfd0ce5e3060dfecb51213403048fab1a99dd5cea94f0038 WHIRLPOOL e4619e0e0454b86d725a21abe9300ad33ad700c4d577b33f1762b5af796093abd3c7b6afed38301dd0b2a235d6ff47db189b24fd19a5cbc777398bc237ae8534 |
27 |
DIST nginx-1.9.2.tar.gz 860233 SHA256 80b6425be14a005c8cb15115f3c775f4bc06bf798aa1affaee84ed9cf641ed78 SHA512 dc433fd0531a310de25dbf5303dbd904dc1f1ecfcb774707bf65f6f5f5ad83b6febc9938cabb0c68fefa4ddd80e121ac954411ed42f87254c95b5ca4daa9d7de WHIRLPOOL c99b9bf75afda286c99f206fa75ab12d83534a80659a3ebd13e1c766763d2aa8a34acedff307f4096c6d7e31693ca124f699482a99e22c1e8b91b7e356806ac3 |
28 |
DIST nginx-1.9.3.tar.gz 864430 SHA256 4298c5341b2a262fdb8dbc0a1389756181af8f098c7720abfb30bd3060f673eb SHA512 923309de03c86815023f190bda0c3138f3b9e6dba76939e721273bca3ddb6abd06506afe0621dff4e936358e4d4570a8b4dca095b9246a8e13a22c465f31855b WHIRLPOOL 980feb6111c424d4c11ba632c9f602be2242a5976060e3915135feb2af118d3280b18985dc199c4e729a402d029fe17d6e60e7e1db45e0b83514cf211c8a4017 |
29 |
@@ -9,32 +6,22 @@ DIST nginx-1.9.4.tar.gz 866423 SHA256 479b0c03747ee6b2d4a21046f89b06d178a2881ea8 |
30 |
DIST nginx_http_sticky_module_ng-1.2.5.tar.bz2 124072 SHA256 f975c033eb3c342f7247f6524774bbb727aaf630ed984576dbafe5de7a790c58 SHA512 d6ae723f739efb2f0548461931b1c395801684759962beda08067111426b1c9787ceaede91b0e984c023108fd17864c53c53925506f7e8e25ec8d2fc065585f6 WHIRLPOOL 1013c6a51f5989c8131392b3d9704d42c99f9727a673f6205878d0b7dfd265bb6042c1d30089603c9b38e339d48302e6873e77fe380b7e8edba25b71e9e84ba6 |
31 |
DIST nginx_http_sticky_module_ng-1.2.6.tar.bz2 124089 SHA256 e47b9fd435d7a5a3200f945a9745aaa7b9446495bda76df48f211129f88d6b26 SHA512 2632b04c94f523aa7c9726db182cba11d83e642c2db5798274e67fbef30de95d02e4e95cbfb98bc429d4244d630b5d9617405b43f728ae0117a5c134940c0ded WHIRLPOOL 1b754c02f834c6b4d4930e9c46b8c5accb6c9663718fb9296c92d79bc33206e66e49e4234ca4db9a5afcd42fa23273bdf0e675aa7b38927c4e46a85318c189eb |
32 |
DIST ngx_devel_kit-0.2.19-r1.tar.gz 65029 SHA256 501f299abdb81b992a980bda182e5de5a4b2b3e275fbf72ee34dd7ae84c4b679 SHA512 915954acf16a27fbd3c93c154012d38e864f1d8dfd51cde401bba26e46eb3e3c778ec4c92f4f8ed83ac001e96cee72765554d0e4da06acf6a4be5184b23b3657 WHIRLPOOL 0ce6bffc0fe2cef28ee74f5862ca6d914ed18fdee18d900608ff2a9983594c707aab3e335957b79dd7e77ae1beed054d8f71965ca0f57fc5f1d41ac06106c5a4 |
33 |
-DIST ngx_http_ajp_module-0.3.0.tar.gz 108832 SHA256 7b3791275ef87dde153679fa459e84784da09b26d35426d61f5477903584b254 SHA512 0934ea3c7dce23e2c55ab5c9210562fcf7b38ef19dc9ca7b80daee3cd983bb5f69743d34a041d35e7089dd6f6aa73363014d0b5f04ce0a5c0d94b4b0bb2dacab WHIRLPOOL 2ebe0db7887f22fb915372ef637214a0a40d7a0b694479b7da066671bd7c64aa152c5a615f368916311f5879840e083fb7a14555d304aea5e059c079aaa9c809 |
34 |
-DIST ngx_http_auth_pam-1.3.tar.gz 6363 SHA256 199dff5d11fbb3b6ddf9c8a60cc141970125a3f8e7a06f245e3175e93ca947e3 SHA512 3c86f709397dfd3edbd98f729193cb7b61895777d02244f1cf255ba5e4cd8e7bcb5bf537bf3d1086a513e46f117fdcb7610d7085dead35f5d36f74b5b3864ef8 WHIRLPOOL fc5b42a6a1143e9d3845e1470caa7bd60cf8e5a01e0dd53925fbf76cba072add024d24e4f926d3d0b3e27eccf5faa839b05f2549144beac6ffc43614b7ca5b19 |
35 |
DIST ngx_http_auth_pam-1.4.tar.gz 6502 SHA256 095742c5bcb86f2431e215db785bdeb238d594f085a0ac00d16125876a157409 SHA512 8d60347c666736ef39161b287ad32820ad6be4695f1c0f27a000d46bfc7e26c95233247d39cf37296518a6329ba73f06756d0b0b68157b0e5f67796f73264db3 WHIRLPOOL 2f0e60366cf43727c9b3aa07d2cb803a997cb9a4f48ba28e575f470bbb7c28115f41d390e306219ad130501a62e204d403bbca5ee784628fbca35b407f51702c |
36 |
-DIST ngx_http_cache_purge-2.1.tar.gz 10535 SHA256 424005af0c04e59ffa65a65e446081d4f95ee76a801a7555e001c67810bcb3b9 SHA512 1b70b2c35601949edd53d55922e81425aef0b2c486b071c2bcf53db7c5278e55966ffd2c9e32f599ee63e147a395e708d442515fe414f39b323d26722324db8b WHIRLPOOL f020841139988ae516969ffcd5bf7b2c264749fef5c20a5c8f0cca70f5eddcd3efcb3676bbe9a4550535de7b53fcd7326294fcae2a14dc6bf66d1ab77205b83f |
37 |
DIST ngx_http_cache_purge-2.3.tar.gz 12248 SHA256 279e0d8a46d3b1521fd43b3f78bc1c08b263899142a7cc5058c1c0361a92c89c SHA512 50a31dbf2216a6fae74a186af56dec4600cf55777e76a10ac0075f609e7737135aab063a64f2590dddcd0369ebebd4a523027f3d9ebcca74f7b4355be1c5dcc0 WHIRLPOOL 5451ef3e33044210453995ea916acec679599c0ded5471d464db5003a07e7a06e9690812091148c2af7b50384e52b32e49136eac02e0330724ba2408d893f96c |
38 |
DIST ngx_http_dav_ext-0.0.3.tar.gz 6260 SHA256 d428a0236c933779cb40ac8c91afb19d5c25a376dc3caab825bfd543e1ee530d SHA512 4763b1c5e417248d80acfacf20bfc5ba3e06675ff08e37703867daef99a400980b536941e4955c259432905bd11ab998bc2e2489a50350413c7bf37e18eafb74 WHIRLPOOL 5adbcea768fbb179249a03fe69304505ec09a1dafac848dd5e3cde96693c6fbcf6cf6c128ca116d02b36c1be0008807d9e86fee5b411e137b18b15a60291f29b |
39 |
-DIST ngx_http_echo-0.56.tar.gz 65109 SHA256 99027e63f5e625f28fedd163b9d18f29382ea55f079a9b7a2f16beed6a1d3ddf SHA512 4f6e87878564dddfa0e1d62414a7bbcf0726a01b7b53bc0b4be891658c39b85125fab4bb68ba7293d44c66c3ce5b967f289cf83628b2d78e9f3c01f5bcc37b75 WHIRLPOOL b5677d8133a0ad4c395479cfc29bc0b2cfb9362b55e4b27f20683beeace4830e6a0764a140a8f7dc518406769cda0f7a15cb340b2442a9c500a8e7c00fa0279a |
40 |
DIST ngx_http_echo-0.57.tar.gz 65073 SHA256 8467237ca0fae74ca7a32fbd34fc6044df307098415d48068214c9c235695a07 SHA512 c89780eca9267c9984a022a4dbd9ebf603dbd5c323bfea5ea7898ca9fc0a744388ce7520e7a9799aeabd6573f8e71ee595fe9998fa54e5d5c412b21031edd31d WHIRLPOOL e481b6f57a6ff48706fa7e281f31f15a5522c29b98620559cebe8412207d5595497cdce9156e7762cceff6369e9f678d5a81bf3c83fb2e8c5d8786622f1c27b8 |
41 |
DIST ngx_http_echo-0.58.tar.gz 64779 SHA256 190fe3977dd1910e82059f30f9baae3da2ee6e6fb50f18c9bc2605a19dbb9626 SHA512 03bca117b2a7f9fa78450d24b2a25fcf19528a37d842dbd740e9ccf0f3ad6652d9927757f1317441438ec1e474211e2b4c84829015a51c5e25ca9f2dbd3809a0 WHIRLPOOL 0c3623f881cd127d1f3450f6e46456d98501d9d21f5292ec6bae877fa3020adbaae2dbb83f105c8c7eb0273fedd927753238d2399385721167680200c8b51a15 |
42 |
-DIST ngx_http_fancyindex-0.3.4.tar.gz 14275 SHA256 d7a84e66b3b3571e6a7e2531d00767f4354f85ce2f281d532ace2bcc35035f8b SHA512 a8a78f83f34c910e0959b04f45ba897f0c84f2a3f36d1c36cd32a8e2a5d9e53f2d0f30cf6a99ffd76edc6179cb70561984745943ec05cca10bdda7ed29c8bfe4 WHIRLPOOL eaafe4a95eed6f43efed354978040c0856ca5819ed0b141637aee0b1c0aafcf2cc205b130f0ca4de39b224dbfb7083c158a4388768fa2515890e227a43245474 |
43 |
DIST ngx_http_fancyindex-0.3.5.tar.gz 14837 SHA256 e0998e83be58bc5787fa9243a76a9d21de3cd01088d3cf63177ba88a562634a1 SHA512 ddb4ab3e8e47e1c49680db3e9f648f7cd582c07f963204105118e61432fa1e80c3f1bce69ed689db383011a9c155184bcc7e931eeae20bbd7cbdb5d4eb35a0a8 WHIRLPOOL a45db854d75f05a59c6f5e67c652850b5410162e7852abda20bb6720d29cc716f25ce7ea93ef52f9ff3f11d6d3a744c1fa4c7a6270fc1bd6d42f6743accb8e73 |
44 |
-DIST ngx_http_headers_more-0.25-r1.tar.gz 27973 SHA256 1473f96f59dcec9d83ce65d691559993c1f80da8c0a4c0c0a30dae9f969eeabf SHA512 1a03e72ac5847b0eeada0ba1e5d5872399dd636db6aa54d10c9e53d96f4b5be4c785bf9117991d27ed558532fe9ce95d6f6c63f94f5b83350f5ea14a60c03aaf WHIRLPOOL 03a7e21814a05644bd1a459bc7b0b26dee0d4ec6ae81f4677f631fa1e4c52c679b651341d673319c6469adcf0ad8e29db58065f542e5907729a609edb6e633f4 |
45 |
DIST ngx_http_headers_more-0.26.tar.gz 28028 SHA256 d6bdc51f9e778a3b23e41a51cae542c1467a1e5e55c1329a7ffc454be084fb6f SHA512 842927de67d28f3cff596607f209d1004b6d49f1d45b861758405ed6fe6f7aab76ad63530ccdfff1c1947db1190dd65dee0a29f50026bfa7a39a9a051561cf88 WHIRLPOOL 0dc37c36717be40a07112388d913d20bc99d76f90604da618d5547f24d93c636c14c2cca18191ff5916b40ec0113da648cfc07e1c00b1853f2b15ce056d5f3d7 |
46 |
-DIST ngx_http_lua-0.9.12.tar.gz 512403 SHA256 e85c1924ca4670d5708b58efcd6e77793c43f243317a9850a112964067f63150 SHA512 c08546c074570408f646fc7ee60e60d732763a91f10b652858d95de070bd0dd4f0d4117114fc4b46d0f32cff88b21db5f394c3fbb2d2e5f1494fc01eedb782e4 WHIRLPOOL 2223bacff56b4ef942372e4eac3b1a02f21952804b0df6c626456ac2b6894ea068b704606f8a25c47de7887e97577a771fca6ce31d7288992f6f28eb0be27022 |
47 |
DIST ngx_http_lua-0.9.15.tar.gz 520190 SHA256 659fe4c201f4a4ae1007fa029cef472aaa837bf0904babb6158f83b86536c5b7 SHA512 1d809f873ced8e50422298bb4b730b8e7aaf442c11570cbe892fd73a414ff4f6d6eca7be8b2d2dbf57a136136b17d80596ee2f2f195dcb59776e78df5a94ae92 WHIRLPOOL caf128254f99d674eb370779c6e41c0b459be1c5a2baac7df1ff3498a38349bd2c140594eea3eb29c468a366e265421f90363886be73db0b3484cc6f386cb563 |
48 |
DIST ngx_http_lua-0.9.16.tar.gz 523900 SHA256 a3cda55b8cba5bc6632aa270b8a02d543fdb43f4d60a3bd2cb411c2a3b467656 SHA512 01be7dca10c1c1f25d2b8e65c9944662d5ba0235ecccba1143f7c30dcb76fad847a4a2fa7a34055906a33d50ecf8fb463aac9f76581390035a88e48c9b9f5319 WHIRLPOOL 6f8c04f8d284d1fdcf69471a4590ad0381335ae64e6f0bc5b3ec4a13c8e7254d2363cbf23304f559997d7e5695832390bc187e18ee57b9c72c39c8ed5a98b7e0 |
49 |
DIST ngx_http_naxsi-0.53-2.tar.gz 165690 SHA256 3eadff1d91995beae41b92733ade28091c2075a24ae37058f4d6aa90b0f4b660 SHA512 ada592f5e7f80a6d549cc435ee8720df01a788dc88cf27a7d55521bb7e4c66fa11b9ec28216aff7e13c70a5faf12cb745bd398b8a782ed4dea1eecd04b07e24c WHIRLPOOL c5b736dbe9bd66daf7e023f176a08f78225b61990781d7ad5a55d0f35391df7e05bf1b2623a6227e0355cf0204ef9eac1b9fa03aa62b3c0d6eac515f1213f270 |
50 |
-DIST ngx_http_push_stream-0.4.0.tar.gz 165341 SHA256 4662cb5680e8dada55ada47b91ef563dd0322f94d775bf1c09e90d83d12c33a6 SHA512 45e68b75f6156df73b2c45d68a9b471560459eb608203b554ecbfcbef6923e4710c92aaefb6a7f8c1d90c7dbf31f4fcc59802d0e8f5c29418be52acad0073c02 WHIRLPOOL 15f2bfa1f9b56005559b8122ce047166e48f0428677401df0b41bcbb52daa6f176c4527b02e145aec9cd3d2fa48c12bb17bc0fce2d04bd7c223b4c5ca91253a0 |
51 |
DIST ngx_http_push_stream-0.4.1.tar.gz 166928 SHA256 553584f557a3faec73702550e7e1417cbc0021f4f98468cc83e61e9d94def5cc SHA512 3b2289cc3abe6df0ee39360816675a39de1669a284e23770aa04b29e1e5dc73f5d99f3db6c7e8e4895a4abad0602aa64024ec19a2e741e138a70191501f038be WHIRLPOOL 9d203d4a78a3bd189527ebeaf1ff98613ee6a3150ae433efa17ed45dd9f6cb263b2a4c329a6fc2d04c6583ac2beaf24e87e3263d71a910f720b80038c9bc09c2 |
52 |
DIST ngx_http_push_stream-0.5.1.tar.gz 175263 SHA256 a95f31e80120fd7324795b92a0d94c0b43e1265df7fd0f1eba11a337c1e0a626 SHA512 b996c6fe48b97540d1ee9879f37aca1a4c8262ad7577d607d402a00d79f5d32676f010da303f89db18e6f90351b8bb5cf0265338cc5df8154e94d5f332a227c8 WHIRLPOOL aacf93841af0384b2be1d4075ceb23e67b89a4cac0a06fe40e2efd5f0334309ccc83e29014c9746dda9e6b59df0866f0a796c0a9dc9d14e2625a11c019c8e79d |
53 |
DIST ngx_http_slowfs_cache-1.10.tar.gz 11809 SHA256 1e81453942e5b0877de1f1f06c56ae82918ea9818255cb935bcb673c95a758a1 SHA512 fbc9609a8d6913aeefe535f206b9e53477503f131934ead2ae5a6169e395af2f5fb54778704824d5eeb22a4ef40a11ebbcde580db62a631f70edcc2cfc06b15d WHIRLPOOL a02ed77422c47d9e476f8746186d19d632ddb953635d8d9dd51ff076225a78044286ee7e114478bc02e4b2a422e4fdc207154fc287629dd2cd7c3f9a634dad18 |
54 |
DIST ngx_http_upload_progress-0.9.1-r1.tar.gz 17166 SHA256 99ec072cca35cd7791e77c40a8ded41a7a8c1111e057be26e55fba2fdf105f43 SHA512 6c1e3776402b6e2cda50d9c48c4b578a85feffe15891c075443f6d9c7b9e2414e0614b50a8f417ddda9faf5f719957c77ade519c88b48caec970fc51fe12f0d1 WHIRLPOOL 12970d0f75ee3f0d8a97c4948b97fca2bd707a93e4e578c0e2ac0d18991986e620dd6b15c2ab5680ff726c0490671e3bc5e1ee6109baf81877d8baa6a5357825 |
55 |
-DIST ngx_http_upstream_check-0.1.9.tar.gz 116307 SHA256 b3bb240fb236ba9ae3e807de0f69aa0804d100496c1063a523b29a184e438562 SHA512 b50c15aa311e38101d9b4f6178684a43abcfa66d0483dbf62b3dc5b595d85f59b52a4f564a5f35c54966042074598fef0fc59635ea38c064ec0e8921d9c3229d WHIRLPOOL f878e4833d445a75076455aba34f85a23c0377d922d9ff3d542f887379730e127e969fe3108cd476279d7ff1aa396f686e9e7b8594fb38eb2ea36d3d928602e6 |
56 |
DIST ngx_http_upstream_check-0.3.0.tar.gz 136542 SHA256 c543bf427b38643c10dcd1a0c701392bc666708313e7b63f9272396a6cc9a461 SHA512 ca19e8bcae218c639ff59e8f743bd2fb78de2c1f33dfb0de7b7b5ce82ae7ef04488255715e3e0311ebbc8c9741726573ac532cb269052925b0935f349414e959 WHIRLPOOL acee2ea955f87844a724815fc78d0296f23e9d6726551febd6bbff563625e8eadd04213394b6029c45b6036138c4f8957b2621f1b033a6177410fa7778176749 |
57 |
DIST ngx_memc_module-0.16.tar.gz 38560 SHA256 24f3c3270831aed2d157c01ef74cb26eab26b832971fe7b9f42a03dbfac10ce4 SHA512 e48a864ac9ae627e840b189f33157aa3a1c0966d2bcffd1f93030b0e6f5962355c004737cae0a5a00f2a1cbcb201369c37053f0823bb601618d18ef87561e353 WHIRLPOOL c53decff852790758b3b92ca1d207a5b99b592e708271411699d70dd9683d7f551b469e057f480f66adfdffa1cb1b91b9c7e031835311ac0b6bfab0f444852f9 |
58 |
DIST ngx_metrics-0.1.1.tar.gz 2964 SHA256 1c62ebb31e3caafad91720962770b0e7a4287f195520cf12471c262ac19b154e SHA512 d36a8fb0104c83b6b564e03b351aa750cab08650264c74d6f786af357bfb7006b531a93270dd961896ea8dafe27e5db8548ede714c5f52c4742876bc73af4b5e WHIRLPOOL 2796f5a97e76dfcc91133240e8e90ba493f0356f781a173d8cacdd09eba64b75ef531db398c0566fda395124700de8c991b771433e376ca0d5898c2ea6f82868 |
59 |
DIST ngx_mogilefs_module-1.0.4.tar.gz 11208 SHA256 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae SHA512 b8cb7eaf6274f4e2247dbcb39db05072d2b2d4361256a325fafab5533d7ce0c4ae9e2905b954dfcfa4789c9cab5cccf2ac1c3a1f02f6a327ed95b562d7773ed1 WHIRLPOOL 64c9b11ad938e6dbe5ba31298f1cd46f6e6bb4ba039c96b1e43bd85919d1606326f74b677f789ecabe0b0f4e0f08ac5aaf8148bf820de65aaa1e9966a28b9f61 |
60 |
-DIST ngx_rtmp-1.1.6.tar.gz 519666 SHA256 4039d1e7febd93188f729b594772d04d8a1137b2e90b12fa53bb061f200add87 SHA512 6db0cc5a3cff600a836483f9cc4ff76860e9c893167561ad818cb41e2eb4fa31af8a4213e42c7c5766e389aed0ad713cffe776aa4bc4ebf279dd63eb65d4162c WHIRLPOOL f23860df6df0de87aa7d65f2411ea7104e635e5b13987853599a06c064b93229c8a900dca84b983e0dcabac96c8918889932cd303836a3cab4ac7c6d7c2a0b10 |
61 |
DIST ngx_rtmp-1.1.7.tar.gz 519735 SHA256 7922b0e3d5f3d9c4b275e4908cfb8f5fb1bfb3ac2df77f4c262cda56df21aab3 SHA512 9883462a04683f1e7af175da04b86d259ff6d677864667588fb073143f7130969eb2a5a5a48ddceda7a555b908580f179bdcacb7f0111413d51db5bfe43b396e WHIRLPOOL e9c1fc9c3c965ae7047657f76e0997d5da107aff7dd9e5cf3ddb5a2d8f388efd8439b82923e199dc36def449567b8529e06c80f69c36f42128236ac0be5719d5 |
62 |
|
63 |
diff --git a/www-servers/nginx/nginx-1.7.12.ebuild b/www-servers/nginx/nginx-1.7.12.ebuild |
64 |
deleted file mode 100644 |
65 |
index 19f51b6..0000000 |
66 |
--- a/www-servers/nginx/nginx-1.7.12.ebuild |
67 |
+++ /dev/null |
68 |
@@ -1,683 +0,0 @@ |
69 |
-# Copyright 1999-2015 Gentoo Foundation |
70 |
-# Distributed under the terms of the GNU General Public License v2 |
71 |
-# $Id$ |
72 |
- |
73 |
-EAPI="5" |
74 |
- |
75 |
-# Maintainer notes: |
76 |
-# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite |
77 |
-# - any http-module activates the main http-functionality and overrides USE=-http |
78 |
-# - keep the following requirements in mind before adding external modules: |
79 |
-# * alive upstream |
80 |
-# * sane packaging |
81 |
-# * builds cleanly |
82 |
-# * does not need a patch for nginx core |
83 |
-# - TODO: test the google-perftools module (included in vanilla tarball) |
84 |
- |
85 |
-# prevent perl-module from adding automagic perl DEPENDs |
86 |
-GENTOO_DEPEND_ON_PERL="no" |
87 |
- |
88 |
-# devel_kit (https://github.com/simpl/ngx_devel_kit, BSD license) |
89 |
-DEVEL_KIT_MODULE_PV="0.2.19" |
90 |
-DEVEL_KIT_MODULE_P="ngx_devel_kit-${DEVEL_KIT_MODULE_PV}-r1" |
91 |
-DEVEL_KIT_MODULE_URI="https://github.com/simpl/ngx_devel_kit/archive/v${DEVEL_KIT_MODULE_PV}.tar.gz" |
92 |
-DEVEL_KIT_MODULE_WD="${WORKDIR}/ngx_devel_kit-${DEVEL_KIT_MODULE_PV}" |
93 |
- |
94 |
-# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license) |
95 |
-HTTP_UPLOAD_PROGRESS_MODULE_PV="0.9.1" |
96 |
-HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_http_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}-r1" |
97 |
-HTTP_UPLOAD_PROGRESS_MODULE_URI="https://github.com/masterzen/nginx-upload-progress-module/archive/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}.tar.gz" |
98 |
-HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" |
99 |
- |
100 |
-# http_headers_more (https://github.com/agentzh/headers-more-nginx-module, BSD license) |
101 |
-HTTP_HEADERS_MORE_MODULE_PV="0.26" |
102 |
-HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}" |
103 |
-HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz" |
104 |
-HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}" |
105 |
- |
106 |
-# http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, BSD-2 license) |
107 |
-HTTP_CACHE_PURGE_MODULE_PV="2.3" |
108 |
-HTTP_CACHE_PURGE_MODULE_P="ngx_http_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
109 |
-HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
110 |
-HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
111 |
- |
112 |
-# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license) |
113 |
-HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
114 |
-HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
115 |
-HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
116 |
-HTTP_SLOWFS_CACHE_MODULE_WD="${WORKDIR}/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
117 |
- |
118 |
-# http_fancyindex (https://github.com/aperezdc/ngx-fancyindex, BSD license) |
119 |
-HTTP_FANCYINDEX_MODULE_PV="0.3.5" |
120 |
-HTTP_FANCYINDEX_MODULE_P="ngx_http_fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
121 |
-HTTP_FANCYINDEX_MODULE_URI="https://github.com/aperezdc/ngx-fancyindex/archive/v${HTTP_FANCYINDEX_MODULE_PV}.tar.gz" |
122 |
-HTTP_FANCYINDEX_MODULE_WD="${WORKDIR}/ngx-fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
123 |
- |
124 |
-# http_lua (https://github.com/openresty/lua-nginx-module, BSD license) |
125 |
-HTTP_LUA_MODULE_PV="0.9.15" |
126 |
-HTTP_LUA_MODULE_P="ngx_http_lua-${HTTP_LUA_MODULE_PV}" |
127 |
-HTTP_LUA_MODULE_URI="https://github.com/openresty/lua-nginx-module/archive/v${HTTP_LUA_MODULE_PV}.tar.gz" |
128 |
-HTTP_LUA_MODULE_WD="${WORKDIR}/lua-nginx-module-${HTTP_LUA_MODULE_PV}" |
129 |
- |
130 |
-# http_auth_pam (http://web.iti.upv.es/~sto/nginx/, BSD-2 license) |
131 |
-HTTP_AUTH_PAM_MODULE_PV="1.4" |
132 |
-HTTP_AUTH_PAM_MODULE_P="ngx_http_auth_pam-${HTTP_AUTH_PAM_MODULE_PV}" |
133 |
-HTTP_AUTH_PAM_MODULE_URI="https://github.com/stogh/ngx_http_auth_pam_module/archive/v${HTTP_AUTH_PAM_MODULE_PV}.tar.gz" |
134 |
-HTTP_AUTH_PAM_MODULE_WD="${WORKDIR}/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}" |
135 |
- |
136 |
-# http_upstream_check (https://github.com/yaoweibin/nginx_upstream_check_module, BSD license) |
137 |
-HTTP_UPSTREAM_CHECK_MODULE_PV="0.3.0" |
138 |
-HTTP_UPSTREAM_CHECK_MODULE_P="ngx_http_upstream_check-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
139 |
-HTTP_UPSTREAM_CHECK_MODULE_URI="https://github.com/yaoweibin/nginx_upstream_check_module/archive/v${HTTP_UPSTREAM_CHECK_MODULE_PV}.tar.gz" |
140 |
-HTTP_UPSTREAM_CHECK_MODULE_WD="${WORKDIR}/nginx_upstream_check_module-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
141 |
- |
142 |
-# http_metrics (https://github.com/zenops/ngx_metrics, BSD license) |
143 |
-HTTP_METRICS_MODULE_PV="0.1.1" |
144 |
-HTTP_METRICS_MODULE_P="ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
145 |
-HTTP_METRICS_MODULE_URI="https://github.com/madvertise/ngx_metrics/archive/v${HTTP_METRICS_MODULE_PV}.tar.gz" |
146 |
-HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
147 |
- |
148 |
-# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+) |
149 |
-HTTP_NAXSI_MODULE_PV="0.53-2" |
150 |
-HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}" |
151 |
-HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz" |
152 |
-HTTP_NAXSI_MODULE_WD="${WORKDIR}/naxsi-${HTTP_NAXSI_MODULE_PV}/naxsi_src" |
153 |
- |
154 |
-# nginx-rtmp-module (https://github.com/arut/nginx-rtmp-module, BSD license) |
155 |
-RTMP_MODULE_PV="1.1.7" |
156 |
-RTMP_MODULE_P="ngx_rtmp-${RTMP_MODULE_PV}" |
157 |
-RTMP_MODULE_URI="https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_MODULE_PV}.tar.gz" |
158 |
-RTMP_MODULE_WD="${WORKDIR}/nginx-rtmp-module-${RTMP_MODULE_PV}" |
159 |
- |
160 |
-# nginx-dav-ext-module (https://github.com/arut/nginx-dav-ext-module, BSD license) |
161 |
-HTTP_DAV_EXT_MODULE_PV="0.0.3" |
162 |
-HTTP_DAV_EXT_MODULE_P="ngx_http_dav_ext-${HTTP_DAV_EXT_MODULE_PV}" |
163 |
-HTTP_DAV_EXT_MODULE_URI="https://github.com/arut/nginx-dav-ext-module/archive/v${HTTP_DAV_EXT_MODULE_PV}.tar.gz" |
164 |
-HTTP_DAV_EXT_MODULE_WD="${WORKDIR}/nginx-dav-ext-module-${HTTP_DAV_EXT_MODULE_PV}" |
165 |
- |
166 |
-# echo-nginx-module (https://github.com/agentzh/echo-nginx-module, BSD license) |
167 |
-HTTP_ECHO_MODULE_PV="0.57" |
168 |
-HTTP_ECHO_MODULE_P="ngx_http_echo-${HTTP_ECHO_MODULE_PV}" |
169 |
-HTTP_ECHO_MODULE_URI="https://github.com/agentzh/echo-nginx-module/archive/v${HTTP_ECHO_MODULE_PV}.tar.gz" |
170 |
-HTTP_ECHO_MODULE_WD="${WORKDIR}/echo-nginx-module-${HTTP_ECHO_MODULE_PV}" |
171 |
- |
172 |
-# mod_security for nginx (https://modsecurity.org/, Apache-2.0) |
173 |
-# keep the MODULE_P here consistent with upstream to avoid tarball duplication |
174 |
-HTTP_SECURITY_MODULE_PV="2.9.0" |
175 |
-HTTP_SECURITY_MODULE_P="modsecurity-${HTTP_SECURITY_MODULE_PV}" |
176 |
-HTTP_SECURITY_MODULE_URI="https://www.modsecurity.org/tarball/${HTTP_SECURITY_MODULE_PV}/${HTTP_SECURITY_MODULE_P}.tar.gz" |
177 |
-HTTP_SECURITY_MODULE_WD="${WORKDIR}/${HTTP_SECURITY_MODULE_P}" |
178 |
- |
179 |
-# push-stream-module (http://www.nginxpushstream.com, https://github.com/wandenberg/nginx-push-stream-module, GPL-3) |
180 |
-HTTP_PUSH_STREAM_MODULE_PV="0.4.1" |
181 |
-HTTP_PUSH_STREAM_MODULE_P="ngx_http_push_stream-${HTTP_PUSH_STREAM_MODULE_PV}" |
182 |
-HTTP_PUSH_STREAM_MODULE_URI="https://github.com/wandenberg/nginx-push-stream-module/archive/${HTTP_PUSH_STREAM_MODULE_PV}.tar.gz" |
183 |
-HTTP_PUSH_STREAM_MODULE_WD="${WORKDIR}/nginx-push-stream-module-${HTTP_PUSH_STREAM_MODULE_PV}" |
184 |
- |
185 |
-# sticky-module (https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng, BSD-2) |
186 |
-HTTP_STICKY_MODULE_PV="1.2.5" |
187 |
-HTTP_STICKY_MODULE_P="nginx_http_sticky_module_ng-${HTTP_STICKY_MODULE_PV}" |
188 |
-HTTP_STICKY_MODULE_URI="https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/${HTTP_STICKY_MODULE_PV}.tar.bz2" |
189 |
-HTTP_STICKY_MODULE_WD="${WORKDIR}/nginx-goodies-nginx-sticky-module-ng-bd312d586752" |
190 |
- |
191 |
-# ajp-module (https://github.com/yaoweibin/nginx_ajp_module, BSD-2) |
192 |
-HTTP_AJP_MODULE_PV="0.3.0" |
193 |
-HTTP_AJP_MODULE_P="ngx_http_ajp_module-${HTTP_AJP_MODULE_PV}" |
194 |
-HTTP_AJP_MODULE_URI="https://github.com/yaoweibin/nginx_ajp_module/archive/v${HTTP_AJP_MODULE_PV}.tar.gz" |
195 |
-HTTP_AJP_MODULE_WD="${WORKDIR}/nginx_ajp_module-${HTTP_AJP_MODULE_PV}" |
196 |
- |
197 |
-# mogilefs-module (http://www.grid.net.ru/nginx/mogilefs.en.html, BSD-2) |
198 |
-HTTP_MOGILEFS_MODULE_PV="1.0.4" |
199 |
-HTTP_MOGILEFS_MODULE_P="ngx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
200 |
-HTTP_MOGILEFS_MODULE_URI="http://www.grid.net.ru/nginx/download/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}.tar.gz" |
201 |
-HTTP_MOGILEFS_MODULE_WD="${WORKDIR}/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
202 |
- |
203 |
-inherit eutils ssl-cert toolchain-funcs perl-module flag-o-matic user systemd versionator multilib |
204 |
- |
205 |
-DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
206 |
-HOMEPAGE="http://nginx.org" |
207 |
-SRC_URI="http://nginx.org/download/${P}.tar.gz |
208 |
- ${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
209 |
- nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
210 |
- nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) |
211 |
- nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} -> ${HTTP_CACHE_PURGE_MODULE_P}.tar.gz ) |
212 |
- nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} -> ${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz ) |
213 |
- nginx_modules_http_fancyindex? ( ${HTTP_FANCYINDEX_MODULE_URI} -> ${HTTP_FANCYINDEX_MODULE_P}.tar.gz ) |
214 |
- nginx_modules_http_lua? ( ${HTTP_LUA_MODULE_URI} -> ${HTTP_LUA_MODULE_P}.tar.gz ) |
215 |
- nginx_modules_http_auth_pam? ( ${HTTP_AUTH_PAM_MODULE_URI} -> ${HTTP_AUTH_PAM_MODULE_P}.tar.gz ) |
216 |
- nginx_modules_http_upstream_check? ( ${HTTP_UPSTREAM_CHECK_MODULE_URI} -> ${HTTP_UPSTREAM_CHECK_MODULE_P}.tar.gz ) |
217 |
- nginx_modules_http_metrics? ( ${HTTP_METRICS_MODULE_URI} -> ${HTTP_METRICS_MODULE_P}.tar.gz ) |
218 |
- nginx_modules_http_naxsi? ( ${HTTP_NAXSI_MODULE_URI} -> ${HTTP_NAXSI_MODULE_P}.tar.gz ) |
219 |
- rtmp? ( ${RTMP_MODULE_URI} -> ${RTMP_MODULE_P}.tar.gz ) |
220 |
- nginx_modules_http_dav_ext? ( ${HTTP_DAV_EXT_MODULE_URI} -> ${HTTP_DAV_EXT_MODULE_P}.tar.gz ) |
221 |
- nginx_modules_http_echo? ( ${HTTP_ECHO_MODULE_URI} -> ${HTTP_ECHO_MODULE_P}.tar.gz ) |
222 |
- nginx_modules_http_security? ( ${HTTP_SECURITY_MODULE_URI} -> ${HTTP_SECURITY_MODULE_P}.tar.gz ) |
223 |
- nginx_modules_http_push_stream? ( ${HTTP_PUSH_STREAM_MODULE_URI} -> ${HTTP_PUSH_STREAM_MODULE_P}.tar.gz ) |
224 |
- nginx_modules_http_sticky? ( ${HTTP_STICKY_MODULE_URI} -> ${HTTP_STICKY_MODULE_P}.tar.bz2 ) |
225 |
- nginx_modules_http_ajp? ( ${HTTP_AJP_MODULE_URI} -> ${HTTP_AJP_MODULE_P}.tar.gz ) |
226 |
- nginx_modules_http_mogilefs? ( ${HTTP_MOGILEFS_MODULE_URI} -> ${HTTP_MOGILEFS_MODULE_P}.tar.gz )" |
227 |
- |
228 |
-LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+ |
229 |
- nginx_modules_http_security? ( Apache-2.0 ) |
230 |
- nginx_modules_http_push_stream? ( GPL-3 )" |
231 |
- |
232 |
-SLOT="0" |
233 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
234 |
- |
235 |
-NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi |
236 |
-geo gzip limit_req limit_conn map memcached proxy referer rewrite scgi ssi |
237 |
-split_clients upstream_ip_hash userid uwsgi" |
238 |
-NGINX_MODULES_OPT="addition auth_request dav degradation flv geoip gunzip gzip_static |
239 |
-image_filter mp4 perl random_index realip secure_link spdy stub_status sub xslt" |
240 |
-NGINX_MODULES_MAIL="imap pop3 smtp" |
241 |
-NGINX_MODULES_3RD=" |
242 |
- http_upload_progress |
243 |
- http_headers_more |
244 |
- http_cache_purge |
245 |
- http_slowfs_cache |
246 |
- http_fancyindex |
247 |
- http_lua |
248 |
- http_auth_pam |
249 |
- http_upstream_check |
250 |
- http_metrics |
251 |
- http_naxsi |
252 |
- http_dav_ext |
253 |
- http_echo |
254 |
- http_security |
255 |
- http_push_stream |
256 |
- http_sticky |
257 |
- http_ajp |
258 |
- http_mogilefs" |
259 |
- |
260 |
-IUSE="aio debug +http +http-cache ipv6 libatomic luajit +pcre pcre-jit rtmp |
261 |
-selinux ssl userland_GNU vim-syntax" |
262 |
- |
263 |
-for mod in $NGINX_MODULES_STD; do |
264 |
- IUSE="${IUSE} +nginx_modules_http_${mod}" |
265 |
-done |
266 |
- |
267 |
-for mod in $NGINX_MODULES_OPT; do |
268 |
- IUSE="${IUSE} nginx_modules_http_${mod}" |
269 |
-done |
270 |
- |
271 |
-for mod in $NGINX_MODULES_MAIL; do |
272 |
- IUSE="${IUSE} nginx_modules_mail_${mod}" |
273 |
-done |
274 |
- |
275 |
-for mod in $NGINX_MODULES_3RD; do |
276 |
- IUSE="${IUSE} nginx_modules_${mod}" |
277 |
-done |
278 |
- |
279 |
-CDEPEND=" |
280 |
- pcre? ( >=dev-libs/libpcre-4.2 ) |
281 |
- pcre-jit? ( >=dev-libs/libpcre-8.20[jit] ) |
282 |
- ssl? ( dev-libs/openssl:0= ) |
283 |
- http-cache? ( userland_GNU? ( dev-libs/openssl:0= ) ) |
284 |
- nginx_modules_http_geoip? ( dev-libs/geoip ) |
285 |
- nginx_modules_http_gunzip? ( sys-libs/zlib ) |
286 |
- nginx_modules_http_gzip? ( sys-libs/zlib ) |
287 |
- nginx_modules_http_gzip_static? ( sys-libs/zlib ) |
288 |
- nginx_modules_http_image_filter? ( media-libs/gd[jpeg,png] ) |
289 |
- nginx_modules_http_perl? ( >=dev-lang/perl-5.8 ) |
290 |
- nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 ) |
291 |
- nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl:0= ) ) |
292 |
- nginx_modules_http_spdy? ( >=dev-libs/openssl-1.0.1c:0= ) |
293 |
- nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt ) |
294 |
- nginx_modules_http_lua? ( !luajit? ( dev-lang/lua:0= ) luajit? ( dev-lang/luajit:2= ) ) |
295 |
- nginx_modules_http_auth_pam? ( virtual/pam ) |
296 |
- nginx_modules_http_metrics? ( dev-libs/yajl ) |
297 |
- nginx_modules_http_dav_ext? ( dev-libs/expat ) |
298 |
- nginx_modules_http_security? ( >=dev-libs/libxml2-2.7.8 dev-libs/apr-util www-servers/apache )" |
299 |
-RDEPEND="${CDEPEND} |
300 |
- selinux? ( sec-policy/selinux-nginx ) |
301 |
-" |
302 |
-DEPEND="${CDEPEND} |
303 |
- arm? ( dev-libs/libatomic_ops ) |
304 |
- libatomic? ( dev-libs/libatomic_ops )" |
305 |
-PDEPEND="vim-syntax? ( app-vim/nginx-syntax )" |
306 |
- |
307 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
308 |
- nginx_modules_http_lua? ( nginx_modules_http_rewrite ) |
309 |
- nginx_modules_http_naxsi? ( pcre ) |
310 |
- nginx_modules_http_dav_ext? ( nginx_modules_http_dav ) |
311 |
- nginx_modules_http_metrics? ( nginx_modules_http_stub_status ) |
312 |
- nginx_modules_http_security? ( pcre ) |
313 |
- nginx_modules_http_push_stream? ( ssl )" |
314 |
- |
315 |
-pkg_setup() { |
316 |
- NGINX_HOME="/var/lib/nginx" |
317 |
- NGINX_HOME_TMP="${NGINX_HOME}/tmp" |
318 |
- |
319 |
- ebegin "Creating nginx user and group" |
320 |
- enewgroup ${PN} |
321 |
- enewuser ${PN} -1 -1 "${NGINX_HOME}" ${PN} |
322 |
- eend $? |
323 |
- |
324 |
- if use libatomic; then |
325 |
- ewarn "GCC 4.1+ features built-in atomic operations." |
326 |
- ewarn "Using libatomic_ops is only needed if using" |
327 |
- ewarn "a different compiler or a GCC prior to 4.1" |
328 |
- fi |
329 |
- |
330 |
- if [[ -n $NGINX_ADD_MODULES ]]; then |
331 |
- ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" |
332 |
- ewarn "This nginx installation is not supported!" |
333 |
- ewarn "Make sure you can reproduce the bug without those modules" |
334 |
- ewarn "_before_ reporting bugs." |
335 |
- fi |
336 |
- |
337 |
- if use !http; then |
338 |
- ewarn "To actually disable all http-functionality you also have to disable" |
339 |
- ewarn "all nginx http modules." |
340 |
- fi |
341 |
-} |
342 |
- |
343 |
-src_prepare() { |
344 |
- epatch "${FILESDIR}/${PN}-1.4.1-fix-perl-install-path.patch" |
345 |
- |
346 |
- if use nginx_modules_http_upstream_check; then |
347 |
- epatch "${FILESDIR}"/check_1.7.2+.patch |
348 |
- fi |
349 |
- |
350 |
- if use nginx_modules_http_lua; then |
351 |
- sed -i -e 's/-llua5.1/-llua/' "${HTTP_LUA_MODULE_WD}/config" || die |
352 |
- fi |
353 |
- |
354 |
- if use nginx_modules_http_ajp; then |
355 |
- pushd "${HTTP_AJP_MODULE_WD}" > /dev/null |
356 |
- epatch "${FILESDIR}"/AJP-nginx-1.7.9+.patch |
357 |
- popd > /dev/null |
358 |
- fi |
359 |
- |
360 |
- find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die |
361 |
- # We have config protection, don't rename etc files |
362 |
- sed -i 's:.default::' auto/install || die |
363 |
- # remove useless files |
364 |
- sed -i -e '/koi-/d' -e '/win-/d' auto/install || die |
365 |
- |
366 |
- # don't install to /etc/nginx/ if not in use |
367 |
- local module |
368 |
- for module in fastcgi scgi uwsgi ; do |
369 |
- if ! use nginx_modules_http_${module}; then |
370 |
- sed -i -e "/${module}/d" auto/install || die |
371 |
- fi |
372 |
- done |
373 |
- |
374 |
- epatch_user |
375 |
-} |
376 |
- |
377 |
-src_configure() { |
378 |
- # mod_security needs to generate nginx/modsecurity/config before including it |
379 |
- if use nginx_modules_http_security; then |
380 |
- cd "${HTTP_SECURITY_MODULE_WD}" |
381 |
- if use luajit ; then |
382 |
- sed -i \ |
383 |
- -e 's|^\(LUA_PKGNAMES\)=.*|\1="luajit"|' \ |
384 |
- configure || die |
385 |
- fi |
386 |
- ./configure \ |
387 |
- --enable-standalone-module \ |
388 |
- $(use_enable pcre-jit) \ |
389 |
- $(use_with nginx_modules_http_lua lua) || die "configure failed for mod_security" |
390 |
- fi |
391 |
- |
392 |
- cd "${S}" |
393 |
- |
394 |
- local myconf= http_enabled= mail_enabled= |
395 |
- |
396 |
- use aio && myconf+=" --with-file-aio --with-aio_module" |
397 |
- use debug && myconf+=" --with-debug" |
398 |
- use ipv6 && myconf+=" --with-ipv6" |
399 |
- use libatomic && myconf+=" --with-libatomic" |
400 |
- use pcre && myconf+=" --with-pcre" |
401 |
- use pcre-jit && myconf+=" --with-pcre-jit" |
402 |
- |
403 |
- # HTTP modules |
404 |
- for mod in $NGINX_MODULES_STD; do |
405 |
- if use nginx_modules_http_${mod}; then |
406 |
- http_enabled=1 |
407 |
- else |
408 |
- myconf+=" --without-http_${mod}_module" |
409 |
- fi |
410 |
- done |
411 |
- |
412 |
- for mod in $NGINX_MODULES_OPT; do |
413 |
- if use nginx_modules_http_${mod}; then |
414 |
- http_enabled=1 |
415 |
- myconf+=" --with-http_${mod}_module" |
416 |
- fi |
417 |
- done |
418 |
- |
419 |
- if use nginx_modules_http_fastcgi; then |
420 |
- myconf+=" --with-http_realip_module" |
421 |
- fi |
422 |
- |
423 |
- # third-party modules |
424 |
- if use nginx_modules_http_upload_progress; then |
425 |
- http_enabled=1 |
426 |
- myconf+=" --add-module=${HTTP_UPLOAD_PROGRESS_MODULE_WD}" |
427 |
- fi |
428 |
- |
429 |
- if use nginx_modules_http_headers_more; then |
430 |
- http_enabled=1 |
431 |
- myconf+=" --add-module=${HTTP_HEADERS_MORE_MODULE_WD}" |
432 |
- fi |
433 |
- |
434 |
- if use nginx_modules_http_cache_purge; then |
435 |
- http_enabled=1 |
436 |
- myconf+=" --add-module=${HTTP_CACHE_PURGE_MODULE_WD}" |
437 |
- fi |
438 |
- |
439 |
- if use nginx_modules_http_slowfs_cache; then |
440 |
- http_enabled=1 |
441 |
- myconf+=" --add-module=${HTTP_SLOWFS_CACHE_MODULE_WD}" |
442 |
- fi |
443 |
- |
444 |
- if use nginx_modules_http_fancyindex; then |
445 |
- http_enabled=1 |
446 |
- myconf+=" --add-module=${HTTP_FANCYINDEX_MODULE_WD}" |
447 |
- fi |
448 |
- |
449 |
- if use nginx_modules_http_lua; then |
450 |
- http_enabled=1 |
451 |
- if use luajit; then |
452 |
- export LUAJIT_LIB=$(pkg-config --variable libdir luajit) |
453 |
- export LUAJIT_INC=$(pkg-config --variable includedir luajit) |
454 |
- else |
455 |
- export LUA_LIB=$(pkg-config --variable libdir lua) |
456 |
- export LUA_INC=$(pkg-config --variable includedir lua) |
457 |
- fi |
458 |
- myconf+=" --add-module=${DEVEL_KIT_MODULE_WD}" |
459 |
- myconf+=" --add-module=${HTTP_LUA_MODULE_WD}" |
460 |
- fi |
461 |
- |
462 |
- if use nginx_modules_http_auth_pam; then |
463 |
- http_enabled=1 |
464 |
- myconf+=" --add-module=${HTTP_AUTH_PAM_MODULE_WD}" |
465 |
- fi |
466 |
- |
467 |
- if use nginx_modules_http_upstream_check; then |
468 |
- http_enabled=1 |
469 |
- myconf+=" --add-module=${HTTP_UPSTREAM_CHECK_MODULE_WD}" |
470 |
- fi |
471 |
- |
472 |
- if use nginx_modules_http_metrics; then |
473 |
- http_enabled=1 |
474 |
- myconf+=" --add-module=${HTTP_METRICS_MODULE_WD}" |
475 |
- fi |
476 |
- |
477 |
- if use nginx_modules_http_naxsi ; then |
478 |
- http_enabled=1 |
479 |
- myconf+=" --add-module=${HTTP_NAXSI_MODULE_WD}" |
480 |
- fi |
481 |
- |
482 |
- if use rtmp ; then |
483 |
- http_enabled=1 |
484 |
- myconf+=" --add-module=${RTMP_MODULE_WD}" |
485 |
- fi |
486 |
- |
487 |
- if use nginx_modules_http_dav_ext ; then |
488 |
- http_enabled=1 |
489 |
- myconf+=" --add-module=${HTTP_DAV_EXT_MODULE_WD}" |
490 |
- fi |
491 |
- |
492 |
- if use nginx_modules_http_echo ; then |
493 |
- http_enabled=1 |
494 |
- myconf+=" --add-module=${HTTP_ECHO_MODULE_WD}" |
495 |
- fi |
496 |
- |
497 |
- if use nginx_modules_http_security ; then |
498 |
- http_enabled=1 |
499 |
- myconf+=" --add-module=${HTTP_SECURITY_MODULE_WD}/nginx/modsecurity" |
500 |
- fi |
501 |
- |
502 |
- if use nginx_modules_http_push_stream ; then |
503 |
- http_enabled=1 |
504 |
- myconf+=" --add-module=${HTTP_PUSH_STREAM_MODULE_WD}" |
505 |
- fi |
506 |
- |
507 |
- if use nginx_modules_http_sticky ; then |
508 |
- http_enabled=1 |
509 |
- myconf+=" --add-module=${HTTP_STICKY_MODULE_WD}" |
510 |
- fi |
511 |
- |
512 |
- if use nginx_modules_http_ajp ; then |
513 |
- http_enabled=1 |
514 |
- myconf+=" --add-module=${HTTP_AJP_MODULE_WD}" |
515 |
- fi |
516 |
- |
517 |
- if use nginx_modules_http_mogilefs ; then |
518 |
- http_enabled=1 |
519 |
- myconf+=" --add-module=${HTTP_MOGILEFS_MODULE_WD}" |
520 |
- fi |
521 |
- |
522 |
- if use http || use http-cache; then |
523 |
- http_enabled=1 |
524 |
- fi |
525 |
- |
526 |
- if [ $http_enabled ]; then |
527 |
- use http-cache || myconf+=" --without-http-cache" |
528 |
- use ssl && myconf+=" --with-http_ssl_module" |
529 |
- else |
530 |
- myconf+=" --without-http --without-http-cache" |
531 |
- fi |
532 |
- |
533 |
- # MAIL modules |
534 |
- for mod in $NGINX_MODULES_MAIL; do |
535 |
- if use nginx_modules_mail_${mod}; then |
536 |
- mail_enabled=1 |
537 |
- else |
538 |
- myconf+=" --without-mail_${mod}_module" |
539 |
- fi |
540 |
- done |
541 |
- |
542 |
- if [ $mail_enabled ]; then |
543 |
- myconf+=" --with-mail" |
544 |
- use ssl && myconf+=" --with-mail_ssl_module" |
545 |
- fi |
546 |
- |
547 |
- # custom modules |
548 |
- for mod in $NGINX_ADD_MODULES; do |
549 |
- myconf+=" --add-module=${mod}" |
550 |
- done |
551 |
- |
552 |
- # https://bugs.gentoo.org/286772 |
553 |
- export LANG=C LC_ALL=C |
554 |
- tc-export CC |
555 |
- |
556 |
- if ! use prefix; then |
557 |
- myconf+=" --user=${PN} --group=${PN}" |
558 |
- fi |
559 |
- |
560 |
- ./configure \ |
561 |
- --prefix="${EPREFIX}"/usr \ |
562 |
- --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \ |
563 |
- --error-log-path="${EPREFIX}"/var/log/${PN}/error_log \ |
564 |
- --pid-path="${EPREFIX}"/run/${PN}.pid \ |
565 |
- --lock-path="${EPREFIX}"/run/lock/${PN}.lock \ |
566 |
- --with-cc-opt="-I${EROOT}usr/include" \ |
567 |
- --with-ld-opt="-L${EROOT}usr/$(get_libdir)" \ |
568 |
- --http-log-path="${EPREFIX}"/var/log/${PN}/access_log \ |
569 |
- --http-client-body-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/client \ |
570 |
- --http-proxy-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/proxy \ |
571 |
- --http-fastcgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/fastcgi \ |
572 |
- --http-scgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/scgi \ |
573 |
- --http-uwsgi-temp-path="${EPREFIX}${NGINX_HOME_TMP}"/uwsgi \ |
574 |
- ${myconf} || die "configure failed" |
575 |
- |
576 |
- # A purely cosmetic change that makes nginx -V more readable. This can be |
577 |
- # good if people outside the gentoo community would troubleshoot and |
578 |
- # question the users setup. |
579 |
- sed -i -e "s|${WORKDIR}|external_module|g" objs/ngx_auto_config.h || die |
580 |
-} |
581 |
- |
582 |
-src_compile() { |
583 |
- use nginx_modules_http_security && emake -C "${HTTP_SECURITY_MODULE_WD}" |
584 |
- |
585 |
- # https://bugs.gentoo.org/286772 |
586 |
- export LANG=C LC_ALL=C |
587 |
- emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" |
588 |
-} |
589 |
- |
590 |
-src_install() { |
591 |
- emake DESTDIR="${D%/}" install |
592 |
- |
593 |
- cp "${FILESDIR}"/nginx.conf "${ED}"etc/nginx/nginx.conf || die |
594 |
- |
595 |
- newinitd "${FILESDIR}"/nginx.initd-r2 nginx |
596 |
- |
597 |
- systemd_newunit "${FILESDIR}"/nginx.service-r1 nginx.service |
598 |
- |
599 |
- doman man/nginx.8 |
600 |
- dodoc CHANGES* README |
601 |
- |
602 |
- # just keepdir. do not copy the default htdocs files (bug #449136) |
603 |
- keepdir /var/www/localhost |
604 |
- rm -rf "${D}"usr/html || die |
605 |
- |
606 |
- # set up a list of directories to keep |
607 |
- local keepdir_list="${NGINX_HOME_TMP}"/client |
608 |
- local module |
609 |
- for module in proxy fastcgi scgi uwsgi; do |
610 |
- use nginx_modules_http_${module} && keepdir_list+=" ${NGINX_HOME_TMP}/${module}" |
611 |
- done |
612 |
- |
613 |
- keepdir /var/log/nginx ${keepdir_list} |
614 |
- |
615 |
- # this solves a problem with SELinux where nginx doesn't see the directories |
616 |
- # as root and tries to create them as nginx |
617 |
- fperms 0750 "${NGINX_HOME_TMP}" |
618 |
- fowners ${PN}:0 "${NGINX_HOME_TMP}" |
619 |
- |
620 |
- fperms 0700 /var/log/nginx ${keepdir_list} |
621 |
- fowners ${PN}:${PN} /var/log/nginx ${keepdir_list} |
622 |
- |
623 |
- # logrotate |
624 |
- insinto /etc/logrotate.d |
625 |
- newins "${FILESDIR}"/nginx.logrotate-r1 nginx |
626 |
- |
627 |
- if use nginx_modules_http_perl; then |
628 |
- cd "${S}"/objs/src/http/modules/perl/ |
629 |
- emake DESTDIR="${D}" INSTALLDIRS=vendor |
630 |
- perl_delete_localpod |
631 |
- fi |
632 |
- |
633 |
- if use nginx_modules_http_cache_purge; then |
634 |
- docinto ${HTTP_CACHE_PURGE_MODULE_P} |
635 |
- dodoc "${HTTP_CACHE_PURGE_MODULE_WD}"/{CHANGES,README.md,TODO.md} |
636 |
- fi |
637 |
- |
638 |
- if use nginx_modules_http_slowfs_cache; then |
639 |
- docinto ${HTTP_SLOWFS_CACHE_MODULE_P} |
640 |
- dodoc "${HTTP_SLOWFS_CACHE_MODULE_WD}"/{CHANGES,README.md} |
641 |
- fi |
642 |
- |
643 |
- if use nginx_modules_http_fancyindex; then |
644 |
- docinto ${HTTP_FANCYINDEX_MODULE_P} |
645 |
- dodoc "${HTTP_FANCYINDEX_MODULE_WD}"/README.rst |
646 |
- fi |
647 |
- |
648 |
- if use nginx_modules_http_lua; then |
649 |
- docinto ${HTTP_LUA_MODULE_P} |
650 |
- dodoc "${HTTP_LUA_MODULE_WD}"/{Changes,README.markdown} |
651 |
- fi |
652 |
- |
653 |
- if use nginx_modules_http_auth_pam; then |
654 |
- docinto ${HTTP_AUTH_PAM_MODULE_P} |
655 |
- dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README.md,ChangeLog} |
656 |
- fi |
657 |
- |
658 |
- if use nginx_modules_http_upstream_check; then |
659 |
- docinto ${HTTP_UPSTREAM_CHECK_MODULE_P} |
660 |
- dodoc "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/{README,CHANGES} |
661 |
- fi |
662 |
- |
663 |
-# README.md is still empty |
664 |
-# if use nginx_modules_http_metrics; then |
665 |
-# docinto ${HTTP_METRICS_MODULE_P} |
666 |
-# dodoc "${HTTP_METRICS_MODULE_WD}"/README.md |
667 |
-# fi |
668 |
- |
669 |
- if use nginx_modules_http_naxsi; then |
670 |
- insinto /etc/nginx |
671 |
- doins "${HTTP_NAXSI_MODULE_WD}"/../naxsi_config/naxsi_core.rules |
672 |
- fi |
673 |
- |
674 |
- if use rtmp; then |
675 |
- docinto ${RTMP_MODULE_P} |
676 |
- dodoc "${RTMP_MODULE_WD}"/{AUTHORS,README.md,stat.xsl} |
677 |
- fi |
678 |
- |
679 |
- if use nginx_modules_http_dav_ext; then |
680 |
- docinto ${HTTP_DAV_EXT_MODULE_P} |
681 |
- dodoc "${HTTP_DAV_EXT_MODULE_WD}"/README |
682 |
- fi |
683 |
- |
684 |
- if use nginx_modules_http_echo; then |
685 |
- docinto ${HTTP_ECHO_MODULE_P} |
686 |
- dodoc "${HTTP_ECHO_MODULE_WD}"/{README.markdown,doc/HttpEchoModule.wiki} |
687 |
- fi |
688 |
- |
689 |
- if use nginx_modules_http_security; then |
690 |
- docinto ${HTTP_SECURITY_MODULE_P} |
691 |
- dodoc "${HTTP_SECURITY_MODULE_WD}"/{CHANGES,README.TXT,authors.txt} |
692 |
- fi |
693 |
- |
694 |
- if use nginx_modules_http_push_stream; then |
695 |
- docinto ${HTTP_PUSH_STREAM_MODULE_P} |
696 |
- dodoc "${HTTP_PUSH_STREAM_MODULE_WD}"/{AUTHORS,CHANGELOG.textile,README.textile} |
697 |
- fi |
698 |
- |
699 |
- if use nginx_modules_http_sticky; then |
700 |
- docinto ${HTTP_STICKY_MODULE_P} |
701 |
- dodoc "${HTTP_STICKY_MODULE_WD}"/{README.md,Changelog.txt,docs/sticky.pdf} |
702 |
- fi |
703 |
- |
704 |
- if use nginx_modules_http_ajp; then |
705 |
- docinto ${HTTP_AJP_MODULE_P} |
706 |
- dodoc "${HTTP_AJP_MODULE_WD}"/README |
707 |
- fi |
708 |
-} |
709 |
- |
710 |
-pkg_postinst() { |
711 |
- if use ssl; then |
712 |
- if [ ! -f "${EROOT}"etc/ssl/${PN}/${PN}.key ]; then |
713 |
- install_cert /etc/ssl/${PN}/${PN} |
714 |
- use prefix || chown ${PN}:${PN} "${EROOT}"etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
715 |
- fi |
716 |
- fi |
717 |
- |
718 |
- if use nginx_modules_http_lua && use nginx_modules_http_spdy; then |
719 |
- ewarn "Lua 3rd party module author warns against using ${P} with" |
720 |
- ewarn "NGINX_MODULES_HTTP=\"lua spdy\". For more info, see http://git.io/OldLsg" |
721 |
- fi |
722 |
- |
723 |
- # This is the proper fix for bug #458726/#469094, resp. CVE-2013-0337 for |
724 |
- # existing installations |
725 |
- local fix_perms=0 |
726 |
- |
727 |
- for rv in ${REPLACING_VERSIONS} ; do |
728 |
- version_compare ${rv} 1.4.1-r2 |
729 |
- [[ $? -eq 1 ]] && fix_perms=1 |
730 |
- done |
731 |
- |
732 |
- if [[ $fix_perms -eq 1 ]] ; then |
733 |
- ewarn "To fix a security bug (CVE-2013-0337, bug #458726) had the following" |
734 |
- ewarn "directories the world-readable bit removed (if set):" |
735 |
- ewarn " ${EPREFIX}/var/log/nginx" |
736 |
- ewarn " ${EPREFIX}${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi}" |
737 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
738 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
739 |
- ewarn "Furthermore nginx' temp directories got moved to ${NGINX_HOME_TMP}" |
740 |
- chmod -f o-rwx "${EPREFIX}"/var/log/nginx "${EPREFIX}${NGINX_HOME_TMP}"/{,client,proxy,fastcgi,scgi,uwsgi} |
741 |
- fi |
742 |
- |
743 |
- # If the nginx user can't change into or read the dir, display a warning. |
744 |
- # If su is not available we display the warning nevertheless since we can't check properly |
745 |
- su -s /bin/sh -c 'cd /var/log/nginx/ && ls' nginx >&/dev/null |
746 |
- if [ $? -ne 0 ] ; then |
747 |
- ewarn "Please make sure that the nginx user or group has at least" |
748 |
- ewarn "'rx' permissions on /var/log/nginx (default on a fresh install)" |
749 |
- ewarn "Otherwise you end up with empty log files after a logrotate." |
750 |
- fi |
751 |
-} |
752 |
|
753 |
diff --git a/www-servers/nginx/nginx-1.7.6.ebuild b/www-servers/nginx/nginx-1.7.6.ebuild |
754 |
deleted file mode 100644 |
755 |
index 9829452..0000000 |
756 |
--- a/www-servers/nginx/nginx-1.7.6.ebuild |
757 |
+++ /dev/null |
758 |
@@ -1,681 +0,0 @@ |
759 |
-# Copyright 1999-2015 Gentoo Foundation |
760 |
-# Distributed under the terms of the GNU General Public License v2 |
761 |
-# $Id$ |
762 |
- |
763 |
-EAPI="5" |
764 |
- |
765 |
-# Maintainer notes: |
766 |
-# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite |
767 |
-# - any http-module activates the main http-functionality and overrides USE=-http |
768 |
-# - keep the following requirements in mind before adding external modules: |
769 |
-# * alive upstream |
770 |
-# * sane packaging |
771 |
-# * builds cleanly |
772 |
-# * does not need a patch for nginx core |
773 |
-# - TODO: test the google-perftools module (included in vanilla tarball) |
774 |
- |
775 |
-# prevent perl-module from adding automagic perl DEPENDs |
776 |
-GENTOO_DEPEND_ON_PERL="no" |
777 |
- |
778 |
-# devel_kit (https://github.com/simpl/ngx_devel_kit, BSD license) |
779 |
-DEVEL_KIT_MODULE_PV="0.2.19" |
780 |
-DEVEL_KIT_MODULE_P="ngx_devel_kit-${DEVEL_KIT_MODULE_PV}-r1" |
781 |
-DEVEL_KIT_MODULE_URI="https://github.com/simpl/ngx_devel_kit/archive/v${DEVEL_KIT_MODULE_PV}.tar.gz" |
782 |
-DEVEL_KIT_MODULE_WD="${WORKDIR}/ngx_devel_kit-${DEVEL_KIT_MODULE_PV}" |
783 |
- |
784 |
-# http_uploadprogress (https://github.com/masterzen/nginx-upload-progress-module, BSD-2 license) |
785 |
-HTTP_UPLOAD_PROGRESS_MODULE_PV="0.9.1" |
786 |
-HTTP_UPLOAD_PROGRESS_MODULE_P="ngx_http_upload_progress-${HTTP_UPLOAD_PROGRESS_MODULE_PV}-r1" |
787 |
-HTTP_UPLOAD_PROGRESS_MODULE_URI="https://github.com/masterzen/nginx-upload-progress-module/archive/v${HTTP_UPLOAD_PROGRESS_MODULE_PV}.tar.gz" |
788 |
-HTTP_UPLOAD_PROGRESS_MODULE_WD="${WORKDIR}/nginx-upload-progress-module-${HTTP_UPLOAD_PROGRESS_MODULE_PV}" |
789 |
- |
790 |
-# http_headers_more (https://github.com/agentzh/headers-more-nginx-module, BSD license) |
791 |
-HTTP_HEADERS_MORE_MODULE_PV="0.25" |
792 |
-HTTP_HEADERS_MORE_MODULE_P="ngx_http_headers_more-${HTTP_HEADERS_MORE_MODULE_PV}-r1" |
793 |
-HTTP_HEADERS_MORE_MODULE_URI="https://github.com/agentzh/headers-more-nginx-module/archive/v${HTTP_HEADERS_MORE_MODULE_PV}.tar.gz" |
794 |
-HTTP_HEADERS_MORE_MODULE_WD="${WORKDIR}/headers-more-nginx-module-${HTTP_HEADERS_MORE_MODULE_PV}" |
795 |
- |
796 |
-# http_cache_purge (http://labs.frickle.com/nginx_ngx_cache_purge/, BSD-2 license) |
797 |
-HTTP_CACHE_PURGE_MODULE_PV="2.1" |
798 |
-HTTP_CACHE_PURGE_MODULE_P="ngx_http_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
799 |
-HTTP_CACHE_PURGE_MODULE_URI="http://labs.frickle.com/files/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}.tar.gz" |
800 |
-HTTP_CACHE_PURGE_MODULE_WD="${WORKDIR}/ngx_cache_purge-${HTTP_CACHE_PURGE_MODULE_PV}" |
801 |
- |
802 |
-# http_slowfs_cache (http://labs.frickle.com/nginx_ngx_slowfs_cache/, BSD-2 license) |
803 |
-HTTP_SLOWFS_CACHE_MODULE_PV="1.10" |
804 |
-HTTP_SLOWFS_CACHE_MODULE_P="ngx_http_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
805 |
-HTTP_SLOWFS_CACHE_MODULE_URI="http://labs.frickle.com/files/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}.tar.gz" |
806 |
-HTTP_SLOWFS_CACHE_MODULE_WD="${WORKDIR}/ngx_slowfs_cache-${HTTP_SLOWFS_CACHE_MODULE_PV}" |
807 |
- |
808 |
-# http_fancyindex (https://github.com/aperezdc/ngx-fancyindex, BSD license) |
809 |
-HTTP_FANCYINDEX_MODULE_PV="0.3.4" |
810 |
-HTTP_FANCYINDEX_MODULE_P="ngx_http_fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
811 |
-HTTP_FANCYINDEX_MODULE_URI="https://github.com/aperezdc/ngx-fancyindex/archive/v${HTTP_FANCYINDEX_MODULE_PV}.tar.gz" |
812 |
-HTTP_FANCYINDEX_MODULE_WD="${WORKDIR}/ngx-fancyindex-${HTTP_FANCYINDEX_MODULE_PV}" |
813 |
- |
814 |
-# http_lua (https://github.com/chaoslawful/lua-nginx-module, BSD license) |
815 |
-HTTP_LUA_MODULE_PV="0.9.12" |
816 |
-HTTP_LUA_MODULE_P="ngx_http_lua-${HTTP_LUA_MODULE_PV}" |
817 |
-HTTP_LUA_MODULE_URI="https://github.com/chaoslawful/lua-nginx-module/archive/v${HTTP_LUA_MODULE_PV}.tar.gz" |
818 |
-HTTP_LUA_MODULE_WD="${WORKDIR}/lua-nginx-module-${HTTP_LUA_MODULE_PV}" |
819 |
- |
820 |
-# http_auth_pam (http://web.iti.upv.es/~sto/nginx/, BSD-2 license) |
821 |
-HTTP_AUTH_PAM_MODULE_PV="1.3" |
822 |
-HTTP_AUTH_PAM_MODULE_P="ngx_http_auth_pam-${HTTP_AUTH_PAM_MODULE_PV}" |
823 |
-HTTP_AUTH_PAM_MODULE_URI="http://web.iti.upv.es/~sto/nginx/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}.tgz" |
824 |
-HTTP_AUTH_PAM_MODULE_WD="${WORKDIR}/ngx_http_auth_pam_module-${HTTP_AUTH_PAM_MODULE_PV}" |
825 |
- |
826 |
-# http_upstream_check (https://github.com/yaoweibin/nginx_upstream_check_module, BSD license) |
827 |
-HTTP_UPSTREAM_CHECK_MODULE_PV="0.1.9" |
828 |
-HTTP_UPSTREAM_CHECK_MODULE_P="ngx_http_upstream_check-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
829 |
-HTTP_UPSTREAM_CHECK_MODULE_URI="https://github.com/yaoweibin/nginx_upstream_check_module/archive/v${HTTP_UPSTREAM_CHECK_MODULE_PV}.tar.gz" |
830 |
-HTTP_UPSTREAM_CHECK_MODULE_WD="${WORKDIR}/nginx_upstream_check_module-${HTTP_UPSTREAM_CHECK_MODULE_PV}" |
831 |
- |
832 |
-# http_metrics (https://github.com/zenops/ngx_metrics, BSD license) |
833 |
-HTTP_METRICS_MODULE_PV="0.1.1" |
834 |
-HTTP_METRICS_MODULE_P="ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
835 |
-HTTP_METRICS_MODULE_URI="https://github.com/madvertise/ngx_metrics/archive/v${HTTP_METRICS_MODULE_PV}.tar.gz" |
836 |
-HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}" |
837 |
- |
838 |
-# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+) |
839 |
-HTTP_NAXSI_MODULE_PV="0.53-2" |
840 |
-HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}" |
841 |
-HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz" |
842 |
-HTTP_NAXSI_MODULE_WD="${WORKDIR}/naxsi-${HTTP_NAXSI_MODULE_PV}/naxsi_src" |
843 |
- |
844 |
-# nginx-rtmp-module (https://github.com/arut/nginx-rtmp-module, BSD license) |
845 |
-RTMP_MODULE_PV="1.1.6" |
846 |
-RTMP_MODULE_P="ngx_rtmp-${RTMP_MODULE_PV}" |
847 |
-RTMP_MODULE_URI="https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_MODULE_PV}.tar.gz" |
848 |
-RTMP_MODULE_WD="${WORKDIR}/nginx-rtmp-module-${RTMP_MODULE_PV}" |
849 |
- |
850 |
-# nginx-dav-ext-module (https://github.com/arut/nginx-dav-ext-module, BSD license) |
851 |
-HTTP_DAV_EXT_MODULE_PV="0.0.3" |
852 |
-HTTP_DAV_EXT_MODULE_P="ngx_http_dav_ext-${HTTP_DAV_EXT_MODULE_PV}" |
853 |
-HTTP_DAV_EXT_MODULE_URI="https://github.com/arut/nginx-dav-ext-module/archive/v${HTTP_DAV_EXT_MODULE_PV}.tar.gz" |
854 |
-HTTP_DAV_EXT_MODULE_WD="${WORKDIR}/nginx-dav-ext-module-${HTTP_DAV_EXT_MODULE_PV}" |
855 |
- |
856 |
-# echo-nginx-module (https://github.com/agentzh/echo-nginx-module, BSD license) |
857 |
-HTTP_ECHO_MODULE_PV="0.56" |
858 |
-HTTP_ECHO_MODULE_P="ngx_http_echo-${HTTP_ECHO_MODULE_PV}" |
859 |
-HTTP_ECHO_MODULE_URI="https://github.com/agentzh/echo-nginx-module/archive/v${HTTP_ECHO_MODULE_PV}.tar.gz" |
860 |
-HTTP_ECHO_MODULE_WD="${WORKDIR}/echo-nginx-module-${HTTP_ECHO_MODULE_PV}" |
861 |
- |
862 |
-# mod_security for nginx (https://modsecurity.org/, Apache-2.0) |
863 |
-# keep the MODULE_P here consistent with upstream to avoid tarball duplication |
864 |
-HTTP_SECURITY_MODULE_PV="2.8.0" |
865 |
-HTTP_SECURITY_MODULE_P="modsecurity-apache_${HTTP_SECURITY_MODULE_PV}" |
866 |
-HTTP_SECURITY_MODULE_URI="https://www.modsecurity.org/tarball/${HTTP_SECURITY_MODULE_PV}/${HTTP_SECURITY_MODULE_P}.tar.gz" |
867 |
-HTTP_SECURITY_MODULE_WD="${WORKDIR}/${HTTP_SECURITY_MODULE_P}" |
868 |
- |
869 |
-# push-stream-module (https://github.com/wandenberg/nginx-push-stream-module, GPL-3) |
870 |
-HTTP_PUSH_STREAM_MODULE_PV="0.4.0" |
871 |
-HTTP_PUSH_STREAM_MODULE_P="ngx_http_push_stream-${HTTP_PUSH_STREAM_MODULE_PV}" |
872 |
-HTTP_PUSH_STREAM_MODULE_URI="https://github.com/wandenberg/nginx-push-stream-module/archive/${HTTP_PUSH_STREAM_MODULE_PV}.tar.gz" |
873 |
-HTTP_PUSH_STREAM_MODULE_WD="${WORKDIR}/nginx-push-stream-module-${HTTP_PUSH_STREAM_MODULE_PV}" |
874 |
- |
875 |
-# sticky-module (https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng, BSD-2) |
876 |
-HTTP_STICKY_MODULE_PV="1.2.5" |
877 |
-HTTP_STICKY_MODULE_P="nginx_http_sticky_module_ng-${HTTP_STICKY_MODULE_PV}" |
878 |
-HTTP_STICKY_MODULE_URI="https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/get/${HTTP_STICKY_MODULE_PV}.tar.bz2" |
879 |
-HTTP_STICKY_MODULE_WD="${WORKDIR}/nginx-goodies-nginx-sticky-module-ng-bd312d586752" |
880 |
- |
881 |
-# ajp-module (https://github.com/yaoweibin/nginx_ajp_module, BSD-2) |
882 |
-HTTP_AJP_MODULE_PV="0.3.0" |
883 |
-HTTP_AJP_MODULE_P="ngx_http_ajp_module-${HTTP_AJP_MODULE_PV}" |
884 |
-HTTP_AJP_MODULE_URI="https://github.com/yaoweibin/nginx_ajp_module/archive/v${HTTP_AJP_MODULE_PV}.tar.gz" |
885 |
-HTTP_AJP_MODULE_WD="${WORKDIR}/nginx_ajp_module-${HTTP_AJP_MODULE_PV}" |
886 |
- |
887 |
-# mogilefs-module (http://www.grid.net.ru/nginx/mogilefs.en.html, BSD-2) |
888 |
-HTTP_MOGILEFS_MODULE_PV="1.0.4" |
889 |
-HTTP_MOGILEFS_MODULE_P="ngx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
890 |
-HTTP_MOGILEFS_MODULE_URI="http://www.grid.net.ru/nginx/download/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}.tar.gz" |
891 |
-HTTP_MOGILEFS_MODULE_WD="${WORKDIR}/nginx_mogilefs_module-${HTTP_MOGILEFS_MODULE_PV}" |
892 |
- |
893 |
-inherit eutils ssl-cert toolchain-funcs perl-module flag-o-matic user systemd versionator multilib |
894 |
- |
895 |
-DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
896 |
-HOMEPAGE="http://nginx.org" |
897 |
-SRC_URI="http://nginx.org/download/${P}.tar.gz |
898 |
- ${DEVEL_KIT_MODULE_URI} -> ${DEVEL_KIT_MODULE_P}.tar.gz |
899 |
- nginx_modules_http_upload_progress? ( ${HTTP_UPLOAD_PROGRESS_MODULE_URI} -> ${HTTP_UPLOAD_PROGRESS_MODULE_P}.tar.gz ) |
900 |
- nginx_modules_http_headers_more? ( ${HTTP_HEADERS_MORE_MODULE_URI} -> ${HTTP_HEADERS_MORE_MODULE_P}.tar.gz ) |
901 |
- nginx_modules_http_cache_purge? ( ${HTTP_CACHE_PURGE_MODULE_URI} -> ${HTTP_CACHE_PURGE_MODULE_P}.tar.gz ) |
902 |
- nginx_modules_http_slowfs_cache? ( ${HTTP_SLOWFS_CACHE_MODULE_URI} -> ${HTTP_SLOWFS_CACHE_MODULE_P}.tar.gz ) |
903 |
- nginx_modules_http_fancyindex? ( ${HTTP_FANCYINDEX_MODULE_URI} -> ${HTTP_FANCYINDEX_MODULE_P}.tar.gz ) |
904 |
- nginx_modules_http_lua? ( ${HTTP_LUA_MODULE_URI} -> ${HTTP_LUA_MODULE_P}.tar.gz ) |
905 |
- nginx_modules_http_auth_pam? ( ${HTTP_AUTH_PAM_MODULE_URI} -> ${HTTP_AUTH_PAM_MODULE_P}.tar.gz ) |
906 |
- nginx_modules_http_upstream_check? ( ${HTTP_UPSTREAM_CHECK_MODULE_URI} -> ${HTTP_UPSTREAM_CHECK_MODULE_P}.tar.gz ) |
907 |
- nginx_modules_http_metrics? ( ${HTTP_METRICS_MODULE_URI} -> ${HTTP_METRICS_MODULE_P}.tar.gz ) |
908 |
- nginx_modules_http_naxsi? ( ${HTTP_NAXSI_MODULE_URI} -> ${HTTP_NAXSI_MODULE_P}.tar.gz ) |
909 |
- rtmp? ( ${RTMP_MODULE_URI} -> ${RTMP_MODULE_P}.tar.gz ) |
910 |
- nginx_modules_http_dav_ext? ( ${HTTP_DAV_EXT_MODULE_URI} -> ${HTTP_DAV_EXT_MODULE_P}.tar.gz ) |
911 |
- nginx_modules_http_echo? ( ${HTTP_ECHO_MODULE_URI} -> ${HTTP_ECHO_MODULE_P}.tar.gz ) |
912 |
- nginx_modules_http_security? ( ${HTTP_SECURITY_MODULE_URI} -> ${HTTP_SECURITY_MODULE_P}.tar.gz ) |
913 |
- nginx_modules_http_push_stream? ( ${HTTP_PUSH_STREAM_MODULE_URI} -> ${HTTP_PUSH_STREAM_MODULE_P}.tar.gz ) |
914 |
- nginx_modules_http_sticky? ( ${HTTP_STICKY_MODULE_URI} -> ${HTTP_STICKY_MODULE_P}.tar.bz2 ) |
915 |
- nginx_modules_http_ajp? ( ${HTTP_AJP_MODULE_URI} -> ${HTTP_AJP_MODULE_P}.tar.gz ) |
916 |
- nginx_modules_http_mogilefs? ( ${HTTP_MOGILEFS_MODULE_URI} -> ${HTTP_MOGILEFS_MODULE_P}.tar.gz )" |
917 |
- |
918 |
-LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+ |
919 |
- nginx_modules_http_security? ( Apache-2.0 ) |
920 |
- nginx_modules_http_push_stream? ( GPL-3 )" |
921 |
- |
922 |
-SLOT="0" |
923 |
-KEYWORDS="amd64 ~arm ~ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
924 |
- |
925 |
-NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi |
926 |
-geo gzip limit_req limit_conn map memcached proxy referer rewrite scgi ssi |
927 |
-split_clients upstream_ip_hash userid uwsgi" |
928 |
-NGINX_MODULES_OPT="addition auth_request dav degradation flv geoip gunzip gzip_static |
929 |
-image_filter mp4 perl random_index realip secure_link spdy stub_status sub xslt" |
930 |
-NGINX_MODULES_MAIL="imap pop3 smtp" |
931 |
-NGINX_MODULES_3RD=" |
932 |
- http_upload_progress |
933 |
- http_headers_more |
934 |
- http_cache_purge |
935 |
- http_slowfs_cache |
936 |
- http_fancyindex |
937 |
- http_lua |
938 |
- http_auth_pam |
939 |
- http_upstream_check |
940 |
- http_metrics |
941 |
- http_naxsi |
942 |
- http_dav_ext |
943 |
- http_echo |
944 |
- http_security |
945 |
- http_push_stream |
946 |
- http_sticky |
947 |
- http_ajp |
948 |
- http_mogilefs" |
949 |
- |
950 |
-IUSE="aio debug +http +http-cache ipv6 libatomic luajit +pcre pcre-jit rtmp |
951 |
-selinux ssl userland_GNU vim-syntax" |
952 |
- |
953 |
-for mod in $NGINX_MODULES_STD; do |
954 |
- IUSE="${IUSE} +nginx_modules_http_${mod}" |
955 |
-done |
956 |
- |
957 |
-for mod in $NGINX_MODULES_OPT; do |
958 |
- IUSE="${IUSE} nginx_modules_http_${mod}" |
959 |
-done |
960 |
- |
961 |
-for mod in $NGINX_MODULES_MAIL; do |
962 |
- IUSE="${IUSE} nginx_modules_mail_${mod}" |
963 |
-done |
964 |
- |
965 |
-for mod in $NGINX_MODULES_3RD; do |
966 |
- IUSE="${IUSE} nginx_modules_${mod}" |
967 |
-done |
968 |
- |
969 |
-CDEPEND=" |
970 |
- pcre? ( >=dev-libs/libpcre-4.2 ) |
971 |
- pcre-jit? ( >=dev-libs/libpcre-8.20[jit] ) |
972 |
- ssl? ( dev-libs/openssl:0= ) |
973 |
- http-cache? ( userland_GNU? ( dev-libs/openssl:0= ) ) |
974 |
- nginx_modules_http_geoip? ( dev-libs/geoip ) |
975 |
- nginx_modules_http_gunzip? ( sys-libs/zlib ) |
976 |
- nginx_modules_http_gzip? ( sys-libs/zlib ) |
977 |
- nginx_modules_http_gzip_static? ( sys-libs/zlib ) |
978 |
- nginx_modules_http_image_filter? ( media-libs/gd[jpeg,png] ) |
979 |
- nginx_modules_http_perl? ( >=dev-lang/perl-5.8 ) |
980 |
- nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 ) |
981 |
- nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl:0= ) ) |
982 |
- nginx_modules_http_spdy? ( >=dev-libs/openssl-1.0.1c:0= ) |
983 |
- nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt ) |
984 |
- nginx_modules_http_lua? ( !luajit? ( dev-lang/lua:0= ) luajit? ( dev-lang/luajit:2= ) ) |
985 |
- nginx_modules_http_auth_pam? ( virtual/pam ) |
986 |
- nginx_modules_http_metrics? ( dev-libs/yajl ) |
987 |
- nginx_modules_http_dav_ext? ( dev-libs/expat ) |
988 |
- nginx_modules_http_security? ( >=dev-libs/libxml2-2.7.8 dev-libs/apr-util www-servers/apache )" |
989 |
-RDEPEND="${CDEPEND} |
990 |
- selinux? ( sec-policy/selinux-nginx ) |
991 |
-" |
992 |
-DEPEND="${CDEPEND} |
993 |
- arm? ( dev-libs/libatomic_ops ) |
994 |
- libatomic? ( dev-libs/libatomic_ops )" |
995 |
-PDEPEND="vim-syntax? ( app-vim/nginx-syntax )" |
996 |
- |
997 |
-REQUIRED_USE="pcre-jit? ( pcre ) |
998 |
- nginx_modules_http_lua? ( nginx_modules_http_rewrite ) |
999 |
- nginx_modules_http_naxsi? ( pcre ) |
1000 |
- nginx_modules_http_dav_ext? ( nginx_modules_http_dav ) |
1001 |
- nginx_modules_http_metrics? ( nginx_modules_http_stub_status ) |
1002 |
- nginx_modules_http_security? ( pcre ) |
1003 |
- nginx_modules_http_push_stream? ( ssl )" |
1004 |
- |
1005 |
-pkg_setup() { |
1006 |
- NGINX_HOME="/var/lib/nginx" |
1007 |
- NGINX_HOME_TMP="${NGINX_HOME}/tmp" |
1008 |
- |
1009 |
- ebegin "Creating nginx user and group" |
1010 |
- enewgroup ${PN} |
1011 |
- enewuser ${PN} -1 -1 "${NGINX_HOME}" ${PN} |
1012 |
- eend $? |
1013 |
- |
1014 |
- if use libatomic; then |
1015 |
- ewarn "GCC 4.1+ features built-in atomic operations." |
1016 |
- ewarn "Using libatomic_ops is only needed if using" |
1017 |
- ewarn "a different compiler or a GCC prior to 4.1" |
1018 |
- fi |
1019 |
- |
1020 |
- if [[ -n $NGINX_ADD_MODULES ]]; then |
1021 |
- ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" |
1022 |
- ewarn "This nginx installation is not supported!" |
1023 |
- ewarn "Make sure you can reproduce the bug without those modules" |
1024 |
- ewarn "_before_ reporting bugs." |
1025 |
- fi |
1026 |
- |
1027 |
- if use !http; then |
1028 |
- ewarn "To actually disable all http-functionality you also have to disable" |
1029 |
- ewarn "all nginx http modules." |
1030 |
- fi |
1031 |
-} |
1032 |
- |
1033 |
-src_prepare() { |
1034 |
- epatch "${FILESDIR}/${PN}-1.4.1-fix-perl-install-path.patch" |
1035 |
- |
1036 |
- if use nginx_modules_http_upstream_check; then |
1037 |
- epatch "${FILESDIR}"/check_1.7.2+.patch |
1038 |
- fi |
1039 |
- |
1040 |
- if use nginx_modules_http_lua; then |
1041 |
- sed -i -e 's/-llua5.1/-llua/' "${HTTP_LUA_MODULE_WD}/config" |
1042 |
- # fix for nginx 1.7.5 |
1043 |
- cd "${HTTP_LUA_MODULE_WD}" |
1044 |
- epatch "${FILESDIR}/lua-${P}.patch" |
1045 |
- cd "${S}" |
1046 |
- fi |
1047 |
- |
1048 |
- find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die |
1049 |
- # We have config protection, don't rename etc files |
1050 |
- sed -i 's:.default::' auto/install || die |
1051 |
- # remove useless files |
1052 |
- sed -i -e '/koi-/d' -e '/win-/d' auto/install || die |
1053 |
- |
1054 |
- # don't install to /etc/nginx/ if not in use |
1055 |
- local module |
1056 |
- for module in fastcgi scgi uwsgi ; do |
1057 |
- if ! use nginx_modules_http_${module}; then |
1058 |
- sed -i -e "/${module}/d" auto/install || die |
1059 |
- fi |
1060 |
- done |
1061 |
- |
1062 |
- epatch_user |
1063 |
-} |
1064 |
- |
1065 |
-src_configure() { |
1066 |
- # mod_security needs to generate nginx/modsecurity/config before including it |
1067 |
- if use nginx_modules_http_security; then |
1068 |
- cd "${HTTP_SECURITY_MODULE_WD}" |
1069 |
- if use luajit ; then |
1070 |
- sed -i \ |
1071 |
- -e 's|^\(LUA_PKGNAMES\)=.*|\1="luajit"|' \ |
1072 |
- configure || die |
1073 |
- fi |
1074 |
- ./configure \ |
1075 |
- --enable-standalone-module \ |
1076 |
- $(use_enable pcre-jit) \ |
1077 |
- $(use_with nginx_modules_http_lua lua) || die "configure failed for mod_security" |
1078 |
- fi |
1079 |
- |
1080 |
- cd "${S}" |
1081 |
- |
1082 |
- local myconf= http_enabled= mail_enabled= |
1083 |
- |
1084 |
- use aio && myconf+=" --with-file-aio --with-aio_module" |
1085 |
- use debug && myconf+=" --with-debug" |
1086 |
- use ipv6 && myconf+=" --with-ipv6" |
1087 |
- use libatomic && myconf+=" --with-libatomic" |
1088 |
- use pcre && myconf+=" --with-pcre" |
1089 |
- use pcre-jit && myconf+=" --with-pcre-jit" |
1090 |
- |
1091 |
- # HTTP modules |
1092 |
- for mod in $NGINX_MODULES_STD; do |
1093 |
- if use nginx_modules_http_${mod}; then |
1094 |
- http_enabled=1 |
1095 |
- else |
1096 |
- myconf+=" --without-http_${mod}_module" |
1097 |
- fi |
1098 |
- done |
1099 |
- |
1100 |
- for mod in $NGINX_MODULES_OPT; do |
1101 |
- if use nginx_modules_http_${mod}; then |
1102 |
- http_enabled=1 |
1103 |
- myconf+=" --with-http_${mod}_module" |
1104 |
- fi |
1105 |
- done |
1106 |
- |
1107 |
- if use nginx_modules_http_fastcgi; then |
1108 |
- myconf+=" --with-http_realip_module" |
1109 |
- fi |
1110 |
- |
1111 |
- # third-party modules |
1112 |
- if use nginx_modules_http_upload_progress; then |
1113 |
- http_enabled=1 |
1114 |
- myconf+=" --add-module=${HTTP_UPLOAD_PROGRESS_MODULE_WD}" |
1115 |
- fi |
1116 |
- |
1117 |
- if use nginx_modules_http_headers_more; then |
1118 |
- http_enabled=1 |
1119 |
- myconf+=" --add-module=${HTTP_HEADERS_MORE_MODULE_WD}" |
1120 |
- fi |
1121 |
- |
1122 |
- if use nginx_modules_http_cache_purge; then |
1123 |
- http_enabled=1 |
1124 |
- myconf+=" --add-module=${HTTP_CACHE_PURGE_MODULE_WD}" |
1125 |
- fi |
1126 |
- |
1127 |
- if use nginx_modules_http_slowfs_cache; then |
1128 |
- http_enabled=1 |
1129 |
- myconf+=" --add-module=${HTTP_SLOWFS_CACHE_MODULE_WD}" |
1130 |
- fi |
1131 |
- |
1132 |
- if use nginx_modules_http_fancyindex; then |
1133 |
- http_enabled=1 |
1134 |
- myconf+=" --add-module=${HTTP_FANCYINDEX_MODULE_WD}" |
1135 |
- fi |
1136 |
- |
1137 |
- if use nginx_modules_http_lua; then |
1138 |
- http_enabled=1 |
1139 |
- if use luajit; then |
1140 |
- export LUAJIT_LIB=$(pkg-config --variable libdir luajit) |
1141 |
- export LUAJIT_INC=$(pkg-config --variable includedir luajit) |
1142 |
- else |
1143 |
- export LUA_LIB=$(pkg-config --variable libdir lua) |
1144 |
- export LUA_INC=$(pkg-config --variable includedir lua) |
1145 |
- fi |
1146 |
- myconf+=" --add-module=${DEVEL_KIT_MODULE_WD}" |
1147 |
- myconf+=" --add-module=${HTTP_LUA_MODULE_WD}" |
1148 |
- fi |
1149 |
- |
1150 |
- if use nginx_modules_http_auth_pam; then |
1151 |
- http_enabled=1 |
1152 |
- myconf+=" --add-module=${HTTP_AUTH_PAM_MODULE_WD}" |
1153 |
- fi |
1154 |
- |
1155 |
- if use nginx_modules_http_upstream_check; then |
1156 |
- http_enabled=1 |
1157 |
- myconf+=" --add-module=${HTTP_UPSTREAM_CHECK_MODULE_WD}" |
1158 |
- fi |
1159 |
- |
1160 |
- if use nginx_modules_http_metrics; then |
1161 |
- http_enabled=1 |
1162 |
- myconf+=" --add-module=${HTTP_METRICS_MODULE_WD}" |
1163 |
- fi |
1164 |
- |
1165 |
- if use nginx_modules_http_naxsi ; then |
1166 |
- http_enabled=1 |
1167 |
- myconf+=" --add-module=${HTTP_NAXSI_MODULE_WD}" |
1168 |
- fi |
1169 |
- |
1170 |
- if use rtmp ; then |
1171 |
- http_enabled=1 |
1172 |
- myconf+=" --add-module=${RTMP_MODULE_WD}" |
1173 |
- fi |
1174 |
- |
1175 |
- if use nginx_modules_http_dav_ext ; then |
1176 |
- http_enabled=1 |
1177 |
- myconf+=" --add-module=${HTTP_DAV_EXT_MODULE_WD}" |
1178 |
- fi |
1179 |
- |
1180 |
- if use nginx_modules_http_echo ; then |
1181 |
- http_enabled=1 |
1182 |
- myconf+=" --add-module=${HTTP_ECHO_MODULE_WD}" |
1183 |
- fi |
1184 |
- |
1185 |
- if use nginx_modules_http_security ; then |
1186 |
- http_enabled=1 |
1187 |
- myconf+=" --add-module=${HTTP_SECURITY_MODULE_WD}/nginx/modsecurity" |
1188 |
- fi |
1189 |
- |
1190 |
- if use nginx_modules_http_push_stream ; then |
1191 |
- http_enabled=1 |
1192 |
- myconf+=" --add-module=${HTTP_PUSH_STREAM_MODULE_WD}" |
1193 |
- fi |
1194 |
- |
1195 |
- if use nginx_modules_http_sticky ; then |
1196 |
- http_enabled=1 |
1197 |
- myconf+=" --add-module=${HTTP_STICKY_MODULE_WD}" |
1198 |
- fi |
1199 |
- |
1200 |
- if use nginx_modules_http_ajp ; then |
1201 |
- http_enabled=1 |
1202 |
- myconf+=" --add-module=${HTTP_AJP_MODULE_WD}" |
1203 |
- fi |
1204 |
- |
1205 |
- if use nginx_modules_http_mogilefs ; then |
1206 |
- http_enabled=1 |
1207 |
- myconf+=" --add-module=${HTTP_MOGILEFS_MODULE_WD}" |
1208 |
- fi |
1209 |
- |
1210 |
- if use http || use http-cache; then |
1211 |
- http_enabled=1 |
1212 |
- fi |
1213 |
- |
1214 |
- if [ $http_enabled ]; then |
1215 |
- use http-cache || myconf+=" --without-http-cache" |
1216 |
- use ssl && myconf+=" --with-http_ssl_module" |
1217 |
- else |
1218 |
- myconf+=" --without-http --without-http-cache" |
1219 |
- fi |
1220 |
- |
1221 |
- # MAIL modules |
1222 |
- for mod in $NGINX_MODULES_MAIL; do |
1223 |
- if use nginx_modules_mail_${mod}; then |
1224 |
- mail_enabled=1 |
1225 |
- else |
1226 |
- myconf+=" --without-mail_${mod}_module" |
1227 |
- fi |
1228 |
- done |
1229 |
- |
1230 |
- if [ $mail_enabled ]; then |
1231 |
- myconf+=" --with-mail" |
1232 |
- use ssl && myconf+=" --with-mail_ssl_module" |
1233 |
- fi |
1234 |
- |
1235 |
- # custom modules |
1236 |
- for mod in $NGINX_ADD_MODULES; do |
1237 |
- myconf+=" --add-module=${mod}" |
1238 |
- done |
1239 |
- |
1240 |
- # https://bugs.gentoo.org/286772 |
1241 |
- export LANG=C LC_ALL=C |
1242 |
- tc-export CC |
1243 |
- |
1244 |
- if ! use prefix; then |
1245 |
- myconf+=" --user=${PN} --group=${PN}" |
1246 |
- fi |
1247 |
- |
1248 |
- ./configure \ |
1249 |
- --prefix="${EPREFIX}"/usr \ |
1250 |
- --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf \ |
1251 |
- --error-log-path="${EPREFIX}"/var/log/${PN}/error_log \ |
1252 |
- --pid-path="${EPREFIX}"/run/${PN}.pid \ |
1253 |
- --lock-path="${EPREFIX}"/run/lock/${PN}.lock \ |
1254 |
- --with-cc-opt="-I${EROOT}usr/include" \ |
1255 |
- --with-ld-opt="-L${EROOT}usr/$(get_libdir)" \ |
1256 |
- --http-log-path="${EPREFIX}"/var/log/${PN}/access_log \ |
1257 |
- --http-client-body-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/client \ |
1258 |
- --http-proxy-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/proxy \ |
1259 |
- --http-fastcgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/fastcgi \ |
1260 |
- --http-scgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/scgi \ |
1261 |
- --http-uwsgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/uwsgi \ |
1262 |
- ${myconf} || die "configure failed" |
1263 |
- |
1264 |
- # A purely cosmetic change that makes nginx -V more readable. This can be |
1265 |
- # good if people outside the gentoo community would troubleshoot and |
1266 |
- # question the users setup. |
1267 |
- sed -i -e "s|${WORKDIR}|external_module|g" objs/ngx_auto_config.h || die |
1268 |
-} |
1269 |
- |
1270 |
-src_compile() { |
1271 |
- use nginx_modules_http_security && emake -C "${HTTP_SECURITY_MODULE_WD}" |
1272 |
- |
1273 |
- # https://bugs.gentoo.org/286772 |
1274 |
- export LANG=C LC_ALL=C |
1275 |
- emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" |
1276 |
-} |
1277 |
- |
1278 |
-src_install() { |
1279 |
- emake DESTDIR="${D}" install |
1280 |
- |
1281 |
- cp "${FILESDIR}"/nginx.conf "${ED}"/etc/nginx/nginx.conf || die |
1282 |
- |
1283 |
- newinitd "${FILESDIR}"/nginx.initd-r2 nginx |
1284 |
- |
1285 |
- systemd_newunit "${FILESDIR}"/nginx.service-r1 nginx.service |
1286 |
- |
1287 |
- doman man/nginx.8 |
1288 |
- dodoc CHANGES* README |
1289 |
- |
1290 |
- # just keepdir. do not copy the default htdocs files (bug #449136) |
1291 |
- keepdir /var/www/localhost |
1292 |
- rm -rf "${D}"/usr/html || die |
1293 |
- |
1294 |
- # set up a list of directories to keep |
1295 |
- local keepdir_list="${NGINX_HOME_TMP}"/client |
1296 |
- local module |
1297 |
- for module in proxy fastcgi scgi uwsgi; do |
1298 |
- use nginx_modules_http_${module} && keepdir_list+=" ${NGINX_HOME_TMP}/${module}" |
1299 |
- done |
1300 |
- |
1301 |
- keepdir /var/log/nginx ${keepdir_list} |
1302 |
- |
1303 |
- # this solves a problem with SELinux where nginx doesn't see the directories |
1304 |
- # as root and tries to create them as nginx |
1305 |
- fperms 0750 "${NGINX_HOME_TMP}" |
1306 |
- fowners ${PN}:0 "${NGINX_HOME_TMP}" |
1307 |
- |
1308 |
- fperms 0700 /var/log/nginx ${keepdir_list} |
1309 |
- fowners ${PN}:${PN} /var/log/nginx ${keepdir_list} |
1310 |
- |
1311 |
- # logrotate |
1312 |
- insinto /etc/logrotate.d |
1313 |
- newins "${FILESDIR}"/nginx.logrotate-r1 nginx |
1314 |
- |
1315 |
- if use nginx_modules_http_perl; then |
1316 |
- cd "${S}"/objs/src/http/modules/perl/ |
1317 |
- einstall DESTDIR="${D}" INSTALLDIRS=vendor |
1318 |
- perl_delete_localpod |
1319 |
- fi |
1320 |
- |
1321 |
- if use nginx_modules_http_cache_purge; then |
1322 |
- docinto ${HTTP_CACHE_PURGE_MODULE_P} |
1323 |
- dodoc "${HTTP_CACHE_PURGE_MODULE_WD}"/{CHANGES,README.md,TODO.md} |
1324 |
- fi |
1325 |
- |
1326 |
- if use nginx_modules_http_slowfs_cache; then |
1327 |
- docinto ${HTTP_SLOWFS_CACHE_MODULE_P} |
1328 |
- dodoc "${HTTP_SLOWFS_CACHE_MODULE_WD}"/{CHANGES,README.md} |
1329 |
- fi |
1330 |
- |
1331 |
- if use nginx_modules_http_fancyindex; then |
1332 |
- docinto ${HTTP_FANCYINDEX_MODULE_P} |
1333 |
- dodoc "${HTTP_FANCYINDEX_MODULE_WD}"/README.rst |
1334 |
- fi |
1335 |
- |
1336 |
- if use nginx_modules_http_lua; then |
1337 |
- docinto ${HTTP_LUA_MODULE_P} |
1338 |
- dodoc "${HTTP_LUA_MODULE_WD}"/{Changes,README.markdown} |
1339 |
- fi |
1340 |
- |
1341 |
- if use nginx_modules_http_auth_pam; then |
1342 |
- docinto ${HTTP_AUTH_PAM_MODULE_P} |
1343 |
- dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README,ChangeLog} |
1344 |
- fi |
1345 |
- |
1346 |
- if use nginx_modules_http_upstream_check; then |
1347 |
- docinto ${HTTP_UPSTREAM_CHECK_MODULE_P} |
1348 |
- dodoc "${HTTP_UPSTREAM_CHECK_MODULE_WD}"/{README,CHANGES} |
1349 |
- fi |
1350 |
- |
1351 |
-# README.md is still empty |
1352 |
-# if use nginx_modules_http_metrics; then |
1353 |
-# docinto ${HTTP_METRICS_MODULE_P} |
1354 |
-# dodoc "${HTTP_METRICS_MODULE_WD}"/README.md |
1355 |
-# fi |
1356 |
- |
1357 |
- if use nginx_modules_http_naxsi; then |
1358 |
- insinto /etc/nginx |
1359 |
- doins "${HTTP_NAXSI_MODULE_WD}"/../naxsi_config/naxsi_core.rules |
1360 |
- fi |
1361 |
- |
1362 |
- if use rtmp; then |
1363 |
- docinto ${RTMP_MODULE_P} |
1364 |
- dodoc "${RTMP_MODULE_WD}"/{AUTHORS,README.md,stat.xsl} |
1365 |
- fi |
1366 |
- |
1367 |
- if use nginx_modules_http_dav_ext; then |
1368 |
- docinto ${HTTP_DAV_EXT_MODULE_P} |
1369 |
- dodoc "${HTTP_DAV_EXT_MODULE_WD}"/README |
1370 |
- fi |
1371 |
- |
1372 |
- if use nginx_modules_http_echo; then |
1373 |
- docinto ${HTTP_ECHO_MODULE_P} |
1374 |
- dodoc "${HTTP_ECHO_MODULE_WD}"/{README.markdown,doc/HttpEchoModule.wiki} |
1375 |
- fi |
1376 |
- |
1377 |
- if use nginx_modules_http_security; then |
1378 |
- docinto ${HTTP_SECURITY_MODULE_P} |
1379 |
- dodoc "${HTTP_SECURITY_MODULE_WD}"/{CHANGES,README.TXT,authors.txt} |
1380 |
- fi |
1381 |
- |
1382 |
- if use nginx_modules_http_push_stream; then |
1383 |
- docinto ${HTTP_PUSH_STREAM_MODULE_P} |
1384 |
- dodoc "${HTTP_PUSH_STREAM_MODULE_WD}"/{AUTHORS,CHANGELOG.textile,README.textile} |
1385 |
- fi |
1386 |
- |
1387 |
- if use nginx_modules_http_sticky; then |
1388 |
- docinto ${HTTP_STICKY_MODULE_P} |
1389 |
- dodoc "${HTTP_STICKY_MODULE_WD}"/{README.md,Changelog.txt,docs/sticky.pdf} |
1390 |
- fi |
1391 |
- |
1392 |
- if use nginx_modules_http_ajp; then |
1393 |
- docinto ${HTTP_AJP_MODULE_P} |
1394 |
- dodoc "${HTTP_AJP_MODULE_WD}"/README |
1395 |
- fi |
1396 |
-} |
1397 |
- |
1398 |
-pkg_postinst() { |
1399 |
- if use ssl; then |
1400 |
- if [ ! -f "${EROOT}"/etc/ssl/${PN}/${PN}.key ]; then |
1401 |
- install_cert /etc/ssl/${PN}/${PN} |
1402 |
- use prefix || chown ${PN}:${PN} "${EROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
1403 |
- fi |
1404 |
- fi |
1405 |
- |
1406 |
- if use nginx_modules_http_lua && use nginx_modules_http_spdy; then |
1407 |
- ewarn "Lua 3rd party module author warns against using ${P} with" |
1408 |
- ewarn "NGINX_MODULES_HTTP=\"lua spdy\". For more info, see http://git.io/OldLsg" |
1409 |
- fi |
1410 |
- |
1411 |
- # This is the proper fix for bug #458726/#469094, resp. CVE-2013-0337 for |
1412 |
- # existing installations |
1413 |
- local fix_perms=0 |
1414 |
- |
1415 |
- for rv in ${REPLACING_VERSIONS} ; do |
1416 |
- version_compare ${rv} 1.4.1-r2 |
1417 |
- [[ $? -eq 1 ]] && fix_perms=1 |
1418 |
- done |
1419 |
- |
1420 |
- if [[ $fix_perms -eq 1 ]] ; then |
1421 |
- ewarn "To fix a security bug (CVE-2013-0337, bug #458726) had the following" |
1422 |
- ewarn "directories the world-readable bit removed (if set):" |
1423 |
- ewarn " ${EPREFIX}/var/log/nginx" |
1424 |
- ewarn " ${EPREFIX}${NGINX_HOME_TMP}/{,client,proxy,fastcgi,scgi,uwsgi}" |
1425 |
- ewarn "Check if this is correct for your setup before restarting nginx!" |
1426 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
1427 |
- ewarn "Furthermore nginx' temp directories got moved to ${NGINX_HOME_TMP}" |
1428 |
- chmod -f o-rwx "${EPREFIX}"/var/log/nginx "${EPREFIX}/${NGINX_HOME_TMP}"/{,client,proxy,fastcgi,scgi,uwsgi} |
1429 |
- fi |
1430 |
- |
1431 |
- # If the nginx user can't change into or read the dir, display a warning. |
1432 |
- # If su is not available we display the warning nevertheless since we can't check properly |
1433 |
- su -s /bin/sh -c 'cd /var/log/nginx/ && ls' nginx >&/dev/null |
1434 |
- if [ $? -ne 0 ] ; then |
1435 |
- ewarn "Please make sure that the nginx user or group has at least" |
1436 |
- ewarn "'rx' permissions on /var/log/nginx (default on a fresh install)" |
1437 |
- ewarn "Otherwise you end up with empty log files after a logrotate." |
1438 |
- fi |
1439 |
-} |