add ebuilds

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2464 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-10-04 19:24:16 +00:00
parent 53d472c69f
commit 677e030bbd
69 changed files with 3569 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
DIST cifs-utils-4.5.tar.bz2 321737 RMD160 48dcffd41b7a23b388e17992ccaf59d4ab97d1bb SHA1 5f19dd848d330e01ece18889f6d6b93927059296 SHA256 8287996c59609d3042691ae412d289995d63e7eaf561117f0b9a1ba421ecf25b
EBUILD cifs-utils-4.5.ebuild 1079 RMD160 50a3564f7876fce9f29d7bf8af66bf0d7a060485 SHA1 5b48629d04ce03c7925eac5d6bf3275fcd4a6187 SHA256 33a5247572ece8d2659f5a75abf4b49f977a80a78855c6649450d9087a0250ed
EBUILD cifs-utils-9999.ebuild 1079 RMD160 50a3564f7876fce9f29d7bf8af66bf0d7a060485 SHA1 5b48629d04ce03c7925eac5d6bf3275fcd4a6187 SHA256 33a5247572ece8d2659f5a75abf4b49f977a80a78855c6649450d9087a0250ed
MISC metadata.xml 789 RMD160 1e14745b4c08f0fa8d364170c2864151ae5e016a SHA1 3c978a97c021dc2aa896bebc4aa3432dbf6eb636 SHA256 fec8103fdaaa5f77bb4b644275a8e0e001573d8bc3fef56af4337c11b5c8a0b0

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils confutils
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="git://git.samba.org/${PN}.git"
inherit git autotools
else
SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
fi
DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
HOMEPAGE="http://www.samba.org/linux-cifs/cifs-utils/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ads +caps caps-ng"
DEPEND="!net-fs/mount-cifs
!net-fs/samba-client
!<net-fs/samba-3.6
ads? ( sys-libs/talloc virtual/krb5 sys-apps/keyutils )
caps? ( sys-libs/libcap )
caps-ng? ( sys-libs/libcap-ng )"
RDEPEND="${DEPEND}"
pkg_setup() {
confutils_use_conflict caps caps-ng
}
src_prepare() {
if [[ ${PV} == 9999 ]]; then
eautoreconf || die "eautoreconf failed"
fi
}
src_configure() {
econf \
$(use_enable ads cifsupcall) \
$(use_with caps libcap) \
$(use_with caps-ng libcap-ng)
}
src_install() {
emake install DESTDIR="${D}" || die "emake install failed"
}

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils confutils
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="git://git.samba.org/${PN}.git"
inherit git autotools
else
SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
fi
DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
HOMEPAGE="http://www.samba.org/linux-cifs/cifs-utils/"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ads +caps caps-ng"
DEPEND="!net-fs/mount-cifs
!net-fs/samba-client
!<net-fs/samba-3.6
ads? ( sys-libs/talloc virtual/krb5 sys-apps/keyutils )
caps? ( sys-libs/libcap )
caps-ng? ( sys-libs/libcap-ng )"
RDEPEND="${DEPEND}"
pkg_setup() {
confutils_use_conflict caps caps-ng
}
src_prepare() {
if [[ ${PV} == 9999 ]]; then
eautoreconf || die "eautoreconf failed"
fi
}
src_configure() {
econf \
$(use_enable ads cifsupcall) \
$(use_with caps libcap) \
$(use_with caps-ng libcap-ng)
}
src_install() {
emake install DESTDIR="${D}" || die "emake install failed"
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd></herd>
<longdescription lang="en">
The in-kernel CIFS filesystem is generally the preferred method for mounting
SMB/CIFS shares on Linux. More information on Linux CIFS is available at the
Linux CIFS VFS site.
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 integration (cifs.upcall)</flag>
<flag name="caps-ng">Use Linux capabilities-ng library to control privilege</flag>
</use>
</pkgmetadata>

3
net-fs/samba/Manifest Normal file
View File

@@ -0,0 +1,3 @@
AUX samba4.initd 634 RMD160 0d1028c3520102a7a2c4a7dd73723b66295db740 SHA1 cf2e0bcdb1783f1fb2ed256442f051b98ad70d64 SHA256 df553df5cfb8d8305566accd62bff23dac4772ad4a2eb7d3b1328a5651113cad
DIST samba-4.0.0alpha13.tar.gz 8681348 RMD160 522e1754044f0fb1141246c1a37f28f08567d069 SHA1 c6ff1eafba5869e9ea74f046668cf147ce834da8 SHA256 3cf571d6d32e07537f2b315f3976eb5e5ee563af17a12e406d6d3671fc59cf6c
EBUILD samba-4.0.0_alpha13.ebuild 4156 RMD160 d63bbf124c3fde8d264da490122a0826dda1aa13 SHA1 4bd67529b6094b91349e138614ba36075e5912c5 SHA256 619c7c38aa499083e3ee7ba06f681851b76a4456c1b8e8f3d4f3c998eaccda58

View File

@@ -0,0 +1,31 @@
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba4.initd,v 1.1 2010/02/28 16:03:04 patrick Exp $
opts="reload"
description="The samba daemon init script"
description_reload="Reloads the samba daemon"
depend() {
need net
}
start() {
ebegin "Starting samba"
start-stop-daemon --start --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 $?
}

View File

@@ -0,0 +1,158 @@
# Copyright 1999-2010 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_alpha11.ebuild,v 1.3 2010/02/28 16:03:03 patrick Exp $
EAPI="2"
inherit confutils
MY_PV="${PV/_alpha/alpha}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Samba Server component"
HOMEPAGE="http://www.samba.org/"
SRC_URI="mirror://samba/samba4/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="caps debug dso gnutls +netapi sqlite threads +client +server +tools +python"
DEPEND="!net-fs/samba-libs
!net-fs/samba-server
!net-fs/samba-client
dev-libs/popt
sys-libs/readline
virtual/libiconv
caps? ( sys-libs/libcap )
gnutls? ( net-libs/gnutls )
sqlite? ( >=dev-db/sqlite-3 )
>=sys-libs/talloc-2.0.1
>=sys-libs/tdb-1.2.0
=sys-libs/tevent-0.9.8"
#=sys-libs/ldb-0.9.10 No release yet
# See source4/min_versions.m4 for the minimal versions
RDEPEND="${DEPEND}"
RESTRICT="mirror"
S="${WORKDIR}/${MY_P}/source4"
SBINPROGS=""
if use server ; then
SBINPROGS="${SBINPROGS} bin/samba"
fi
if use client ; then
SBINPROGS="${SBINPROGS} bin/mount.cifs bin/umount.cifs"
fi
BINPROGS=""
if use client ; then
BINPROGS="${BINPROGS} bin/smbclient bin/net bin/nmblookup bin/ntlm_auth"
fi
if use server ; then
BINPROGS="${BINPROGS} bin/testparm bin/smbtorture"
fi
if use tools ; then
# Should be in sys-libs/ldb, but there's no ldb release yet
BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"
fi
pkg_setup() {
confutils_use_depend_all server python
}
src_configure() {
# Upstream refuses to make this configurable
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
econf \
--sysconfdir=/etc \
--localstatedir=/var \
$(use_enable debug) \
--enable-developer \
$(use_enable dso) \
--disable-external-heimdal \
--enable-external-libtalloc \
--enable-external-libtdb \
--enable-external-libtevent \
--disable-external-libldb \
--enable-fhs \
--enable-largefile \
$(use_enable gnutls) \
$(use_enable netapi) \
--enable-socket-wrapper \
--enable-nss-wrapper \
--with-modulesdir=/usr/lib/samba/modules \
--with-privatedir=/var/lib/samba/private \
--with-ntp-signd-socket-dir=/var/run/samba \
--with-lockdir=/var/cache/samba \
--with-logfilebase=/var/log/samba \
--with-piddir=/var/run/samba \
--without-included-popt \
$(use_with sqlite sqlite3) \
$(use_with threads pthreads) \
--with-setproctitle \
--with-readline
}
src_compile() {
# compile libs
emake basics || die "emake basics failed"
emake libraries || die "emake libraries failed"
# compile python
if use python ; then
emake pythonmods || die "emake pythonmods failed"
fi
# compile binaries tools
emake ${BINPROGS} || die "emake BINPROGS failed"
emake ${SBINPROGS} || die "emake SBINPROGS failed"
}
src_install() {
# install libs
emake installlib DESTDIR="${D}" || die "emake installib failed"
emake installheader DESTDIR="${D}" || die "emake installheader failed"
emake installpc DESTDIR="${D}" || die "make installpc failed"
# compile python
if use python ; then
emake installpython DESTDIR="${D}" || die "emake installpython failed"
fi
# binaries
dosbin ${SBINPROGS} || die "installing SBINPROGS failed"
dobin ${BINPROGS} || die "installing BINPROGS failed"
# install server components
if use server ; then
# provision scripts
insinto /usr/share/${PN}
doins -r setup
exeinto /usr/share/${PN}/setup
doexe setup/{domainlevel,enableaccount,newuser,provision,pwsettings}
doexe setup/{setexpiry,setpassword,upgrade_from_s3}
# init script
newinitd "${FILESDIR}/samba4.initd" samba
fi
}
src_test() {
emake test DESTDIR="${D}" || die "Test failed"
}
pkg_postinst() {
# Optimize the python modules so they get properly removed
python_mod_optimize $(python_get_sitedir)/${PN}
# Warn that it's an alpha
ewarn "Samba 4 is an alpha and therefore not considered stable. It's only"
ewarn "meant to test and experiment and definitely not for production"
}
pkg_postrm() {
# Clean up the python modules
python_mod_cleanup
}