diff options
author | Patrick Lauer <patrick@gentoo.org> | 2013-08-05 04:41:32 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2013-08-05 04:41:32 +0000 |
commit | e52d699ca5189acc171801958fa494a50c55bda1 (patch) | |
tree | d4d2c9593f3b4f93354a30f0f72e705161d1d39c /net-fs | |
parent | Bump ruby deps for #479584 (diff) | |
download | historical-e52d699ca5189acc171801958fa494a50c55bda1.tar.gz historical-e52d699ca5189acc171801958fa494a50c55bda1.tar.bz2 historical-e52d699ca5189acc171801958fa494a50c55bda1.zip |
Bump for #479710. ntdb is now mandatory. swat is removed.
Package-Manager: portage-2.2.0_alpha194/cvs/Linux x86_64
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/samba/ChangeLog | 8 | ||||
-rw-r--r-- | net-fs/samba/Manifest | 7 | ||||
-rw-r--r-- | net-fs/samba/files/4.1/com_err.patch | 35 | ||||
-rw-r--r-- | net-fs/samba/files/4.1/samba4.confd | 38 | ||||
-rw-r--r-- | net-fs/samba/files/4.1/samba4.initd-r1 | 59 | ||||
-rw-r--r-- | net-fs/samba/samba-4.1.0_rc1.ebuild | 150 |
6 files changed, 295 insertions, 2 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog index 02e40b244077..bb7956e2317f 100644 --- a/net-fs/samba/ChangeLog +++ b/net-fs/samba/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-fs/samba # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.586 2013/07/26 07:57:32 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.587 2013/08/05 04:41:22 patrick Exp $ + +*samba-4.1.0_rc1 (05 Aug 2013) + + 05 Aug 2013; Patrick Lauer <patrick@gentoo.org> +files/4.1/com_err.patch, + +files/4.1/samba4.confd, +files/4.1/samba4.initd-r1, +samba-4.1.0_rc1.ebuild: + Bump for #479710. ntdb is now mandatory. swat is removed. 26 Jul 2013; Patrick Lauer <patrick@gentoo.org> samba-3.5.21.ebuild: Disable cups in samba-3.5 since it depends on old versions that were removed. diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest index 052e5021854e..0defb2b621ec 100644 --- a/net-fs/samba/Manifest +++ b/net-fs/samba/Manifest @@ -22,6 +22,9 @@ AUX 3.6/system-auth-winbind.pam 704 SHA256 42c80d953da2472d789c3de1311045285428a 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-r1 1575 SHA256 4d00243dbd85ee81e2e989f1ac8035c1c1b9379133584291b959bb7bc45fe780 SHA512 941a4f8e6c839d11140c4caa3efd65176e11f07194e43f37e4f97f9c0e7ee4e8696093876c4b21f808cedcd80d3f7810b3fdcd126a8a0fa87e922299ea605e2c WHIRLPOOL 379166290c15c405c7ff50f6bf2654607282bff71546aa79279bdcd2a00cbb21989f42bb2d0be0588c174db2712b39b4e3eece56104b2ebe6ebbedccb69eb354 +AUX 4.1/com_err.patch 1276 SHA256 f0dc953202603a5f8c0625921cd89cd59e9ca74a61302bdf07e591836e6bda31 SHA512 62800c962cfb613b11c77ae9360f6c3c610bb1551f9ac3673ab814f6f8e1f589d1192fb3019f1afdc8becf8e692c8d19f4dcaa8b00aeeeb282642327c959c27e WHIRLPOOL 37d06f7f6d7d77acd9e5d794a6b2512aa092f04c553853045fa42e11f850a91912239385b21f8d76694e37d21d63405ea864ea0627a40aa72850b1fe4b8f4b3b +AUX 4.1/samba4.confd 1783 SHA256 53755809cc27fdbaf98752cd3da45b5c2bda62dd46fcc37570c6e237f7954ffa SHA512 6fc7edf192957f97b171c97482317bf563385917cfdbf950ed28d9387961bd16f82844c6f9b5c430508ec6dc7331ecdf5f81fa3135663316061c1d0b1808f53d WHIRLPOOL 868539ecf658f9da3574847cb1447dafe422c60a9208de5580cf7f53e4346e9c7d1c6b3e7ea5c684b83e613dd912c5245ffce6a43bc8bd9bf8417a9c7a5f2557 +AUX 4.1/samba4.initd-r1 1570 SHA256 973bac0e8fbc7157af236871a3d00358d50478d57a38942dd279dc24ce9a2b97 SHA512 9a8f60aac96c6e2a911bd2c25deb84c34b0983a48e86b6dff065bfb78735d0d187e36cdaeaaa0b6019f315f5b23a666208ff2dda54c4723e32aef78990bfdcb7 WHIRLPOOL 05afbb06cff02ef9a7aab3d9d221c9b69c9b756ae17901673ed2f0325111cdaab237d73002a711112915401ad9a64c2cffc9286dd71fbe0c46a7244ad1987ebd AUX nmbd.service 224 SHA256 a5e25c11714206c4fb129333dd45152c5753716c6445cbe78c28275df1a1cb77 SHA512 098dfb270c5a5c29f59b4fd8d51b17931771e25e481124832f1a086677825527e2afa7276e8614e5007fbf044d253ce2eaf3a7caf7461ad5d90d0b1c7f157f9d WHIRLPOOL 2f7c342a60c09d5e40e968a026aa17d8c2fe3fd032331c7bb26599bb0f8ec8a77c2a3e329498ed16b1602451fd85a8ef076c436e8a092740cfbd01a82ca52e30 AUX samba-3.4.2-lib.tevent.python.mk 177 SHA256 3eab52d42a0cbc070d011a131f9a56f4b3da10b2791fec514948fd8d2d013153 SHA512 0bd691d7678737fa815da9e1934db056fa833aa6d6d2d48cf8da559987a899ae4c5ac18e4b3594d634363f515028a3d30711484dbda578aa7506fbe2df55197c WHIRLPOOL 061b3e33b327563f52648931428cce433505353e73bf9851abb33f4f13e7c723c17c3413442dd343477bb0c49fd3284c0155ff59829df448952a6e1d07475251 AUX samba-4.0.5-fix_linking_to_heimdal.patch 704 SHA256 ea08ca8edf6d2e8842d0a184f3fff8159df7936f39d73fed7ee8db6ba3169940 SHA512 0ba583c888c2fa943fa466a91c27180c1124684471d3721594769d393f385e4ed5da75161659b6eb16849874205c666f314c4334866c82fd82094be4df6a306f WHIRLPOOL c16c4c5eb7fa5b440f7d11b17370e015275bb16b39591e04b0404da123af4c3c6c62771cc896693782d5aa628358b0f46792e46c147b4170020535d6c7944a54 @@ -38,6 +41,7 @@ DIST samba-3.6.15.tar.gz 34111211 SHA256 42b9acb13f8760a1767829ebaa4c371e462aad5 DIST samba-3.6.16.tar.gz 34108738 SHA256 347c0abe608ad907d04e37948d0f82a2d9dd8daeba13b0b78d7463b8d7b3fef4 SHA512 e71328bea07c16d5c72c28f5a5b911e33c65f1a4ac6dff791b820783370d61ce4fde99f24575f0a348b3a87d7eac3961621fb59fd0ef126339aa3c7d31d39ee8 WHIRLPOOL 347b5baa85094933f19c3d35d91c938b8a7854643bbbc515b2293fd05c5f73996057566e0468184eacd06cebc661231f8ab7f9fdbe9e8392f504a265b6243d39 DIST samba-4.0.6.tar.gz 23949307 SHA256 63e53dc270d13231bed56b816c18793d8425f199b1a5efdaadc080f4d6911de3 SHA512 761fa945fdef1ddc7688e8482324aaec10f68252ff201b11739eac9863e3c4ee0d0207b87c735c529d7a62ae65785d146de7e9cd37fdac2c4463e1692635ee11 WHIRLPOOL c8d8ba019c2823da8e73b78496aa5fcfff4e518d66a2915b7fadc6337e18da8f6d379200b03eea0eebf2d6fdd49ae9828e2e1bc1ae5014206f54f21f39d25d02 DIST samba-4.0.7.tar.gz 22078244 SHA256 e9ad36ff65a1d6b6a57f272aa08f844139ac2b5b1cb2257f1236aa2a8c864245 SHA512 84573c9fad7ad2f605661158faf70e3e57c6c15e814dd504314355055e73c58bd48bbdf2941203bb8c6dd36fb1635d3ba54a8a4534bf7a104d0c48e1bc063163 WHIRLPOOL f6001faf8cce7920d5b87ea6ed64a6f0d42f03a73162ae8bcf5b5fc6d0141cef3c038a3993e330008cc3dc445a8b4a388e9a62cb8d8f0bf4e4b4639ab0f5e146 +DIST samba-4.1.0rc1.tar.gz 19426225 SHA256 de7d94002628415ca02fe2cf2d500942abe2444bb33544bd2018c99c53d70824 SHA512 90d8763a3b95ec430434e0a59c8f2ec490d95362e51df4d616237fef26aa2fd365149ff7388574dfae97b5c1786de92ed817055106a947eeecce60019c89d3f1 WHIRLPOOL ffb744926944cb2a0cc724e4ddd043672e53aefeba4e9cf0d939e85b7802e9782a3bb502c15497305168671d7fce6cb7bdc31174dff6003fca458e57001554cd DIST smb_traffic_analyzer_v2.diff.bz2 12226 SHA256 1bae7eafbe8ac2382313d5ab9d43d73ba64b63a714f0f588516952d476fb868d SHA512 aa0e457a0dd282e61e6dfcd5705c29b319832dca9711b1b5baf8373e2f079991399c3537c050219ccb861a93f86353ebff677a5c625d2e3f1f3a13ee5c4087d0 WHIRLPOOL 85ee72a360f67ebe71be5cd400ecd635280a0d7c64ebb8b94656a5ef1a94f74a987de86408af00ce1b81cc8363b1b3cf14726860d29b72ee610d4bab73d6b139 EBUILD samba-3.5.21.ebuild 12311 SHA256 2a849451f886614315680b28b944840d1c670a2b878329773de63a72797a6fa1 SHA512 5006f1afdc2df93f317d15e1e9781bee20eb0e17e4a15892cb5ebe8bb2ab0a7a56bbbf2ed67099620391eda14b53a8fdb78a5ee9634a489915fcf84b031704b7 WHIRLPOOL a295b28990480ed3e13cf76d4f04270739b2669837d5ea93691888c488ee10dad22cd4bcc2037b09e66be41eda4d3d2e064e28701acb1f2dc7acf80935283123 EBUILD samba-3.6.12.ebuild 12017 SHA256 b1a4ae0e490e6e3ecbdef24b9a50336e676cb39f6077044ef9e99f745e433147 SHA512 f377aa4ad20d5a05d31a492935251040e2a3c4522fb774fc2918d09d629480551a6eb359d1079fd4ed9eed9339985977d5f792358b0b74d426261e01dd662c6e WHIRLPOOL dd77e2be95a4766cce5dab5f06ae5f4064f0824a26018e191ba881cd2aec6a865762441f8f983114f21d58edcbc5dad8c75fe9409db2e4270a6aab64944b7153 @@ -45,5 +49,6 @@ EBUILD samba-3.6.15.ebuild 12347 SHA256 70ceef21473641490f6a5b2c8ff8c2b0306fd6ed EBUILD samba-3.6.16.ebuild 12626 SHA256 256c7381cf163375c3bd326818ea387c94251dcf5a4c9c1316f4c4cd74f90638 SHA512 441bb8f987ebc769f42fb249e217525167ee96d4ffce992b8c19ccfbbfe775737081d1adc1b5f55122d0675731b5a0b7f1550fdb005ff60440b7d323825068ef WHIRLPOOL 19166ec8fa5ba8014245b757c325bbca35bd70f6dbb896816ffe219e8e8ca6a55ba8df49cbc8a3ad598eccc6307bf9de9702c0718127f2708dab42cfa7dc48d7 EBUILD samba-4.0.6.ebuild 4097 SHA256 43ec31359a7c69ca91d7de591ea792a0b6fba78b83307a0962b065461c6a8ed4 SHA512 6d3d3ed127367a870bf64655eaa775042091ee38acc17d2af611bb1195b54920831c5d36a2551e7cd4fbd441842e96e80a4dd8f59f8a09359f715237d58ec9a8 WHIRLPOOL 516c7c0c86fa7ef40833c9749b535937638dd5c08b94cbed5c27fa5d8dcf5c8a2f8ad295a693b72600798b30d1611e5d6cd69fb5b7b9c24761d6417f55918e12 EBUILD samba-4.0.7.ebuild 4216 SHA256 b86711044ab90162c1fa97827be696e080f81db31647e569a47e15d31ca2ba43 SHA512 a626231277e62a5454bf6af2dad43cba7a1c90fe83f2c506f26ab6d95a37ae5ce8b450b19b328dfba5f45e4bf745155a0cd31fc4d293854f142fd76bfd2136a8 WHIRLPOOL c7b17ffa79cab9957bb486317ba99819869c634c7864357a525faf80f436723b247c7bfe7630757597a9e977d8c200e0a948c9767dedc2c6d6aadcad7f9c3268 -MISC ChangeLog 97024 SHA256 404f0a0478e3f2542c60aca388112df0f386fe623836880c26e3cc4274dcdb76 SHA512 cf5f43fccd514911645f108158fe21c8dc857bfdde82e3d50a77fe898cc8af9f0ae08b3d1fcbf01dca06305dad128480c0fb8c1f8eaba0a2e04a681406b2d197 WHIRLPOOL d82c0d0939ee208d6751836e54eb3cddbef89a8315035b0de42f8ff91ac6358e337954703a748e329b5d1de301fb7b4cf136bdf09abd99017a829e617e2ae047 +EBUILD samba-4.1.0_rc1.ebuild 4058 SHA256 9619d4dffef53d358c4572359684d48f59d133076cacaab00d079cad2838e17d SHA512 4762b257127464a23d4a8df3f6940ae4b229892b09f6e18322f45e68b6737c3d60a20a68ad758973d33b8045eb85f55b4a110fcaa2835bd532eeed7717a36101 WHIRLPOOL 754d468d2f22d68763dfae0f494eefd1cfd62f3d2ce5f1865a8885bf7d3395c5f7d76f02f3ff859bd706102b391cb84cde7677cb46896ad4eef1e505b6fc43d0 +MISC ChangeLog 97273 SHA256 5fdda389f903234f6ec372d142372bf511b06d87a866ba8345c2f615b03c6497 SHA512 578a7b157ebf5e7fd0af4c147b0f48c8cc48a816bfa31c908a804a23092c595d6f08d027598b81de49c991b233676f6adbad5b6e05f6791fbe0d1f7258d9ef3d WHIRLPOOL 20df51f93129af12214174ed2a77d0032cd978a305eedfadd1b0161818051f237e3fdf4ed61cef6daf398e127fe73d69bc6f20c012d054e0ffe537ac9a484fd9 MISC metadata.xml 1514 SHA256 c10deb71703017ec67f4e5bac297d9b4581fec3d8b5549b6aea2a43bda642bc0 SHA512 9e67e8f7e0c972046e32bf4539142559c24183d6c3469e5af2f901728a3c02a9fbfd50e948a9fd414107fd0cb2a8de709ffe3fc5bf3372c77a4a3db6dc622ecc WHIRLPOOL ec92ea6a1b03e70c791670e97e7d9e07e6bdb82c24ed08c186e786afcd009ab63fbee7d481a4cdc394632ad312e58a2048dae3ff333f6f7a1ad19add55e2c8f8 diff --git a/net-fs/samba/files/4.1/com_err.patch b/net-fs/samba/files/4.1/com_err.patch new file mode 100644 index 000000000000..2c9ad88f01d7 --- /dev/null +++ b/net-fs/samba/files/4.1/com_err.patch @@ -0,0 +1,35 @@ +From 2f34bfbc1941127d17a7a91c6598d6a6c35620e2 Mon Sep 17 00:00:00 2001 +From: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> +Date: Thu, 6 Oct 2011 00:19:01 +0200 +Subject: [PATCH] Add missing com_err dependencies + +--- + auth/kerberos/wscript_build | 2 +- + nsswitch/wscript_build | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/auth/kerberos/wscript_build b/auth/kerberos/wscript_build +index 1070770..2421b16 100644 +--- a/auth/kerberos/wscript_build ++++ b/auth/kerberos/wscript_build +@@ -1,3 +1,3 @@ + bld.SAMBA_SUBSYSTEM('KRB5_PAC', + source='gssapi_pac.c kerberos_pac.c', +- deps='gssapi_krb5 krb5 ndr-krb5pac') ++ deps='gssapi_krb5 krb5 ndr-krb5pac com_err') +diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build +index 298da06..4e353d3 100644 +--- a/nsswitch/wscript_build ++++ b/nsswitch/wscript_build +@@ -33,7 +33,7 @@ if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'): + if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'): + bld.SAMBA_LIBRARY('winbind_krb5_locator', + source='winbind_krb5_locator.c', +- deps='wbclient krb5', ++ deps='wbclient krb5 com_err', + realname='winbind_krb5_locator.so') + + bld.SAMBA_SUBSYSTEM('WB_REQTRANS', +-- +1.7.3.4 + diff --git a/net-fs/samba/files/4.1/samba4.confd b/net-fs/samba/files/4.1/samba4.confd new file mode 100644 index 000000000000..58b2c7827bdf --- /dev/null +++ b/net-fs/samba/files/4.1/samba4.confd @@ -0,0 +1,38 @@ +# Add "winbind" to the daemon_list if you also want winbind to start. +# Replace "smbd nmbd" by "samba4" if you want the active directory domain controller part or the ntvfs +# file server part or the rpc proxy to start. +# Note that samba4 controls 'smbd' by itself, thus it can't be started manually. You can, however, +# tweak the behaviour of a samba4-controlled smbd by modifying your '/etc/samba/smb.conf' file +# accordingly. +daemon_list="smbd nmbd" + +#---------------------------------------------------------------------------- +# Daemons calls: <daemon_name>_<command_option> +#---------------------------------------------------------------------------- +my_service_name="samba" +my_service_PRE="unset TMP TMPDIR" +my_service_POST="" + +#---------------------------------------------------------------------------- +# Daemons calls: <daemon_name>_<command_option> +#---------------------------------------------------------------------------- +smbd_start_options="-D" +smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}" +smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd" +smbd_reload="killall -HUP smbd" + +nmbd_start_options="-D" +nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}" +nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd" +nmbd_reload="killall -HUP nmbd" + +samba4_start_options="" +samba4_start="start-stop-daemon --start --exec /usr/sbin/samba -- ${samba4_start_options}" +samba4_stop="start-stop-daemon --stop --exec /usr/sbin/samba" +samba4_reload="killall -HUP samba" + +winbind_start_options="" +winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}" +winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd" +winbind_reload="killall -HUP winbindd" + diff --git a/net-fs/samba/files/4.1/samba4.initd-r1 b/net-fs/samba/files/4.1/samba4.initd-r1 new file mode 100644 index 000000000000..ebdd3f18f750 --- /dev/null +++ b/net-fs/samba/files/4.1/samba4.initd-r1 @@ -0,0 +1,59 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/4.1/samba4.initd-r1,v 1.1 2013/08/05 04:41:21 patrick Exp $ + +extra_started_commands="reload" + +depend() { + after slapd + need net + use cupsd +} + +DAEMONNAME="${SVCNAME##samba.}" +[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME} + +signal_do() { + local signal="$1" + [ -z "${signal}" ] && return 0 + + local result=0 last_result=0 daemon= cmd_exec= + for daemon in ${daemon_list} ; do + eval cmd_exec=\$${daemon}_${signal} + if [ -n "${cmd_exec}" ]; then + ebegin "${my_service_name} -> ${signal}: ${daemon}" + #echo ${cmd} '->' ${!cmd} + ${cmd_exec} > /dev/null + last_result=$? + eend ${last_result} + fi + result=$(( ${result} + ${last_result} )) + done + return ${result} +} + +mkdir_sambadirs() { + [ -d /var/run/samba ] || mkdir -p /var/run/samba +} + +start() { + ${my_service_PRE} + mkdir_sambadirs + signal_do start && return 0 + + eerror "Error: starting services (see system logs)" + signal_do stop + return 1 +} +stop() { + ${my_service_PRE} + if signal_do stop ; then + ${my_service_POST} + return 0 + fi +} +reload() { + ${my_service_PRE} + signal_do reload +} diff --git a/net-fs/samba/samba-4.1.0_rc1.ebuild b/net-fs/samba/samba-4.1.0_rc1.ebuild new file mode 100644 index 000000000000..5c9a6b24c85d --- /dev/null +++ b/net-fs/samba/samba-4.1.0_rc1.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.1.0_rc1.ebuild,v 1.1 2013/08/05 04:41:22 patrick Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_5,2_6,2_7} ) + +inherit python-r1 waf-utils multilib linux-info systemd + +MY_PV="${PV/_rc/rc}" +MY_P="${PN}-${MY_PV}" + +SRC_URI="mirror://samba/rc/${MY_P}.tar.gz" +KEYWORDS="~amd64 ~hppa ~x86" + +DESCRIPTION="Samba Suite Version 4" +HOMEPAGE="http://www.samba.org/" +LICENSE="GPL-3" + +SLOT="0" + +IUSE="acl addns ads aio avahi client cluster cups gnutls iprint +ldap pam quota selinux syslog test winbind" + +RDEPEND="${PYTHON_DEPS} + dev-libs/iniparser + dev-libs/popt + sys-libs/readline + virtual/libiconv + dev-python/subunit + sys-libs/libcap + >=sys-libs/ldb-1.1.16 + >=sys-libs/tdb-1.2.11[python] + >=sys-libs/talloc-2.0.8[python] + >=sys-libs/tevent-0.9.18 + sys-libs/zlib + >=app-crypt/heimdal-1.5[-ssl] + addns? ( net-dns/bind-tools[gssapi] ) + client? ( net-fs/cifs-utils[ads?] ) + 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" + +REQUIRED_USE="ads? ( ldap )" + +RESTRICT="mirror" + +S="${WORKDIR}/${MY_P}" + +CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" + +WAF_BINARY="${S}/buildtools/bin/waf" + +pkg_setup() { + python_export_best + 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='' + use "cluster" && myconf+=" --with-ctdb-dir=/usr" + use "test" && myconf+=" --enable-selftest" + myconf="${myconf} \ + --enable-fhs \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-modulesdir=/usr/$(get_libdir)/samba \ + --disable-rpath \ + --disable-rpath-install \ + --nopyc \ + --nopyo \ + --bundled-libraries=ntdb \ + --builtin-libraries=ntdb \ + $(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 winbind) + " + CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \ + waf-utils_src_configure ${myconf} +} + +src_install() { + waf-utils_src_install + + # Seems like the build script gets the shebangs correct by itself + # (4.0.6) + #python_replicate_script \ + # "${D}/usr/sbin/samba_dnsupdate" \ + # "${D}/usr/sbin/samba_spnupdate" \ + # "${D}/usr/sbin/samba_upgradedns" \ + # "${D}/usr/sbin/samba_kcc" \ + # "${D}/usr/bin/samba-tool" + + # Make all .so files executable + find "${D}" -type f -name "*.so" -exec chmod +x {} + + + # Install init script and conf.d file + newinitd "${CONFDIR}/samba4.initd-r1" samba + newconfd "${CONFDIR}/samba4.confd" samba + + systemd_dotmpfilesd "${FILESDIR}"/samba.conf + systemd_dounit "${FILESDIR}"/nmbd.service + systemd_dounit "${FILESDIR}"/smbd.{service,socket} + systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' + systemd_dounit "${FILESDIR}"/winbindd.service +} + +src_test() { + "${WAF_BINARY}" test || die "test failed" +} + +pkg_postinst() { + elog "This is is the first stable release of Samba 4.0" + + 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'." + + elog "For further information and migration steps make sure to read " + elog "http://samba.org/samba/history/${P}.html " + elog "http://samba.org/samba/history/${PN}-4.0.0.html and" + elog "http://wiki.samba.org/index.php/Samba4/HOWTO " +} |