diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-08 05:02:30 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-08 05:02:30 +0300 |
commit | 098edaa8e7f9551f242eecf1197d0e93c722a6b2 (patch) | |
tree | c83f28c3d1194282e7b3232879b0234629c16712 /packages/net-fs/samba/samba.exlib | |
parent | 721e05f69f44fa8e0bdb175ba919e03a2fb7fc5a (diff) |
samba: added pam option
Diffstat (limited to 'packages/net-fs/samba/samba.exlib')
-rw-r--r-- | packages/net-fs/samba/samba.exlib | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/packages/net-fs/samba/samba.exlib b/packages/net-fs/samba/samba.exlib index f441150..cdf9f85 100644 --- a/packages/net-fs/samba/samba.exlib +++ b/packages/net-fs/samba/samba.exlib @@ -41,6 +41,7 @@ MYOPTIONS=" requires = [ addc ] ]] ldap + pam quotas [[ description = [ Enables support for user quotas ] ]] syslog [[ description = [ Enables support for syslog ] ]] system-krb5 [[ description = [ Use krb5 instead of the bundled heimdal ] ]] @@ -72,7 +73,7 @@ DEPENDENCIES=" sys-apps/attr sys-apps/dbus sys-libs/libcap - sys-libs/pam + pam? ( sys-libs/pam ) sys-libs/readline:= acl? ( sys-apps/acl ) addc? ( dev-python/pycrypto[python_abis:*(-)?] ) @@ -119,8 +120,6 @@ WAF_SRC_CONFIGURE_PARAMS+=( --with-libarchive --with-lockdir=/run/lock/samba --with-modulesdir=/usr/$(exhost --target)/lib/samba - --with-pam - --with-pammodulesdir=$(getpam_mod_dir) --with-piddir=/run --with-privatedir=/var/lib/${PN}/private --with-sendfile-support @@ -137,7 +136,8 @@ WAF_SRC_CONFIGURE_PARAMS+=( if ever is_scm; then DEPENDENCIES+=" build+run: - dev-db/ldb[>=1.4.0] + dev-db/ldb[>=1.4.0][python_abis:*(-)?] + " WAF_SRC_CONFIGURE_PARAMS+=( --without-json-audit @@ -168,7 +168,7 @@ WAF_SRC_CONFIGURE_TESTS=( ) # Build failed: -> missing file: '[...]/bin/default/docs-xml/smbdotconf/parameters.all.xml' -WAF_SRC_COMPILE_PARAMS+=( -j1 ) +#WAF_SRC_COMPILE_PARAMS+=( -j1 ) samba_src_prepare() { default @@ -210,6 +210,16 @@ samba_src_configure() { --bundled-libraries=NONE ) fi + if option pam; then + WAF_SRC_CONFIGURE_PARAMS+=( + --with-pam + --with-pammodulesdir=$(getpam_mod_dir) + ) + else + WAF_SRC_CONFIGURE_PARAMS+=( + --without-pam + ) + fi waf_src_configure } |