summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/cifs-utils/cifs-utils-4.8.1.ebuild')
-rw-r--r--net-fs/cifs-utils/cifs-utils-4.8.1.ebuild22
1 files changed, 5 insertions, 17 deletions
diff --git a/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild b/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild
index e51134d3708c..d718b88cf8cf 100644
--- a/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild
+++ b/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild,v 1.7 2011/04/27 17:59:15 vostorga Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/cifs-utils/cifs-utils-4.8.1.ebuild,v 1.8 2011/05/09 18:12:23 vostorga Exp $
EAPI=2
-inherit eutils confutils linux-mod
+inherit eutils confutils linux-info
DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
HOMEPAGE="http://www.samba.org/linux-cifs/cifs-utils/"
@@ -23,12 +23,9 @@ DEPEND="!net-fs/mount-cifs
creds? ( sys-apps/keyutils )"
RDEPEND="${DEPEND}"
-cifs_check() {
- ebegin "Checking for CIFS support"
- linux_chkconfig_present CIFS
- eend $?
-
- if [[ $? -ne 0 ]] ; then
+pkg_setup() {
+ confutils_use_conflict caps caps-ng
+ if ! linux_config_exists || ! linux_chkconfig_present CIFS; then
ewarn "You must enable CIFS support in your kernel config, "
ewarn "to be able to mount samba shares. You can find it at"
ewarn
@@ -40,15 +37,6 @@ cifs_check() {
fi
}
-pkg_setup() {
- confutils_use_conflict caps caps-ng
-
- if use kernel_linux; then
- linux-mod_pkg_setup
- cifs_check
- fi
-}
-
src_configure() {
econf \
$(use_enable ads cifsupcall) \