summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2013-03-20 14:34:06 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2013-03-20 14:34:06 +0000
commit9c81178f31c94d1b919362967b7988d585f288ff (patch)
treef9cf189b7cc3cbc8941c3fa253665683339de5b1 /sys-cluster
parentversion bump (diff)
downloadgentoo-2-9c81178f31c94d1b919362967b7988d585f288ff.tar.gz
gentoo-2-9c81178f31c94d1b919362967b7988d585f288ff.tar.bz2
gentoo-2-9c81178f31c94d1b919362967b7988d585f288ff.zip
version bump
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/libdlm/ChangeLog7
-rw-r--r--sys-cluster/libdlm/libdlm-3.2.0.ebuild70
2 files changed, 76 insertions, 1 deletions
diff --git a/sys-cluster/libdlm/ChangeLog b/sys-cluster/libdlm/ChangeLog
index aacc7b2c5616..a090664f3f4d 100644
--- a/sys-cluster/libdlm/ChangeLog
+++ b/sys-cluster/libdlm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-cluster/libdlm
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/libdlm/ChangeLog,v 1.3 2013/02/05 13:37:26 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/libdlm/ChangeLog,v 1.4 2013/03/20 14:34:06 ultrabug Exp $
+
+*libdlm-3.2.0 (20 Mar 2013)
+
+ 20 Mar 2013; Ultrabug <ultrabug@gentoo.org> +libdlm-3.2.0.ebuild:
+ version bump
05 Feb 2013; Samuli Suominen <ssuominen@gentoo.org> libdlm-3.1.5.ebuild:
Remove bogus sed from src_prepare() since correct udevdir is /lib/udev, not
diff --git a/sys-cluster/libdlm/libdlm-3.2.0.ebuild b/sys-cluster/libdlm/libdlm-3.2.0.ebuild
new file mode 100644
index 000000000000..869c0e7f9a48
--- /dev/null
+++ b/sys-cluster/libdlm/libdlm-3.2.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/libdlm/libdlm-3.2.0.ebuild,v 1.1 2013/03/20 14:34:06 ultrabug Exp $
+
+EAPI=4
+
+inherit linux-info multilib toolchain-funcs versionator
+
+CLUSTER_RELEASE="${PV}"
+MY_P="cluster-${CLUSTER_RELEASE}"
+
+MAJ_PV="$(get_major_version)"
+MIN_PV="$(get_version_component_range 2-3)"
+
+DESCRIPTION="General-purpose Distributed Lock Manager Library"
+HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage"
+SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ !sys-cluster/dlm-headers
+ !sys-cluster/dlm-kernel
+ !sys-cluster/dlm-lib"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-2.6.24"
+
+S="${WORKDIR}/${MY_P}/dlm"
+
+src_prepare() {
+ sed -i \
+ -e "s|/lib|/$(get_libdir)|g" \
+ "${WORKDIR}/${MY_P}/make/install.mk" || die "sed failed"
+}
+
+src_configure() {
+ cd "${WORKDIR}/${MY_P}"
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cflags="-Wall" \
+ --libdir=/usr/$(get_libdir) \
+ --disable_kernel_check \
+ --kernel_src=${KERNEL_DIR} \
+ --somajor="$MAJ_PV" \
+ --sominor="$MIN_PV" \
+ --dlmlibdir=/usr/$(get_libdir) \
+ --dlmincdir=/usr/include \
+ --dlmcontrollibdir=/usr/$(get_libdir) \
+ --dlmcontrolincdir=/usr/include \
+ || die "configure problem"
+}
+
+src_compile() {
+ for i in libdlm libdlmcontrol; do
+ emake -C ${i}
+ done
+}
+
+src_install() {
+ for i in libdlm libdlmcontrol; do
+ emake DESTDIR="${D}" -C ${i} install
+ done
+ mv "${D}"/$(get_libdir) "${D}"/lib
+ use static-libs || rm -f "${D}"/usr/lib*/*.a
+ doman man/libdlm.3
+ dodoc doc/{libdlm.txt,example.c,user-dlm-overview.txt}
+}