From 0d654318c5835efbce8e18e4a0efce90dfaa9c92 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 12 Dec 2012 04:50:27 +0000 Subject: Version bump (bug #446926 for samba4). Removed old Package-Manager: portage-2.2.0_alpha147/cvs/Linux x86_64 Manifest-Sign-Key: 0x981CA6FC --- net-fs/samba/ChangeLog | 10 +- net-fs/samba/Manifest | 29 ++- net-fs/samba/files/4.0/samba4.initd | 36 --- net-fs/samba/samba-3.5.18.ebuild | 456 ------------------------------------ net-fs/samba/samba-3.6.10.ebuild | 442 ++++++++++++++++++++++++++++++++++ net-fs/samba/samba-3.6.6.ebuild | 436 ---------------------------------- net-fs/samba/samba-4.0.0.ebuild | 156 ++++++++++++ net-fs/samba/samba-4.0.0_rc4.ebuild | 160 ------------- 8 files changed, 625 insertions(+), 1100 deletions(-) delete mode 100644 net-fs/samba/files/4.0/samba4.initd delete mode 100644 net-fs/samba/samba-3.5.18.ebuild create mode 100644 net-fs/samba/samba-3.6.10.ebuild delete mode 100644 net-fs/samba/samba-3.6.6.ebuild create mode 100644 net-fs/samba/samba-4.0.0.ebuild delete mode 100644 net-fs/samba/samba-4.0.0_rc4.ebuild (limited to 'net-fs') diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog index 55987989b540..630f5be88959 100644 --- a/net-fs/samba/ChangeLog +++ b/net-fs/samba/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-fs/samba # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.543 2012/12/02 20:38:24 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.544 2012/12/12 04:50:23 polynomial-c Exp $ + +*samba-4.0.0 (12 Dec 2012) +*samba-3.6.10 (12 Dec 2012) + + 12 Dec 2012; Lars Wendler -files/4.0/samba4.initd, + -samba-3.5.18.ebuild, -samba-3.6.6.ebuild, +samba-3.6.10.ebuild, + -samba-4.0.0_rc4.ebuild, +samba-4.0.0.ebuild: + non-maintainer commit: Version bump (bug #446926 for samba4). Removed old. 02 Dec 2012; Markus Meier samba-3.6.9.ebuild: add ~arm, bug #444688 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest index 278e9f08c314..248ce7795fc0 100644 --- a/net-fs/samba/Manifest +++ b/net-fs/samba/Manifest @@ -24,31 +24,38 @@ AUX 3.6/swat.xinetd 526 SHA256 59dbb1e4669cfd5c72dacc8d8aed269f169e827338e6d6e92 AUX 3.6/system-auth-winbind.pam 704 SHA256 42c80d953da2472d789c3de1311045285428a15562f7ad2371ef214d8ea7bf56 SHA512 a93a491736299a67ec39eb06fa6b14e48038f618a4812ef9b2b46bf20ef9600ca4e0f44997d8e7c7e838760c3c53a739ebcdf1bb017a5f49b005b4470afb65f6 WHIRLPOOL 0601c6866bb15779bb7f5d7286902b1a5137435a92963a60734de98ca9ce95d220dfa456dfd4a229176e3a2be7afb9097bcffcfbd8b98be9bf206dded8054ad4 AUX 4.0/com_err.patch 1276 SHA256 f0dc953202603a5f8c0625921cd89cd59e9ca74a61302bdf07e591836e6bda31 SHA512 62800c962cfb613b11c77ae9360f6c3c610bb1551f9ac3673ab814f6f8e1f589d1192fb3019f1afdc8becf8e692c8d19f4dcaa8b00aeeeb282642327c959c27e WHIRLPOOL 37d06f7f6d7d77acd9e5d794a6b2512aa092f04c553853045fa42e11f850a91912239385b21f8d76694e37d21d63405ea864ea0627a40aa72850b1fe4b8f4b3b AUX 4.0/samba4.confd 1783 SHA256 53755809cc27fdbaf98752cd3da45b5c2bda62dd46fcc37570c6e237f7954ffa SHA512 6fc7edf192957f97b171c97482317bf563385917cfdbf950ed28d9387961bd16f82844c6f9b5c430508ec6dc7331ecdf5f81fa3135663316061c1d0b1808f53d WHIRLPOOL 868539ecf658f9da3574847cb1447dafe422c60a9208de5580cf7f53e4346e9c7d1c6b3e7ea5c684b83e613dd912c5245ffce6a43bc8bd9bf8417a9c7a5f2557 -AUX 4.0/samba4.initd 813 SHA256 8435ddeac4d064ada92664df03c46ee3aa0096692d5900478a86f8319acc55b2 SHA512 9cde8e5eb3f4ea7731489d96ff9025f9d03a6108ea68b70620bd9e0689a5c28349a478623e526ab7c436afc0252e32b21d1ab79810581242e3314c853268f78f WHIRLPOOL 30d3c3c3011eb94f5754e52bd4e2d3a7ae2920e9776ec66feccde2d89d6e867e08370254858bafbae06f8b8174a167e83d22dcbfa531c7dfb5b2ea0d37611a27 AUX 4.0/samba4.initd-r1 1575 SHA256 4d00243dbd85ee81e2e989f1ac8035c1c1b9379133584291b959bb7bc45fe780 SHA512 941a4f8e6c839d11140c4caa3efd65176e11f07194e43f37e4f97f9c0e7ee4e8696093876c4b21f808cedcd80d3f7810b3fdcd126a8a0fa87e922299ea605e2c WHIRLPOOL 379166290c15c405c7ff50f6bf2654607282bff71546aa79279bdcd2a00cbb21989f42bb2d0be0588c174db2712b39b4e3eece56104b2ebe6ebbedccb69eb354 AUX samba-3.4.2-lib.tevent.python.mk 177 SHA256 3eab52d42a0cbc070d011a131f9a56f4b3da10b2791fec514948fd8d2d013153 SHA512 0bd691d7678737fa815da9e1934db056fa833aa6d6d2d48cf8da559987a899ae4c5ac18e4b3594d634363f515028a3d30711484dbda578aa7506fbe2df55197c WHIRLPOOL 061b3e33b327563f52648931428cce433505353e73bf9851abb33f4f13e7c723c17c3413442dd343477bb0c49fd3284c0155ff59829df448952a6e1d07475251 AUX samba4.initd 657 SHA256 4c8d1ecf42d58bfa1a2087ba9da55ed410ad238a0050272cb84c2e8d50b034d9 SHA512 3373f2ad30938dd8c2d68d19af4e248470e0b6d749b53257c97d3a0792df54f9ad61a33175ae3e576b728cc11a6ae5fd8803c22188382c7b50ca041b98b84ce7 WHIRLPOOL 25f6a313323b3076ad2a5ff733b1ed4bae1833bf5d4d1aaf9c75449e578ca479998b526a1fdfefbe5d5436c94cbcf6b38934bda1ddff8587f8820a2ccb5ce1e9 DIST samba-3.5.15.tar.gz 30368870 SHA256 c23c67c1212b7ff2e68a9e047a22200e1ad447d5ac1bd3cf24363f4b5875d396 SHA512 917864ba014a3180583bf8ce9d89a61c17e5d8b19256a603420481eaf69208600e0e525b9036570dabc1136b2dc0e125627b6f495ad4292f68c1722f6865cada WHIRLPOOL c02d16056baf0dff0783b6f8593e80cbe21144cbf26ef0c15a806ef6520d2d8d263a052e41eba2c66fee1dd47c0385eda119c356665fae2978dcb64accc44981 -DIST samba-3.5.18.tar.gz 35371052 SHA256 ff684a20a5a27fae6027fcedcedba10da73743cff331e22f5994b1212ee8ae16 SHA512 ee537e031f60b477136df8ab88e42d8f7c36bc168e676592be45836d494fe3bb32439ebb82b24e06f16674526c83647e81431552bbe61ef04b176f9811a73346 WHIRLPOOL fdcc932f2e9139d47d1bf36280ed58e27b005885ed72f2b9fd0e75802c3189efaba14b91a62bb2924a41d45fc34b87a2946a72453f21ea2dc84bdeddbf92db88 DIST samba-3.5.19.tar.gz 35379330 SHA256 96f64f3869408b6eb28d776a2c31035dd8b9966f485889a7a056f7ac2ccece8b SHA512 dd0492b0a85b23025f5378178b6f8c654a72a72ea8ad8bfab50b14be6826496fab922d1015853cb0871929b2427b109bf2881af04d135c3aa73a26eba4c5a53a WHIRLPOOL 47d7312a3f58b20572a0bc0ac3018e402bcfe3e76f07f99b31c45cec80a557b6a99dbb8e7c3b210df3c8f304e3b284ba2263512293c9278f87610188c8783c49 -DIST samba-3.6.6.tar.gz 34061741 SHA256 67685f2badf7451cb06ad60534784072947c3a845e4d0afec5ab7817f2ee9310 SHA512 f9045c57bbce04bbaf5540ee92ce78437d5f53bbf424384c1c6e5a1cd0822a4e0c913a8e4bfbe836950b4195a7c90ff29c1ffd9304d28d3dd7138ca69de05b4b WHIRLPOOL 5df2dea100d3050d1f33ab3144b6c91441c7821367596e2eb64ac4936c309bcbedfc39a652c3f14103bdc4e91c075b88a7acd2b41ddc839ef0cb5f861fe363cc +DIST samba-3.6.10.tar.gz 34076720 SHA256 4af53840773b5768b620e8afb66e081b84f8639b1a0a92fb40e55ec8556fae74 SHA512 9600a9830b8d4d6735b48429fe4d056b97136d765ad6b1dfbc35cf828bbd19af6ec78d886ad8388140e9028a90c201a969edf33e4d79fd5c6ca1cc68448ffd2e WHIRLPOOL 0dba477bd4a17a908100308c38cdc5070e7156e10a877e0fda8a465773521787245ca9a4d2b4a41c2cb5563c71a30f7507ed37ae88707dd30be34d98c381086e DIST samba-3.6.9.tar.gz 34077002 SHA256 9714b50c1bbdb0d3521bdbf403bb112b5405040685cb0b4ff3f9a370d1e84020 SHA512 be0c9d2a51a524015a1210d96c775c754101a2906dc054f3ecae97d18d4e0d50de2ac48a85af62a30d020259ff91068947831e44963925efe3cc48c8051a3be7 WHIRLPOOL 4e4f091329517872117160e167cb60ce71cfd441a0b6eb46157aa48b16369e887b7373b9c2bada8751de62db10f8db748f53ecc28a90b70aaf38df3af2649b1e -DIST samba-4.0.0rc4.tar.gz 22010871 SHA256 356607b2f650a6dfa558d61201d1cc4cc4ed36205b55e68d84cd8be0ef30f6ee SHA512 f1604424696e148a7a1b8638d3778de3ec9a86dbf31d585c2c176fd27516ae92a07a022d2bff88d4c0f27b4cd0c076692c0271e214c4835eb3e373026cdde969 WHIRLPOOL 40986fac28209484a128b17c7dcfba262557de2615295cf4d348ccad962692fd80543435f5271fc8f83d66f036084aa50152ded5765b2fe5e36cd3d3cebb540c +DIST samba-4.0.0.tar.gz 22030480 SHA256 bc4edfaf919cd9742b0c1fc75818f58497a51acd280aad0d28b4f41b5b2f287f SHA512 dd4896217522b36dc3ad72971cd42eca7f8bd1a6e6a9f5dd78435cf757a8a6a3c85504dae88d8105fd32c4ddcad8f9d68a25fb1b30947605d8885f4e9eb01e5f WHIRLPOOL ad3fe51a52bc57429d5dbab2b4f765c984ce7865cb1e9d1b1bfb9c5f85eb37f527eae0e09710244a8b9511d25aecf5e87ab29830f065a1a38215d668ab8200ec DIST samba-4.0.0rc5.tar.gz 22017812 SHA256 d0179e8288d42e93e1fd35ceaa46b881e816bd57732928b8a4227c87f8a76074 SHA512 e744ceb11e521a5bb90e9a6507ef3aea1b7d0380a85dfffca1009b26fe111316b8ff35f1cb28315b85fdccd583c1ad9869d1b0b2bd84ed7195cafb293e797a51 WHIRLPOOL cd2eea538876fe109606507e78e94d520f5ea9afe3c042aa063eb310d5a03a9e281e6a9b9a947327890c6205413cd7610c7f5a33acfca32d856fdc8c245834f1 DIST smb_traffic_analyzer_v2.diff.bz2 12226 SHA256 1bae7eafbe8ac2382313d5ab9d43d73ba64b63a714f0f588516952d476fb868d SHA512 aa0e457a0dd282e61e6dfcd5705c29b319832dca9711b1b5baf8373e2f079991399c3537c050219ccb861a93f86353ebff677a5c625d2e3f1f3a13ee5c4087d0 WHIRLPOOL 85ee72a360f67ebe71be5cd400ecd635280a0d7c64ebb8b94656a5ef1a94f74a987de86408af00ce1b81cc8363b1b3cf14726860d29b72ee610d4bab73d6b139 EBUILD samba-3.5.15.ebuild 12388 SHA256 df87120eb18e960cc2d77d5158ef81d3dbf34a475e6a717ee12aea4965b98d0b SHA512 e581ec0818df37616df8a9aca4cb9efc14ec8a726ced6b1de4a541a44361febfaf83395a00bd481a846c4dc3c5b8cea03ccdc80fbd5b6d0990cc9014061c857a WHIRLPOOL cc44215e004d8b89223d553bfc9006ff3feac8ab640b26e41911041d7dc5ed6339451ef4c3307ab8d0df43b6baa71f781ab2fca4e6afac62715c5c349cb89f68 -EBUILD samba-3.5.18.ebuild 12454 SHA256 25350f9055a710f0496f70ef7a76c2d3780497aaddc3b7f9c2cb6f0080bad387 SHA512 0a496f863913d96f2f026d17f72e65401c6bd60cf21ac5eb932261095b57afbe2d75d73fb62ef960441c4637f1d0dcc7f3cefede2ae98ddf34e4573cafeadd94 WHIRLPOOL 3d2ae17ca180ed5586cd4881f039a137984cfe32c1f0c82814a997ad047e6379d27d1e74179e356f54beba8c1b463a2172b9505937de1aac5c2758051cfa4e30 EBUILD samba-3.5.19.ebuild 12464 SHA256 936b24f5a5fe2d9fc7f0d5a7307395eef3e7fc0007cdd9b68f3ec7bc14c7ccf4 SHA512 03c4cb8cc9e73771753b39cf2fc1c2e350cd7c09bc08d0f3f0748d13769fadb0bb08a6855d8f27201412a6ab16cf32c2ce665a53d4d1714462de552ef66f6ab4 WHIRLPOOL b476ee0c7637cb43eb54541add97410c7ec2e5066d546aee7df40309d57978b63a5304a34fd779b448a530d8b0ada178e38eb4a8c43fe7aa4216ee6269e4ab78 -EBUILD samba-3.6.6.ebuild 11629 SHA256 ed6805f64cc43a221048de65d1967a694896bec97d3a091d3c870a3643f5f0d6 SHA512 2d811e55a0f61e8ea4386d5e2844bc22fef4b9974195b7f5507d673bda4065a4084cd177595dbf09aefc3f8a83866600e8c208a4c8cd2606ca155a7ae7498226 WHIRLPOOL d41c8869e82a321678b88566da1c85d4f5faeb83ed7f01237c9bce102c617dcbdb81aab133a058c010a75da54b09a9d1bc75483b2dff0bc89f2d435eed12f125 +EBUILD samba-3.6.10.ebuild 11840 SHA256 ba9aa733415645964e28e5335f87259ae5971f25a10ef6037033e32cab08fa04 SHA512 7300683ec09d9263312b013e951d116e1244b63ecf16b85274b21c0b1000200767b7275a9354aa0e5d883bc97f2a7ab5725a691b4b30139fece5b8192b06f388 WHIRLPOOL 8939baf3a3af17fe7ec535a90faa1c2231249d83e0c4e1e655fdc1b4b7dc983c858d3fa65346e757ee4bfe92e0c351a45796cda7b5e76f9a666253b5327b125c EBUILD samba-3.6.9.ebuild 11831 SHA256 bfa9bd013875cdc92b2828d02f3c9cd337c8232507d87209f44294dad7873510 SHA512 a431a79aae01c33482340ef25dea7f7fba7b808106143d6df1daf64eb99fdba4b958bf45091cc7ba200dde27dc16dfa8f014e58d51fa52845b1e3d98c75d4e26 WHIRLPOOL 040aa59a6079edcd30b1886df404f7117960e42af4f830b05754b22c4b80f59051c7da35f65d20f875a09819f135e1a7acb0349b4a42cab3dd4053ac7b173fe8 -EBUILD samba-4.0.0_rc4.ebuild 4145 SHA256 b28ae387e3b85f9dac0a7845c0aa41a4d316242e049f285ecf8ebbf3a9992fde SHA512 1d3c6cc513a2ed19c754a651259746805099d405aac12ef66a09871d62264e3abfe94679746cb44ff209c0f516d6926e53d54c26a75d9a13d5aa966027d7c465 WHIRLPOOL 7169e755a85a4bec99f25e2f9a430dfb994f76487b8ffda999be242029a963a015573fcf894d9dfef347f544d35973939a3f92a84828afe6721f82a266cde161 +EBUILD samba-4.0.0.ebuild 3881 SHA256 7fae4f9e0c6b02992a70d0ce110f55436c20f92b81351a8ec4729f958a618be1 SHA512 112e323af226a59e38160515ac135a265269931b6450dbf62e2414791f6841ac7a6682b38e9b458cc831a32ee0083814a5487ad91941804e6e03a6fde84d7537 WHIRLPOOL a35b182a62e1d07f6c99d0c39273ad67d89a0964d1e11d156847af9e3c6f1e18acda70996d3758ebecaeb19ff3ba9d313cd7d7fddd69d69750090fe5f993b910 EBUILD samba-4.0.0_rc5.ebuild 4235 SHA256 b68ed65c086f5e4829d1f1379d00870feeff45683239feec6245ad325d14f08b SHA512 7c03174e4cd2db111dd24512a12366a3104e437ebeceeae734f80caa2379958551ac949bc9d62523fcab5b9f71050aa4493ebc5921703c4b0607edb7611ea13c WHIRLPOOL aad45799e65ac5de203b6bf4cd28d69691beb7ecc5eef190bd53c0cef97ac1fade99e1c8394b21f7deac595f9293c4b4f6ad4014ddc79d95483c1b61293cffa6 -MISC ChangeLog 90130 SHA256 29b6d38f01b16ebf779f5044a2a9974af945fdcb46b428bb65eb72e179965eb8 SHA512 50f1ec8c5af573aa3630a12bafe684648f1a68c599cd9bc67a61cf9ecc5dd85770dcd4eaab3b736dbf3f8b332efe57b28716033ca85291450a0f660b66f647c7 WHIRLPOOL e2902597f6ac203f8991008e70e19453611c72ec91355e71dc056779a34010e1d2665f85fd010155944cb528c338dc0171c5d37bc1c71d9bed63ba35bb4ccb7f +MISC ChangeLog 90464 SHA256 ce47eac17d17df0ae5e092c3944b020bd12c9c216651f94e3cf1aa049117c167 SHA512 65f27cb047446d5c3e72c1c7435c3d99135a140d50cde5d234d6b1857aa4709d26bbac6dec3d2f6ba9a83f0ff0fd27a5d4293e236cd52fdb80634a515450aae1 WHIRLPOOL a1d8a9d2927890bc5eb24a49f43e30709d22b18adf2fd6ad12c50a8fa052a5fcec3f2770484317986250faa866aad7942d71001f3d77b15606e08e4e8b99ec46 MISC metadata.xml 1580 SHA256 bcce2c1233c04b8066d36ca7aae3027c8618eebeea88ebe82e54cbb536c2a0e7 SHA512 38c688ed70818517bb21870872b39e478651b93d380cb36acd8b30c4db691d8157776a3f8eebf93731e6b7c2b5f06d96e202331d585e266a0fd3b12b890697aa WHIRLPOOL b8c85e3168186acd9c157b2e4541c6518a06fba8f319bea38f58078c0bd4a4dd6482a1f1a0eefda4d0cc41c4b4f22e215f15f48244a32e1e7710e71c8b3b8bce -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlC7vUMACgkQkKaRLQcq0GLSygCcDUFINwH5JNgpCPMnGfLNpsrM -u+wAmwWiOt3H6XEBhitMfv5ljtdDMu13 -=PtWk +iQIcBAEBCAAGBQJQyA0QAAoJEPiazRVxLXTFrmUQAKGBXBvgKHZydOZt+MAUBL1R +OmiqefhGTCfhwKvs88sBhaKOA9atAILaSMRTXtZGP892GdlQJwkNkyrYpOFgw6Ss +awvT/VOJHanUHlLGuhEl1rVs11m+cp0+tJ6QANjfdHXSHdfAX0XPI2vcnORngyWh +/DqPNZHvCNtBkAnIgRx5l/wNXnYToH6nrQFCS2LQ0NA2PacBBRSz/0vlY3YgB7TH +dWXrrNIQTrF1qcj7ym0MI+a0Ai6EU6Jdk6dJBu2VYqJ7iUIbGhd4zpIErB5pYZBb +CmqQR0fdChs/k1dWYH9PBFs7o+yBMCoxFjcSvGvQm7Kr8pBwH066KoonGdH3Yw7F +u/o7znQXmpA2zN4ukGoM6QesFP5BouERAjQpayt0ep6o7xAX3ia3UCg524XmaEVu +nCK16SJJzX0Tjbm19ZE0uJkh5LiiG4Nlgmw98Ue/ukeA5lNfRLqdPGjot9NGlL42 +O1ORSFepUkJSbZVgzeUjLzKGtGAlwgravN7ZR4axUMGyQrP5U8D3oRJZcnaKqTIE +Ad6jCh71s5ClRfUsv9DVrO7TBI6Jq5Zdr6f530ka26OOETIvKsQvhGbFHczDG1cD +QXIVQPlDr387izozKvMxcJJ0qIp1kYoEImWuc1KVhDFHbFpcuvnCYnLgp6W2EFvW +AM4VwslT8CwylgXpaCgj +=a03W -----END PGP SIGNATURE----- diff --git a/net-fs/samba/files/4.0/samba4.initd b/net-fs/samba/files/4.0/samba4.initd deleted file mode 100644 index 28b7a9e89cf0..000000000000 --- a/net-fs/samba/files/4.0/samba4.initd +++ /dev/null @@ -1,36 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/4.0/samba4.initd,v 1.2 2012/11/08 14:41:39 vostorga Exp $ - -extra_started_commands="reload" - -description="The samba daemon init script" -description_reload="Reloads the samba daemon" - -depend() { - need net -} - -start_pre() { - # Create a directory if not exists - checkpath --directory /var/run/samba/ -} - -start() { - ebegin "Starting samba" - start-stop-daemon --start --make-pidfile --pidfile /var/run/samba/samba.pid --exec /usr/sbin/samba - eend $? -} - -stop() { - ebegin "Stopping samba" - start-stop-daemon --stop --pidfile /var/run/samba/samba.pid - eend $? -} - -reload() { - ebegin "Reloading samba" - killall -HUP samba - eend $? -} diff --git a/net-fs/samba/samba-3.5.18.ebuild b/net-fs/samba/samba-3.5.18.ebuild deleted file mode 100644 index 7db021779709..000000000000 --- a/net-fs/samba/samba-3.5.18.ebuild +++ /dev/null @@ -1,456 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.5.18.ebuild,v 1.2 2012/10/19 08:10:00 swift Exp $ - -EAPI=4 - -inherit pam versionator multilib eutils - -MY_PV=${PV/_/} -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Library bits of the samba network filesystem" -HOMEPAGE="http://www.samba.org/" -SRC_URI="mirror://samba/${P}.tar.gz - http://dev.gentoo.org/~dagger/files/smb_traffic_analyzer_v2.diff.bz2" -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="acl addns ads +aio avahi caps +client cluster cups debug doc examples fam - ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes smbtav2 - swat syslog winbind" - -# upstream doesn't support cups 1.6 for samba 3.5 -DEPEND="dev-libs/popt - !net-fs/samba-client - !net-fs/samba-libs - !net-fs/samba-server - !net-fs/cifs-utils - sys-libs/talloc - sys-libs/tdb - virtual/libiconv - ads? ( virtual/krb5 sys-fs/e2fsprogs - client? ( sys-apps/keyutils ) ) - avahi? ( net-dns/avahi[dbus] ) - caps? ( sys-libs/libcap ) - client? ( !net-fs/mount-cifs - dev-libs/iniparser ) - cluster? ( >=dev-db/ctdb-1.0.114_p1 ) - cups? ( =sys-libs/readline-5.2 ) - selinux? ( sec-policy/selinux-samba ) - syslog? ( virtual/logger )" - -RDEPEND="${DEPEND}" - -# Disable tests since we don't want to build that much here -RESTRICT="test" - -SBINPROGS="" -BINPROGS="" -KRBPLUGIN="" -PLUGINEXT=".so" -SHAREDMODS="" - -S="${WORKDIR}/${MY_P}/source3" - -# TODO: -# - enable iPrint on Prefix/OSX and Darwin? -# - selftest-prefix? selftest? -# - AFS? - -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" - -REQUIRED_USE=" - ads? ( ldap ) - swat? ( server ) -" - -pkg_setup() { - if use server ; then - SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd" - BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit - bin/profiles bin/sharesec bin/eventlogadm" - - use smbtav2 && BINPROGS="${BINPROGS} bin/smbta-util" - use swat && SBINPROGS="${SBINPROGS} bin/swat" - use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" - use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator" - fi - - if use client ; then - BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree - bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas - bin/ntlm_auth" - - use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall" - fi - - use cups && BINPROGS="${BINPROGS} bin/smbspool" - use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; - - if use winbind ; then - BINPROGS="${BINPROGS} bin/wbinfo" - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash" - use ads && SHAREDMODS="${SHAREDMODS},idmap_ad" - use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex" - fi - - if use winbind && - [[ $(tc-getCC)$ == *gcc* ]] && - [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] - then - eerror "It is a known issue that ${P} will not build with " - eerror "winbind use flag enabled when using gcc < 4.3 ." - eerror "Please use at least the latest stable gcc version." - die "Using sys-devel/gcc < 4.3 with winbind use flag." - fi -} - -src_prepare() { - cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk" - - # ensure that winbind has correct ldflags (QA notice) - sed -i \ - -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ - configure || die "sed failed" - - epatch "${CONFDIR}"/${PN}-3.5.6-kerberos-dummy.patch - use smbtav2 && cd "${WORKDIR}/${P}" && epatch "${WORKDIR}"/smb_traffic_analyzer_v2.diff - cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/${PN}-3.5.8-uclib-build.patch - epatch "${CONFDIR}"/smb.conf.default.patch -} - -src_configure() { - local myconf - - # Filter out -fPIE - [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie" - - # Upstream refuses to make this configurable - use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no - - # use_with doesn't accept 2 USE-flags - if use client && use ads ; then - myconf+=" --with-cifsupcall" - else - myconf+=" --without-cifsupcall" - fi - - if use client && use kernel_linux ; then - myconf+=" --with-cifsmount --with-cifsumount" - else - myconf+=" --without-cifsmount --without-cifsumount" - fi - - #bug #399141 wrap newer iniparser version - has_version ">=dev-libs/iniparser-3.0.0" && \ - export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)" - - # Notes: - # - automount is only needed in conjunction with NIS and we don't have that - # anymore => LDAP? - # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default - econf ${myconf} \ - --with-piddir=/var/run/samba \ - --sysconfdir=/etc/samba \ - --localstatedir=/var \ - $(use_enable debug developer) \ - --enable-largefile \ - --enable-socket-wrapper \ - --enable-nss-wrapper \ - $(use_enable swat) \ - $(use_enable cups) \ - --disable-iprint \ - $(use_enable fam) \ - --enable-shared-libs \ - --disable-dnssd \ - $(use_enable avahi) \ - --with-fhs \ - --with-privatedir=/var/lib/samba/private \ - --with-rootsbindir=/var/cache/samba \ - --with-lockdir=/var/cache/samba \ - --with-swatdir=/usr/share/doc/${PF}/swat \ - --with-configdir=/etc/samba \ - --with-logfilebase=/var/log/samba \ - --with-pammodulesdir=$(getpam_mod_dir) \ - --without-afs \ - --without-fake-kaserver \ - --without-vfs-afsacl \ - $(use_with ldap) \ - $(use_with ads) \ - $(use_with ads krb5 /usr) \ - $(use_with ads dnsupdate) \ - --without-automount \ - $(use_with pam) \ - $(use_with pam pam_smbpass) \ - $(use_with syslog) \ - $(use_with quota quotas) \ - $(use_with quota sys-quotas) \ - --without-utmp \ - --without-lib{talloc,tdb} \ - $(use_with netapi libnetapi) \ - $(use_with smbclient libsmbclient) \ - $(use_with smbsharemodes libsmbsharemodes) \ - $(use_with addns libaddns) \ - $(use_with cluster ctdb /usr) \ - $(use_with cluster cluster-support) \ - $(use_with acl acl-support) \ - $(use_with aio aio-support) \ - --with-sendfile-support \ - $(use_with winbind) \ - --with-shared-modules=${SHAREDMODS} \ - --without-included-popt \ - --without-included-iniparser -} - -src_compile() { - # compile libs - if use addns ; then - einfo "make addns library" - emake libaddns - fi - if use netapi ; then - einfo "make netapi library" - emake libnetapi - fi - if use smbclient ; then - einfo "make smbclient library" - emake libsmbclient - fi - if use smbsharemodes ; then - einfo "make smbsharemodes library" - emake libsmbsharemodes - fi - - # compile modules - emake modules - - # compile pam moudles - if use pam ; then - einfo "make pam modules" - emake pam_modules - fi - - # compile winbind nss modules - if use winbind ; then - einfo "make nss modules" - emake nss_modules - fi - - # compile utilities - if [ -n "${BINPROGS}" ] ; then - einfo "make binprogs" - emake ${BINPROGS} - fi - if [ -n "${SBINPROGS}" ] ; then - einfo "make sbinprogs" - emake ${SBINPROGS} - fi - - if [ -n "${KRBPLUGIN}" ] ; then - einfo "make krbplugin" - emake ${KRBPLUGIN}${PLUGINEXT} - fi - - if use client && use kernel_linux; then - einfo "make {,u}mount.cifs" - emake bin/{,u}mount.cifs - fi -} - -src_install() { - # install libs - if use addns ; then - einfo "install addns library" - emake installlibaddns DESTDIR="${D}" - fi - if use netapi ; then - einfo "install netapi library" - emake installlibnetapi DESTDIR="${D}" - fi - if use smbclient ; then - einfo "install smbclient library" - emake installlibsmbclient DESTDIR="${D}" - fi - if use smbsharemodes ; then - einfo "install smbsharemodes library" - emake installlibsmbsharemodes DESTDIR="${D}" - fi - - # install modules - emake installmodules DESTDIR="${D}" - - if use pam ; then - einfo "install pam modules" - emake installpammodules DESTDIR="${D}" - - if use winbind ; then - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind - doman ../docs/manpages/pam_winbind.8 - # bug #376853 - insinto /etc/security - doins ../examples/pam_winbind/pam_winbind.conf || die - fi - - newpamd "${CONFDIR}/samba.pam" samba - dodoc pam_smbpass/README - fi - - # Nsswitch extensions. Make link for wins and winbind resolvers - if use winbind ; then - einfo "install libwbclient" - emake installlibwbclient DESTDIR="${D}" - dolib.so ../nsswitch/libnss_wins.so - dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 - dolib.so ../nsswitch/libnss_winbind.so - dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 - einfo "install libwbclient related manpages" - doman ../docs/manpages/idmap_rid.8 - doman ../docs/manpages/idmap_hash.8 - if use ldap ; then - doman ../docs/manpages/idmap_adex.8 - doman ../docs/manpages/idmap_ldap.8 - fi - if use ads ; then - doman ../docs/manpages/idmap_ad.8 - fi - fi - - # install binaries - insinto /usr - for prog in ${SBINPROGS} ; do - dosbin ${prog} - doman ../docs/manpages/${prog/bin\/}* - done - - for prog in ${BINPROGS} ; do - dobin ${prog} - doman ../docs/manpages/${prog/bin\/}* - done - - # install krbplugin - if [ -n "${KRBPLUGIN}" ] ; then - if has_version app-crypt/mit-krb5 ; then - insinto /usr/$(get_libdir)/krb5/plugins/libkrb5 - doins ${KRBPLUGIN}${PLUGINEXT} - elif has_version app-crypt/heimdal ; then - insinto /usr/$(get_libdir)/plugin/krb5 - doins ${KRBPLUGIN}${PLUGINEXT} - fi - insinto /usr - for prog in ${KRBPLUGIN} ; do - doman ../docs/manpages/${prog/bin\/}* - done - fi - - # install server components - if use server ; then - doman ../docs/manpages/vfs* ../docs/manpages/samba.7 - - diropts -m0700 - keepdir /var/lib/samba/private - - diropts -m1777 - keepdir /var/spool/samba - - diropts -m0755 - keepdir /var/{cache,log}/samba - keepdir /var/lib/samba/{netlogon,profiles} - keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} - keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext} - - newconfd "${CONFDIR}/samba.confd" samba - newinitd "${CONFDIR}/samba.initd" samba - - insinto /etc/samba - doins "${CONFDIR}"/{smbusers,lmhosts} - - if use ldap ; then - insinto /etc/openldap/schema - doins ../examples/LDAP/samba.schema - fi - - if use swat ; then - insinto /etc/xinetd.d - newins "${CONFDIR}/swat.xinetd" swat - script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" - fi - - dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS - fi - - # install client files ({u,}mount.cifs into /) - if use client && use kernel_linux ; then - into / - dosbin bin/{u,}mount.cifs - doman ../docs/manpages/{u,}mount.cifs.8 - fi - - # install the spooler to cups - if use cups ; then - dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb - fi - - # install misc files - insinto /etc/samba - doins ../examples/smb.conf.default - doman ../docs/manpages/smb.conf.5 - - insinto /usr/"$(get_libdir)"/samba - doins ../codepages/{valid.dat,upcase.dat,lowcase.dat} - - # install docs - if use doc ; then - dohtml -r ../docs/htmldocs/* - dodoc ../docs/*.pdf - fi - - # install examples - if use examples ; then - insinto /usr/share/doc/${PF}/examples - - if use smbclient ; then - doins -r ../examples/libsmbclient - fi - - if use winbind ; then - doins -r ../examples/pam_winbind ../examples/nss - fi - - if use server ; then - cd ../examples - doins -r auth autofs dce-dfs LDAP logon misc pdb \ - perfcounter printer-accounting printing scripts tridge \ - validchars VFS - fi - fi - - # Remove empty installation directories - rmdir --ignore-fail-on-non-empty \ - "${D}/usr/$(get_libdir)/samba" \ - "${D}/usr"/{sbin,bin} \ - "${D}/usr/share"/{man,locale,} \ - "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ - # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" -} - -pkg_postinst() { - elog "The default value of 'wide links' has been changed to 'no' in samba 3.5" - elog "to avoid an insecure default configuration" - elog "('wide links = yes' and 'unix extensions = yes'). For more details," - elog "please see http://www.samba.org/samba/news/symlink_attack.html ." - elog "" - elog "An EXPERIMENTAL implementation of the SMB2 protocol has been added." - elog "SMB2 can be enabled by setting 'max protocol = smb2'. SMB2 is a new " - elog "implementation of the SMB protocol used by Windows Vista and higher" - elog "" - elog "For further information make sure to read the release notes at" - elog "http://samba.org/samba/history/${P}.html and " - elog "http://samba.org/samba/history/${PN}-3.5.0.html" -} diff --git a/net-fs/samba/samba-3.6.10.ebuild b/net-fs/samba/samba-3.6.10.ebuild new file mode 100644 index 000000000000..8e29f5e573f7 --- /dev/null +++ b/net-fs/samba/samba-3.6.10.ebuild @@ -0,0 +1,442 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.10.ebuild,v 1.1 2012/12/12 04:50:23 polynomial-c Exp $ + +EAPI=4 + +inherit pam versionator multilib eutils + +MY_PV=${PV/_/} +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Library bits of the samba network filesystem" +HOMEPAGE="http://www.samba.org/" +SRC_URI="mirror://samba/${MY_P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl addns ads +aio avahi caps +client cluster cups debug dmapi doc examples fam + ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes + swat syslog winbind" + +DEPEND="dev-libs/popt + >=sys-libs/talloc-2.0.5 + >=sys-libs/tdb-1.2.9 + virtual/libiconv + ads? ( virtual/krb5 sys-fs/e2fsprogs + client? ( sys-apps/keyutils + kernel_linux? ( net-fs/cifs-utils[ads] ) ) ) + avahi? ( net-dns/avahi[dbus] ) + caps? ( sys-libs/libcap ) + client? ( !net-fs/mount-cifs + dev-libs/iniparser + kernel_linux? ( net-fs/cifs-utils ) ) + cluster? ( >=dev-db/ctdb-1.13 ) + cups? ( net-print/cups ) + debug? ( dev-libs/dmalloc ) + dmapi? ( sys-apps/dmapi ) + fam? ( virtual/fam ) + ldap? ( net-nds/openldap ) + ldb? ( sys-libs/ldb ) + pam? ( virtual/pam + winbind? ( dev-libs/iniparser ) + ) + readline? ( >=sys-libs/readline-5.2 ) + selinux? ( sec-policy/selinux-samba ) + syslog? ( virtual/logger )" + +RDEPEND="${DEPEND}" + +# Disable tests since we don't want to build that much here +RESTRICT="test" + +SBINPROGS="" +BINPROGS="" +KRBPLUGIN="" +PLUGINEXT=".so" +SHAREDMODS="" + +S="${WORKDIR}/${MY_P}/source3" + +# TODO: +# - enable iPrint on Prefix/OSX and Darwin? +# - selftest-prefix? selftest? +# - AFS? + +CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" + +REQUIRED_USE=" + ads? ( ldap ) + swat? ( server ) +" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if use winbind && + [[ $(tc-getCC)$ == *gcc* ]] && + [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] + then + eerror "It is a known issue that ${P} will not build with " + eerror "winbind use flag enabled when using gcc < 4.3 ." + eerror "Please use at least the latest stable gcc version." + die "Using sys-devel/gcc < 4.3 with winbind use flag." + fi + fi +} + +pkg_setup() { + if use server ; then + SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd" + BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit + bin/profiles bin/sharesec bin/eventlogadm bin/smbta-util" + + use swat && SBINPROGS="${SBINPROGS} bin/swat" + use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" + use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator" + fi + + if use client ; then + BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree + bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas + bin/ntlm_auth" + + fi + + use cups && BINPROGS="${BINPROGS} bin/smbspool" +# use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; + + if use winbind ; then + BINPROGS="${BINPROGS} bin/wbinfo" + SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash" + use ads && SHAREDMODS="${SHAREDMODS},idmap_ad" + use cluster && SHAREDMODS="${SHAREDMODS},idmap_tdb2" + use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex" + fi +} + +src_prepare() { + cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk" + + # ensure that winbind has correct ldflags (QA notice) + sed -i \ + -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ + configure || die "sed failed" + cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/smb.conf.default.patch +} + +src_configure() { + local myconf + + # Filter out -fPIE + [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie" + + # http://wiki.samba.org/index.php/CTDB_Setup + use cluster && myconf+=" --disable-pie" + + # Upstream refuses to make this configurable + use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no + + #bug #399141 wrap newer iniparser version + has_version ">=dev-libs/iniparser-3.0.0" && \ + export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)" + + # Notes: + # - automount is only needed in conjunction with NIS and we don't have that + # anymore => LDAP? + # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default + econf ${myconf} \ + --with-piddir=/var/run/samba \ + --sysconfdir=/etc/samba \ + --localstatedir=/var \ + $(use_enable debug developer) \ + --enable-largefile \ + --enable-socket-wrapper \ + --enable-nss-wrapper \ + $(use_enable swat) \ + $(use_enable debug dmalloc) \ + $(use_enable cups) \ + --disable-iprint \ + $(use_enable fam) \ + --enable-shared-libs \ + --disable-dnssd \ + $(use_enable avahi) \ + --with-fhs \ + --with-privatedir=/var/lib/samba/private \ + --with-rootsbindir=/var/cache/samba \ + --with-lockdir=/var/cache/samba \ + --with-swatdir=/usr/share/doc/${PF}/swat \ + --with-configdir=/etc/samba \ + --with-logfilebase=/var/log/samba \ + --with-pammodulesdir=$(getpam_mod_dir) \ + $(use_with dmapi) \ + --without-afs \ + --without-fake-kaserver \ + --without-vfs-afsacl \ + $(use_with ldap) \ + $(use_with ads) \ + $(use_with ads krb5 /usr) \ + $(use_with ads dnsupdate) \ + --without-automount \ + $(use_with pam) \ + $(use_with pam pam_smbpass) \ + $(use_with syslog) \ + $(use_with quota quotas) \ + $(use_with quota sys-quotas) \ + --without-utmp \ + --without-lib{talloc,tdb} \ + $(use_with netapi libnetapi) \ + $(use_with smbclient libsmbclient) \ + $(use_with smbsharemodes libsmbsharemodes) \ + $(use_with addns libaddns) \ + $(use_with cluster ctdb /usr) \ + $(use_with cluster cluster-support) \ + $(use_with acl acl-support) \ + $(use_with aio aio-support) \ + --with-sendfile-support \ + $(use_with winbind) \ + --with-shared-modules=${SHAREDMODS} \ + --without-included-popt \ + --without-included-iniparser +} + +src_compile() { + # compile libs + if use addns ; then + einfo "make addns library" + emake libaddns + fi + if use netapi ; then + einfo "make netapi library" + emake libnetapi + fi + if use smbclient ; then + einfo "make smbclient library" + emake libsmbclient + fi + if use smbsharemodes ; then + einfo "make smbsharemodes library" + emake libsmbsharemodes + fi + + # compile modules + emake modules + + # compile pam moudles + if use pam ; then + einfo "make pam modules" + emake pam_modules + fi + + # compile winbind nss modules + if use winbind ; then + einfo "make nss modules" + emake nss_modules + fi + + # compile utilities + if [ -n "${BINPROGS}" ] ; then + einfo "make binprogs" + emake ${BINPROGS} + fi + if [ -n "${SBINPROGS}" ] ; then + einfo "make sbinprogs" + emake ${SBINPROGS} + fi + + if [ -n "${KRBPLUGIN}" ] ; then + einfo "make krbplugin" + emake ${KRBPLUGIN}${PLUGINEXT} + fi + +} + +src_install() { + # install libs + if use addns ; then + einfo "install addns library" + emake installlibaddns DESTDIR="${D}" + fi + if use netapi ; then + einfo "install netapi library" + emake installlibnetapi DESTDIR="${D}" + fi + if use smbclient ; then + einfo "install smbclient library" + emake installlibsmbclient DESTDIR="${D}" + fi + if use smbsharemodes ; then + einfo "install smbsharemodes library" + emake installlibsmbsharemodes DESTDIR="${D}" + fi + + # install modules + emake installmodules DESTDIR="${D}" + + if use pam ; then + einfo "install pam modules" + emake installpammodules DESTDIR="${D}" + + if use winbind ; then + newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind + doman ../docs/manpages/pam_winbind.8 + # bug #376853 + insinto /etc/security + doins ../examples/pam_winbind/pam_winbind.conf || die + fi + + newpamd "${CONFDIR}/samba.pam" samba + dodoc pam_smbpass/README + fi + + # Nsswitch extensions. Make link for wins and winbind resolvers + if use winbind ; then + einfo "install libwbclient" + emake installlibwbclient DESTDIR="${D}" + dolib.so ../nsswitch/libnss_wins.so + dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 + dolib.so ../nsswitch/libnss_winbind.so + dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 + einfo "install libwbclient related manpages" + doman ../docs/manpages/idmap_rid.8 + doman ../docs/manpages/idmap_hash.8 + if use ldap ; then + doman ../docs/manpages/idmap_adex.8 + doman ../docs/manpages/idmap_ldap.8 + fi + if use ads ; then + doman ../docs/manpages/idmap_ad.8 + fi + fi + + # install binaries + insinto /usr + for prog in ${SBINPROGS} ; do + dosbin ${prog} + doman ../docs/manpages/${prog/bin\/}* + done + + for prog in ${BINPROGS} ; do + dobin ${prog} + doman ../docs/manpages/${prog/bin\/}* + done + + # install scripts + if use client ; then + dobin script/findsmb + doman ../docs/manpages/findsmb.1 + fi + + # install krbplugin + if [ -n "${KRBPLUGIN}" ] ; then + if has_version app-crypt/mit-krb5 ; then + insinto /usr/$(get_libdir)/krb5/plugins/libkrb5 + doins ${KRBPLUGIN}${PLUGINEXT} + elif has_version app-crypt/heimdal ; then + insinto /usr/$(get_libdir)/plugin/krb5 + doins ${KRBPLUGIN}${PLUGINEXT} + fi + insinto /usr + for prog in ${KRBPLUGIN} ; do + doman ../docs/manpages/${prog/bin\/}* + done + fi + + # install server components + if use server ; then + doman ../docs/manpages/vfs* ../docs/manpages/samba.7 + + diropts -m0700 + keepdir /var/lib/samba/private + + diropts -m1777 + keepdir /var/spool/samba + + diropts -m0755 + keepdir /var/{cache,log}/samba + keepdir /var/lib/samba/{netlogon,profiles} + keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} + keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext} + + newconfd "${CONFDIR}/samba.confd" samba + newinitd "${CONFDIR}/samba.initd" samba + + insinto /etc/samba + doins "${CONFDIR}"/{smbusers,lmhosts} + + if use ldap ; then + insinto /etc/openldap/schema + doins ../examples/LDAP/samba.schema + fi + + if use swat ; then + insinto /etc/xinetd.d + newins "${CONFDIR}/swat.xinetd" swat + script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" + fi + + dodoc ../MAINTAINERS.txt ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS + fi + + # install the spooler to cups + if use cups ; then + dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb + fi + + # install misc files + insinto /etc/samba + doins ../examples/smb.conf.default + doman ../docs/manpages/smb.conf.5 + + insinto /usr/"$(get_libdir)"/samba + doins ../codepages/{valid.dat,upcase.dat,lowcase.dat} + + # install docs + if use doc ; then + dohtml -r ../docs/htmldocs/* + dodoc ../docs/*.pdf + fi + + # install examples + if use examples ; then + insinto /usr/share/doc/${PF}/examples + + if use smbclient ; then + doins -r ../examples/libsmbclient + fi + + if use winbind ; then + doins -r ../examples/pam_winbind ../examples/nss + fi + + if use server ; then + cd ../examples + doins -r auth autofs dce-dfs LDAP logon misc pdb \ + perfcounter printer-accounting printing scripts tridge \ + validchars VFS + fi + fi + + # Remove empty installation directories + rmdir --ignore-fail-on-non-empty \ + "${D}/usr/$(get_libdir)/samba" \ + "${D}/usr"/{sbin,bin} \ + "${D}/usr/share"/{man,locale,} \ + "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ + # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" +} + +pkg_postinst() { + elog "Samba 3.6 has adopted a number of improved security defaults that" + elog "will impact on existing users of Samba." + elog " client ntlmv2 auth = yes" + elog " client use spnego principal = no" + elog " send spnego principal = no" + elog "" + elog "SMB2 protocol support in 3.6.0 is fully functional and can be " + elog "enabled by setting 'max protocol = smb2'. SMB2 is a new " + elog "implementation of the SMB protocol used by Windows Vista and higher" + elog "" + elog "For further information make sure to read the release notes at" + elog "http://samba.org/samba/history/${P}.html and " + elog "http://samba.org/samba/history/${PN}-3.6.0.html" +} diff --git a/net-fs/samba/samba-3.6.6.ebuild b/net-fs/samba/samba-3.6.6.ebuild deleted file mode 100644 index 36f10d92ed83..000000000000 --- a/net-fs/samba/samba-3.6.6.ebuild +++ /dev/null @@ -1,436 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.6.ebuild,v 1.2 2012/10/19 08:10:00 swift Exp $ - -EAPI=4 - -inherit pam versionator multilib eutils - -MY_PV=${PV/_/} -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Library bits of the samba network filesystem" -HOMEPAGE="http://www.samba.org/" -SRC_URI="mirror://samba/${MY_P}.tar.gz" -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~x86 ~amd64-fbsd ~x86-fbsd" -IUSE="acl addns ads +aio avahi caps +client cluster cups debug doc examples fam - ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes - swat syslog winbind" - -DEPEND="dev-libs/popt - >=sys-libs/talloc-2.0.5 - >=sys-libs/tdb-1.2.9 - virtual/libiconv - ads? ( virtual/krb5 sys-fs/e2fsprogs - client? ( sys-apps/keyutils - kernel_linux? ( net-fs/cifs-utils[ads] ) ) ) - avahi? ( net-dns/avahi[dbus] ) - caps? ( sys-libs/libcap ) - client? ( !net-fs/mount-cifs - dev-libs/iniparser - kernel_linux? ( net-fs/cifs-utils ) ) - cluster? ( >=dev-db/ctdb-1.13 ) - cups? ( net-print/cups ) - debug? ( dev-libs/dmalloc ) - fam? ( virtual/fam ) - ldap? ( net-nds/openldap ) - ldb? ( sys-libs/ldb ) - pam? ( virtual/pam - winbind? ( dev-libs/iniparser ) - ) - readline? ( >=sys-libs/readline-5.2 ) - selinux? ( sec-policy/selinux-samba ) - syslog? ( virtual/logger )" - -RDEPEND="${DEPEND}" - -# Disable tests since we don't want to build that much here -RESTRICT="test" - -SBINPROGS="" -BINPROGS="" -KRBPLUGIN="" -PLUGINEXT=".so" -SHAREDMODS="" - -S="${WORKDIR}/${MY_P}/source3" - -# TODO: -# - enable iPrint on Prefix/OSX and Darwin? -# - selftest-prefix? selftest? -# - AFS? - -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" - -REQUIRED_USE=" - ads? ( ldap ) - swat? ( server ) -" - -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - if use winbind && - [[ $(tc-getCC)$ == *gcc* ]] && - [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] - then - eerror "It is a known issue that ${P} will not build with " - eerror "winbind use flag enabled when using gcc < 4.3 ." - eerror "Please use at least the latest stable gcc version." - die "Using sys-devel/gcc < 4.3 with winbind use flag." - fi - fi -} - -pkg_setup() { - if use server ; then - SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd" - BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit - bin/profiles bin/sharesec bin/eventlogadm bin/smbta-util" - - use swat && SBINPROGS="${SBINPROGS} bin/swat" - use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" - use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator" - fi - - if use client ; then - BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree - bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas - bin/ntlm_auth" - - fi - - use cups && BINPROGS="${BINPROGS} bin/smbspool" -# use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; - - if use winbind ; then - BINPROGS="${BINPROGS} bin/wbinfo" - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash" - use ads && SHAREDMODS="${SHAREDMODS},idmap_ad" - use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex" - fi -} - -src_prepare() { - cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk" - - # ensure that winbind has correct ldflags (QA notice) - sed -i \ - -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ - configure || die "sed failed" - cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/smb.conf.default.patch -} - -src_configure() { - local myconf - - # Filter out -fPIE - [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie" - - # Upstream refuses to make this configurable - use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no - - #bug #399141 wrap newer iniparser version - has_version ">=dev-libs/iniparser-3.0.0" && \ - export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)" - - # Notes: - # - automount is only needed in conjunction with NIS and we don't have that - # anymore => LDAP? - # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default - econf ${myconf} \ - --with-piddir=/var/run/samba \ - --sysconfdir=/etc/samba \ - --localstatedir=/var \ - $(use_enable debug developer) \ - --enable-largefile \ - --enable-socket-wrapper \ - --enable-nss-wrapper \ - $(use_enable swat) \ - $(use_enable debug dmalloc) \ - $(use_enable cups) \ - --disable-iprint \ - $(use_enable fam) \ - --enable-shared-libs \ - --disable-dnssd \ - $(use_enable avahi) \ - --with-fhs \ - --with-privatedir=/var/lib/samba/private \ - --with-rootsbindir=/var/cache/samba \ - --with-lockdir=/var/cache/samba \ - --with-swatdir=/usr/share/doc/${PF}/swat \ - --with-configdir=/etc/samba \ - --with-logfilebase=/var/log/samba \ - --with-pammodulesdir=$(getpam_mod_dir) \ - --without-afs \ - --without-fake-kaserver \ - --without-vfs-afsacl \ - $(use_with ldap) \ - $(use_with ads) \ - $(use_with ads krb5 /usr) \ - $(use_with ads dnsupdate) \ - --without-automount \ - $(use_with pam) \ - $(use_with pam pam_smbpass) \ - $(use_with syslog) \ - $(use_with quota quotas) \ - $(use_with quota sys-quotas) \ - --without-utmp \ - --without-lib{talloc,tdb} \ - $(use_with netapi libnetapi) \ - $(use_with smbclient libsmbclient) \ - $(use_with smbsharemodes libsmbsharemodes) \ - $(use_with addns libaddns) \ - $(use_with cluster ctdb /usr) \ - $(use_with cluster cluster-support) \ - $(use_with acl acl-support) \ - $(use_with aio aio-support) \ - --with-sendfile-support \ - $(use_with winbind) \ - --with-shared-modules=${SHAREDMODS} \ - --without-included-popt \ - --without-included-iniparser -} - -src_compile() { - # compile libs - if use addns ; then - einfo "make addns library" - emake libaddns - fi - if use netapi ; then - einfo "make netapi library" - emake libnetapi - fi - if use smbclient ; then - einfo "make smbclient library" - emake libsmbclient - fi - if use smbsharemodes ; then - einfo "make smbsharemodes library" - emake libsmbsharemodes - fi - - # compile modules - emake modules - - # compile pam moudles - if use pam ; then - einfo "make pam modules" - emake pam_modules - fi - - # compile winbind nss modules - if use winbind ; then - einfo "make nss modules" - emake nss_modules - fi - - # compile utilities - if [ -n "${BINPROGS}" ] ; then - einfo "make binprogs" - emake ${BINPROGS} - fi - if [ -n "${SBINPROGS}" ] ; then - einfo "make sbinprogs" - emake ${SBINPROGS} - fi - - if [ -n "${KRBPLUGIN}" ] ; then - einfo "make krbplugin" - emake ${KRBPLUGIN}${PLUGINEXT} - fi - -} - -src_install() { - # install libs - if use addns ; then - einfo "install addns library" - emake installlibaddns DESTDIR="${D}" - fi - if use netapi ; then - einfo "install netapi library" - emake installlibnetapi DESTDIR="${D}" - fi - if use smbclient ; then - einfo "install smbclient library" - emake installlibsmbclient DESTDIR="${D}" - fi - if use smbsharemodes ; then - einfo "install smbsharemodes library" - emake installlibsmbsharemodes DESTDIR="${D}" - fi - - # install modules - emake installmodules DESTDIR="${D}" - - if use pam ; then - einfo "install pam modules" - emake installpammodules DESTDIR="${D}" - - if use winbind ; then - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind - doman ../docs/manpages/pam_winbind.8 - # bug #376853 - insinto /etc/security - doins ../examples/pam_winbind/pam_winbind.conf || die - fi - - newpamd "${CONFDIR}/samba.pam" samba - dodoc pam_smbpass/README - fi - - # Nsswitch extensions. Make link for wins and winbind resolvers - if use winbind ; then - einfo "install libwbclient" - emake installlibwbclient DESTDIR="${D}" - dolib.so ../nsswitch/libnss_wins.so - dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2 - dolib.so ../nsswitch/libnss_winbind.so - dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2 - einfo "install libwbclient related manpages" - doman ../docs/manpages/idmap_rid.8 - doman ../docs/manpages/idmap_hash.8 - if use ldap ; then - doman ../docs/manpages/idmap_adex.8 - doman ../docs/manpages/idmap_ldap.8 - fi - if use ads ; then - doman ../docs/manpages/idmap_ad.8 - fi - fi - - # install binaries - insinto /usr - for prog in ${SBINPROGS} ; do - dosbin ${prog} - doman ../docs/manpages/${prog/bin\/}* - done - - for prog in ${BINPROGS} ; do - dobin ${prog} - doman ../docs/manpages/${prog/bin\/}* - done - - # install scripts - if use client ; then - dobin script/findsmb - doman ../docs/manpages/findsmb.1 - fi - - # install krbplugin - if [ -n "${KRBPLUGIN}" ] ; then - if has_version app-crypt/mit-krb5 ; then - insinto /usr/$(get_libdir)/krb5/plugins/libkrb5 - doins ${KRBPLUGIN}${PLUGINEXT} - elif has_version app-crypt/heimdal ; then - insinto /usr/$(get_libdir)/plugin/krb5 - doins ${KRBPLUGIN}${PLUGINEXT} - fi - insinto /usr - for prog in ${KRBPLUGIN} ; do - doman ../docs/manpages/${prog/bin\/}* - done - fi - - # install server components - if use server ; then - doman ../docs/manpages/vfs* ../docs/manpages/samba.7 - - diropts -m0700 - keepdir /var/lib/samba/private - - diropts -m1777 - keepdir /var/spool/samba - - diropts -m0755 - keepdir /var/{cache,log}/samba - keepdir /var/lib/samba/{netlogon,profiles} - keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR} - keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext} - - newconfd "${CONFDIR}/samba.confd" samba - newinitd "${CONFDIR}/samba.initd" samba - - insinto /etc/samba - doins "${CONFDIR}"/{smbusers,lmhosts} - - if use ldap ; then - insinto /etc/openldap/schema - doins ../examples/LDAP/samba.schema - fi - - if use swat ; then - insinto /etc/xinetd.d - newins "${CONFDIR}/swat.xinetd" swat - script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}" - fi - - dodoc ../MAINTAINERS.txt ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS - fi - - # install the spooler to cups - if use cups ; then - dosym /usr/bin/smbspool $(cups-config --serverbin)/backend/smb - fi - - # install misc files - insinto /etc/samba - doins ../examples/smb.conf.default - doman ../docs/manpages/smb.conf.5 - - insinto /usr/"$(get_libdir)"/samba - doins ../codepages/{valid.dat,upcase.dat,lowcase.dat} - - # install docs - if use doc ; then - dohtml -r ../docs/htmldocs/* - dodoc ../docs/*.pdf - fi - - # install examples - if use examples ; then - insinto /usr/share/doc/${PF}/examples - - if use smbclient ; then - doins -r ../examples/libsmbclient - fi - - if use winbind ; then - doins -r ../examples/pam_winbind ../examples/nss - fi - - if use server ; then - cd ../examples - doins -r auth autofs dce-dfs LDAP logon misc pdb \ - perfcounter printer-accounting printing scripts tridge \ - validchars VFS - fi - fi - - # Remove empty installation directories - rmdir --ignore-fail-on-non-empty \ - "${D}/usr/$(get_libdir)/samba" \ - "${D}/usr"/{sbin,bin} \ - "${D}/usr/share"/{man,locale,} \ - "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ - # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" -} - -pkg_postinst() { - elog "Samba 3.6 has adopted a number of improved security defaults that" - elog "will impact on existing users of Samba." - elog " client ntlmv2 auth = yes" - elog " client use spnego principal = no" - elog " send spnego principal = no" - elog "" - elog "SMB2 protocol support in 3.6.0 is fully functional and can be " - elog "enabled by setting 'max protocol = smb2'. SMB2 is a new " - elog "implementation of the SMB protocol used by Windows Vista and higher" - elog "" - elog "For further information make sure to read the release notes at" - elog "http://samba.org/samba/history/${P}.html and " - elog "http://samba.org/samba/history/${PN}-3.6.0.html" -} diff --git a/net-fs/samba/samba-4.0.0.ebuild b/net-fs/samba/samba-4.0.0.ebuild new file mode 100644 index 000000000000..a6ca08d7133a --- /dev/null +++ b/net-fs/samba/samba-4.0.0.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.0.ebuild,v 1.1 2012/12/12 04:50:23 polynomial-c Exp $ + +EAPI=4 +PYTHON_DEPEND="2" + +inherit confutils python waf-utils multilib linux-info + +MY_PV="${PV/_rc/rc}" +MY_P="${PN}-${MY_PV}" + +if [ "${PV}" = "4.9999" ]; then + EGIT_REPO_URI="git://git.samba.org/samba.git" + KEYWORDS="" + inherit git-2 +else + SRC_URI="mirror://samba/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Samba Suite Version 4" +HOMEPAGE="http://www.samba.org/" +LICENSE="GPL-3" + +SLOT="0" + +IUSE="acl addns ads aio avahi client cluster cups debug fulltest gnutls iprint +ldap pam quota selinux swat syslog winbind" + +RDEPEND="dev-libs/iniparser + dev-libs/popt + sys-libs/readline + virtual/libiconv + >=dev-lang/python-2.4.2 + dev-python/subunit + sys-libs/libcap + >=sys-libs/ldb-1.1.13 + >=sys-libs/tdb-1.2.10[python] + >=sys-libs/talloc-2.0.7[python] + >=sys-libs/tevent-0.9.17 + sys-libs/zlib + >=app-crypt/heimdal-1.5[-ssl] + ads? ( client? ( net-fs/cifs-utils[ads] ) ) + client? ( net-fs/cifs-utils ) + cluster? ( >=dev-db/ctdb-1.0.114_p1 ) + ldap? ( net-nds/openldap[kerberos] ) + gnutls? ( >=net-libs/gnutls-1.4.0 ) + selinux? ( sec-policy/selinux-samba )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +RESTRICT="mirror" + +S="${WORKDIR}/${MY_P}" + +CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" + +WAF_BINARY="${S}/buildtools/bin/waf" + +pkg_setup() { + confutils_use_depend_all fulltest test + + python_set_active_version 2 + python_pkg_setup + + if use aio; then + if ! linux_config_exists || ! linux_chkconfig_present AIO; then + ewarn "You must enable AIO support in your kernel config, " + ewarn "to be able to support asynchronous I/O. " + ewarn "You can find it at" + ewarn + ewarn "General Support" + ewarn " Enable AIO support " + ewarn + ewarn "and recompile your kernel..." + fi + fi +} + +src_configure() { + local myconf='' + if use "debug"; then + myconf="${myconf} --enable-developer" + fi + if use "cluster"; then + myconf="${myconf} --with-ctdb-dir=/usr" + fi + myconf="${myconf} \ + --enable-fhs \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-modulesdir=/usr/$(get_libdir) \ + --disable-rpath \ + --disable-rpath-install \ + --nopyc \ + --nopyo \ + --disable-ntdb \ + --bundled-libraries=NONE \ + --builtin-libraries=NONE \ + $(use_with addns dnsupdate) \ + $(use_with acl) \ + $(use_with ads) \ + $(use_with aio aio-support) \ + $(use_enable avahi) \ + $(use_with cluster cluster-support) \ + $(use_enable cups) \ + $(use_enable gnutls) \ + $(use_enable iprint) \ + $(use_with ldap) \ + $(use_with pam) \ + $(use_with pam pam_smbpass) \ + $(use_with quota) \ + $(use_with syslog) \ + $(use_with swat) \ + $(use_with winbind)" + CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \ + waf-utils_src_configure ${myconf} +} + +src_install() { + waf-utils_src_install + + # Make all .so files executable + find "${D}" -type f -name "*.so" -exec chmod +x {} + + + # Move all LDB modules to their correct path + mkdir -p "${D}"/usr/$(get_libdir)/ldb/modules/ldb + mv "${D}"/usr/$(get_libdir)/ldb/*.so "${D}"/usr/$(get_libdir)/ldb/modules/ldb + + # Install init script and conf.d file + newinitd "${CONFDIR}/samba4.initd-r1" samba || die "newinitd failed" + newconfd "${CONFDIR}/samba4.confd" samba || die "newconfd failed" +} + +src_test() { + local extra_opts="" + use fulltest || extra_opts+="--quick" + "${WAF_BINARY}" test ${extra_opts} || die "test failed" +} + +pkg_postinst() { + # Optimize the python modules so they get properly removed + python_mod_optimize "${PN}" + + # Warn that it's a release candidate + ewarn "This is not necessarily compatible with samba-3. Read the wiki page." + + einfo "See http://wiki.samba.org/index.php/Samba4/HOWTO for more" + einfo "information about samba 4." +} + +pkg_postrm() { + # Clean up the python modules + python_mod_cleanup "${PN}" +} diff --git a/net-fs/samba/samba-4.0.0_rc4.ebuild b/net-fs/samba/samba-4.0.0_rc4.ebuild deleted file mode 100644 index d8c3549d459d..000000000000 --- a/net-fs/samba/samba-4.0.0_rc4.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.0_rc4.ebuild,v 1.2 2012/11/12 18:32:50 vostorga Exp $ - -EAPI=4 -PYTHON_DEPEND="2" - -inherit confutils python waf-utils multilib linux-info - -MY_PV="${PV/_rc/rc}" -MY_P="${PN}-${MY_PV}" - -if [ "${PV}" = "4.9999" ]; then - EGIT_REPO_URI="git://git.samba.org/samba.git" - KEYWORDS="" - inherit git-2 -else - SRC_URI="mirror://samba/rc/${MY_P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -DESCRIPTION="Samba Suite Version 4" -HOMEPAGE="http://www.samba.org/" -LICENSE="GPL-3" - -SLOT="0" - -IUSE="acl addns ads aio avahi client cluster cups debug fulltest gnutls iprint -ldap pam quota selinux swat syslog winbind" - -RDEPEND="dev-libs/iniparser - dev-libs/popt - sys-libs/readline - virtual/libiconv - >=dev-lang/python-2.4.2 - dev-python/subunit - sys-libs/libcap - >=sys-libs/ldb-1.1.13 - >=sys-libs/tdb-1.2.10[python] - >=sys-libs/talloc-2.0.7[python] - >=sys-libs/tevent-0.9.17 - sys-libs/zlib - >=app-crypt/heimdal-1.5[-ssl] - ads? ( client? ( net-fs/cifs-utils[ads] ) ) - client? ( net-fs/cifs-utils ) - cluster? ( >=dev-db/ctdb-1.0.114_p1 ) - ldap? ( net-nds/openldap ) - gnutls? ( >=net-libs/gnutls-1.4.0 ) - selinux? ( sec-policy/selinux-samba )" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -RESTRICT="mirror" - -S="${WORKDIR}/${MY_P}" - -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" - -WAF_BINARY="${S}/buildtools/bin/waf" - -pkg_setup() { - confutils_use_depend_all fulltest test - - python_set_active_version 2 - python_pkg_setup - - if use aio; then - if ! linux_config_exists || ! linux_chkconfig_present AIO; then - ewarn "You must enable AIO support in your kernel config, " - ewarn "to be able to support asynchronous I/O. " - ewarn "You can find it at" - ewarn - ewarn "General Support" - ewarn " Enable AIO support " - ewarn - ewarn "and recompile your kernel..." - fi - fi -} - -src_configure() { - local myconf='' - if use "debug"; then - myconf="${myconf} --enable-developer" - fi - if use "cluster"; then - myconf="${myconf} --with-ctdb-dir=/usr" - fi - myconf="${myconf} \ - --enable-fhs \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --with-modulesdir=/usr/$(get_libdir) \ - --disable-rpath \ - --disable-rpath-install \ - --nopyc \ - --nopyo \ - --disable-ntdb \ - --bundled-libraries=NONE \ - --builtin-libraries=NONE \ - $(use_with addns dnsupdate) \ - $(use_with acl) \ - $(use_with ads) \ - $(use_with aio aio-support) \ - $(use_enable avahi) \ - $(use_with cluster cluster-support) \ - $(use_enable cups) \ - $(use_enable gnutls) \ - $(use_enable iprint) \ - $(use_with ldap) \ - $(use_with pam) \ - $(use_with pam pam_smbpass) \ - $(use_with quota) \ - $(use_with syslog) \ - $(use_with swat) \ - $(use_with winbind)" - CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \ - waf-utils_src_configure ${myconf} -} - -src_install() { - waf-utils_src_install - - # Make all .so files executable - find "${D}" -type f -name "*.so" -exec chmod +x {} + - - # Move all LDB modules to their correct path - mkdir -p "${D}"/usr/$(get_libdir)/ldb/modules/ldb - mv "${D}"/usr/$(get_libdir)/ldb/*.so "${D}"/usr/$(get_libdir)/ldb/modules/ldb - - # Install init script - newinitd "${CONFDIR}/samba4.initd" samba || die "newinitd failed" -} - -src_test() { - local extra_opts="" - use fulltest || extra_opts+="--quick" - "${WAF_BINARY}" test ${extra_opts} || die "test failed" -} - -pkg_postinst() { - # Optimize the python modules so they get properly removed - python_mod_optimize "${PN}" - - # Warn that it's a release candidate - ewarn "This is not a final Samba release, however the Samba Team is now making" - ewarn "good progress towards a Samba 4.0 release, of which this is a preview." - ewarn "Be aware the this release contains the best of all of Samba's" - ewarn "technology parts, both a file server (that you can reasonably expect" - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" - ewarn "controller work previously known as 'samba4'." - - einfo "See http://wiki.samba.org/index.php/Samba4/HOWTO for more" - einfo "information about samba 4." -} - -pkg_postrm() { - # Clean up the python modules - python_mod_cleanup "${PN}" -} -- cgit v1.2.3-65-gdbad