summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2013-02-18 03:49:16 +0000
committerRichard Yao <ryao@gentoo.org>2013-02-18 03:49:16 +0000
commit0376dabc11870d9a19219d4dd098991d22c8489c (patch)
treede2fd3f365ade7efb9ccc3130a6ca48311321309 /sys-fs/ufsutils
parentAdd ~arm-linux keyword. (diff)
downloadgentoo-2-0376dabc11870d9a19219d4dd098991d22c8489c.tar.gz
gentoo-2-0376dabc11870d9a19219d4dd098991d22c8489c.tar.bz2
gentoo-2-0376dabc11870d9a19219d4dd098991d22c8489c.zip
New package sys-fs/ufsutils based on Debian's ufsutils package, bug \#213723
(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sys-fs/ufsutils')
-rw-r--r--sys-fs/ufsutils/ChangeLog9
-rw-r--r--sys-fs/ufsutils/metadata.xml5
-rw-r--r--sys-fs/ufsutils/ufsutils-8.2_p3.ebuild47
3 files changed, 61 insertions, 0 deletions
diff --git a/sys-fs/ufsutils/ChangeLog b/sys-fs/ufsutils/ChangeLog
new file mode 100644
index 000000000000..4985c3920cc0
--- /dev/null
+++ b/sys-fs/ufsutils/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-fs/ufsutils
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/ufsutils/ChangeLog,v 1.1 2013/02/18 03:49:16 ryao Exp $
+
+*ufsutils-8.2_p3 (18 Feb 2013)
+
+ 18 Feb 2013; Richard Yao <ryao@gentoo.org> +metadata.xml,
+ +ufsutils-8.2_p3.ebuild:
+ New package sys-fs/ufsutils based on Debian's ufsutils package, bug \#213723
diff --git a/sys-fs/ufsutils/metadata.xml b/sys-fs/ufsutils/metadata.xml
new file mode 100644
index 000000000000..ecedda4aa2cc
--- /dev/null
+++ b/sys-fs/ufsutils/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>bsd</herd>
+</pkgmetadata>
diff --git a/sys-fs/ufsutils/ufsutils-8.2_p3.ebuild b/sys-fs/ufsutils/ufsutils-8.2_p3.ebuild
new file mode 100644
index 000000000000..e0f8165f84f2
--- /dev/null
+++ b/sys-fs/ufsutils/ufsutils-8.2_p3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/ufsutils/ufsutils-8.2_p3.ebuild,v 1.1 2013/02/18 03:49:16 ryao Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="FFS/UFS/UFS2 filesystem utilities from FreeBSD"
+HOMEPAGE="http://packages.debian.org/source/sid/ufsutils"
+
+SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV%_*}.orig.tar.gz
+ mirror://debian/pool/main/u/${PN}/${PN}_${PV%_*}-${PV##*_p}.debian.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-libs/libbsd
+ dev-libs/libedit
+ sys-libs/ncurses"
+
+S="${WORKDIR}/${P%_*}"
+
+src_prepare() {
+ EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
+ EPATCH_OPTS="-p1" EPATCH_FORCE="yes" epatch
+
+ # growfs is not properly ported
+ sed -e "s:sbin/growfs::" -i Makefile
+
+ sed -e "s:^\(prefix = \)\(.*\):\1${EPREFIX}usr:" \
+ -e "s:^\(libdir = \$(exec_prefix)\/\)\(.*\):\1$(get_libdir):" \
+ -i Makefile.common
+}
+
+src_compile(){
+ emake -j1
+}
+
+src_install() {
+ dodir /usr/$(get_libdir)
+ dodir /usr/sbin
+ dodir /usr/share/man/man8
+ emake DESTDIR="${ED}" install
+}