aboutsummaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorstefson <herrtimson@yahoo.de>2018-06-17 12:26:34 +0200
committerAnthony G. Basile <blueness@gentoo.org>2018-06-17 08:45:57 -0400
commit7aff2754fe33d0542eae2789285ef1cc1cc29dde (patch)
tree991306331cee3ea79919e38a82964b0a81f31f60 /net-fs
parent.travis.yml: we need pyyaml (diff)
downloadmusl-7aff2754fe33d0542eae2789285ef1cc1cc29dde.tar.gz
musl-7aff2754fe33d0542eae2789285ef1cc1cc29dde.tar.bz2
musl-7aff2754fe33d0542eae2789285ef1cc1cc29dde.zip
net-fs/cifs-utils: fixed in tree
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/cifs-utils/Manifest1
-rw-r--r--net-fs/cifs-utils/cifs-utils-6.4.ebuild110
-rw-r--r--net-fs/cifs-utils/files/cifs-utils-6.4-fix-headers.patch35
-rw-r--r--net-fs/cifs-utils/metadata.xml15
4 files changed, 0 insertions, 161 deletions
diff --git a/net-fs/cifs-utils/Manifest b/net-fs/cifs-utils/Manifest
deleted file mode 100644
index 1312dd5..0000000
--- a/net-fs/cifs-utils/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST cifs-utils-6.4.tar.bz2 392809 SHA256 38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3 SHA512 05860ceed1e83b4f4da689d2fc1c1b48fddc0ca53ba52fc6cf26a277d6a884f5780060725c5df1401a665ac35ec5a170262ee62f61095e4a8d76348888182614 WHIRLPOOL 335262eb329860318750fcd081dc2c082f36c75a32e5e596a45b51e73b08be7ee66133c2e4e2bc3089631d3909018abd9c2f36f79d82cd9ea7f6fe2530900f72
diff --git a/net-fs/cifs-utils/cifs-utils-6.4.ebuild b/net-fs/cifs-utils/cifs-utils-6.4.ebuild
deleted file mode 100644
index 4d4f88a..0000000
--- a/net-fs/cifs-utils/cifs-utils-6.4.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils linux-info multilib
-
-DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
-HOMEPAGE="http://wiki.samba.org/index.php/LinuxCIFS_utils"
-SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 arm ia64 ~mips ppc ~sh sparc x86"
-IUSE="+acl +ads +caps +caps-ng creds"
-
-DEPEND="!net-fs/mount-cifs
- !<net-fs/samba-3.6_rc1
- ads? (
- sys-apps/keyutils
- sys-libs/talloc
- virtual/krb5
- )
- caps? ( !caps-ng? ( sys-libs/libcap ) )
- caps? ( caps-ng? ( sys-libs/libcap-ng ) )
- creds? ( sys-apps/keyutils )"
-PDEPEND="${DEPEND}
- acl? ( || (
- =net-fs/samba-3.6*[winbind]
- >=net-fs/samba-4.0.0_alpha1
- ) )
-"
-
-REQUIRED_USE="acl? ( ads )"
-
-DOCS="doc/linux-cifs-client-guide.odt"
-
-pkg_setup() {
- linux-info_pkg_setup
-
- 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
- ewarn " File systems"
- ewarn " Network File Systems"
- ewarn " CIFS support"
- ewarn
- ewarn "and recompile your kernel ..."
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-6.4-fix-headers.patch" #for musl
-}
-
-src_configure() {
- ROOTSBINDIR="${EPREFIX}"/sbin \
- econf \
- $(use_enable acl cifsacl cifsidmap) \
- $(use_enable ads cifsupcall) \
- $(use caps && use_with !caps-ng libcap || echo --without-libcap) \
- $(use caps && use_with caps-ng libcap-ng || echo --without-libcap-ng) \
- $(use_enable creds cifscreds)
-}
-
-src_install() {
- default
-
- # remove empty directories
- find "${ED}" -type d -print0 | xargs --null rmdir \
- --ignore-fail-on-non-empty &>/dev/null
-
- if use acl ; then
- dodir /etc/cifs-utils
- dosym /usr/$(get_libdir)/cifs-utils/idmapwb.so \
- /etc/cifs-utils/idmap-plugin
- dodir /etc/request-key.d
- echo 'create cifs.idmap * * /usr/sbin/cifs.idmap %k' \
- > "${ED}/etc/request-key.d/cifs.idmap.conf"
- fi
-
- if use ads ; then
- dodir /etc/request-key.d
- echo 'create dns_resolver * * /usr/sbin/cifs.upcall %k' \
- > "${ED}/etc/request-key.d/cifs.upcall.conf"
- echo 'create cifs.spnego * * /usr/sbin/cifs.upcall %k' \
- > "${ED}/etc/request-key.d/cifs.spnego.conf"
- fi
-}
-
-pkg_postinst() {
- # Inform about set-user-ID bit of mount.cifs
- ewarn "setuid use flag was dropped due to multiple security implications"
- ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586"
- ewarn "You are free to set setuid flags by yourself"
-
- # Inform about upcall usage
- if use acl ; then
- einfo "The cifs.idmap utility has been enabled by creating the"
- einfo "configuration file /etc/request-key.d/cifs.idmap.conf"
- einfo "This enables you to get and set CIFS acls."
- fi
-
- if use ads ; then
- einfo "The cifs.upcall utility has been enabled by creating the"
- einfo "configuration file /etc/request-key.d/cifs.upcall.conf"
- einfo "This enables you to mount DFS shares."
- fi
-}
diff --git a/net-fs/cifs-utils/files/cifs-utils-6.4-fix-headers.patch b/net-fs/cifs-utils/files/cifs-utils-6.4-fix-headers.patch
deleted file mode 100644
index f4798db..0000000
--- a/net-fs/cifs-utils/files/cifs-utils-6.4-fix-headers.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -Naur /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4/getcifsacl.c cifs-utils-6.4/getcifsacl.c
---- /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4/getcifsacl.c 2014-07-11 15:14:06.000000000 +0000
-+++ cifs-utils-6.4/getcifsacl.c 2016-04-05 10:43:29.952000000 +0000
-@@ -33,6 +33,8 @@
- #include <stddef.h>
- #include <errno.h>
- #include <limits.h>
-+#include <linux/limits.h>
-+#include <endian.h>
- #include <ctype.h>
- #include <sys/xattr.h>
- #include "cifsacl.h"
-diff -Naur /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4/mtab.c cifs-utils-6.4/mtab.c
---- /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4/mtab.c 2014-07-11 15:14:06.000000000 +0000
-+++ cifs-utils-6.4/mtab.c 2016-04-05 10:02:35.872000000 +0000
-@@ -38,6 +38,7 @@
- #include <mntent.h>
- #include <stdlib.h>
- #include <signal.h>
-+#include <paths.h>
- #include "mount.h"
- #include "config.h"
-
-diff -Naur /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4/setcifsacl.c cifs-utils-6.4/setcifsacl.c
---- /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4/setcifsacl.c 2014-07-11 15:14:06.000000000 +0000
-+++ cifs-utils-6.4/setcifsacl.c 2016-04-05 10:43:45.696000000 +0000
-@@ -33,6 +33,8 @@
- #include <stdlib.h>
- #include <errno.h>
- #include <limits.h>
-+#include <linux/limits.h>
-+#include <endian.h>
- #include <ctype.h>
- #include <sys/xattr.h>
-
diff --git a/net-fs/cifs-utils/metadata.xml b/net-fs/cifs-utils/metadata.xml
deleted file mode 100644
index d511758..0000000
--- a/net-fs/cifs-utils/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>samba@gentoo.org</email>
- <name>Samba Team</name>
- </maintainer>
- <longdescription>The in-kernel CIFS filesystem relies on a set of user-space tools. That package of tools is called cifs-utils. Although not really part of Samba proper, these tools were originally part of the Samba package. For several reasons, shipping these tools as part of Samba was problematic and it was deemed better to split them off into their own package</longdescription>
- <use>
- <flag name="ads">Enable Active Directory support and create cifs.idmap binary - idmap support</flag>
- <flag name="caps">libcap support</flag>
- <flag name="caps-ng">libcap-ng support</flag>
- <flag name="creds">cifs credentials support</flag>
- </use>
-</pkgmetadata>