diff options
author | 2010-08-10 22:30:13 +0000 | |
---|---|---|
committer | 2010-08-10 22:30:13 +0000 | |
commit | d8cbe8719b6605be6d96bf7268936d5e689fcd76 (patch) | |
tree | 685d7ee693e338ba65654d1059b2c27be62ecc8c /app-crypt/cfs | |
parent | Version bump. Bug #332129. Thanks to Dane Smith <smithdanea@gmail.com> for th... (diff) | |
download | gentoo-2-d8cbe8719b6605be6d96bf7268936d5e689fcd76.tar.gz gentoo-2-d8cbe8719b6605be6d96bf7268936d5e689fcd76.tar.bz2 gentoo-2-d8cbe8719b6605be6d96bf7268936d5e689fcd76.zip |
Respect LDFLAGS. Bug #331939. Thanks to Dane Smith <smithdanea@gmail.com> for the patch
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/cfs')
-rw-r--r-- | app-crypt/cfs/ChangeLog | 11 | ||||
-rw-r--r-- | app-crypt/cfs/cfs-1.4.1.17-r1.ebuild | 82 |
2 files changed, 91 insertions, 2 deletions
diff --git a/app-crypt/cfs/ChangeLog b/app-crypt/cfs/ChangeLog index 1aa303544d29..3d182cbb040f 100644 --- a/app-crypt/cfs/ChangeLog +++ b/app-crypt/cfs/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-crypt/cfs -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/cfs/ChangeLog,v 1.11 2008/12/17 00:15:51 halcy0n Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/cfs/ChangeLog,v 1.12 2010/08/10 22:30:13 hwoarang Exp $ + +*cfs-1.4.1.17-r1 (10 Aug 2010) + + 10 Aug 2010; Markos Chandras <hwoarang@gentoo.org> + +cfs-1.4.1.17-r1.ebuild: + Respect LDFLAGS. Bug #331939. Thanks to Dane Smith <smithdanea@gmail.com> + for the patch 17 Dec 2008; Mark Loeser <halcy0n@gentoo.org> cfs-1.4.1.14.ebuild, cfs-1.4.1.17.ebuild: diff --git a/app-crypt/cfs/cfs-1.4.1.17-r1.ebuild b/app-crypt/cfs/cfs-1.4.1.17-r1.ebuild new file mode 100644 index 000000000000..8013fe118956 --- /dev/null +++ b/app-crypt/cfs/cfs-1.4.1.17-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/cfs/cfs-1.4.1.17-r1.ebuild,v 1.1 2010/08/10 22:30:13 hwoarang Exp $ + +inherit eutils versionator + +MY_PV="$(get_version_component_range 1-3)" +DEB_PV="$(get_version_component_range 4)" + +# This is a port of the Debian port of CFS which includes several +# useful patches. Many thanks to the Debian developers. + +DESCRIPTION="Cryptographic Filesystem" +HOMEPAGE="http://packages.debian.org/stable/utils/cfs + http://www.crypto.com/software/" +SRC_URI="mirror://debian/pool/main/c/cfs/cfs_${MY_PV}.orig.tar.gz + mirror://debian/pool/main/c/cfs/cfs_${MY_PV}-${DEB_PV}.diff.gz" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="" +DEPEND="net-fs/nfs-utils" + +S=${WORKDIR}/${PN}-${MY_PV}.orig + +# Originally from the common-lisp-common.eclass: + +do-debian-credits() { + docinto debian + for i in copyright README.Debian changelog; do + # be silent, since all files are not always present + dodoc "${S}"/debian/${i} &>/dev/null || true + done + docinto . +} + +cfsd-running() { + test -n "$(mount |grep '\(/var/cfs\|/var/lib/cfs/\.cfsfs\)')" +} + +pkg_setup() { + if cfsd-running; then + eerror "It seems that the null directory or CFS root is currently in use." + eerror "You must shutdown CFS before merging this port or at least unmount" + eerror "the CFS root before using this port." + die "cfs is still running!" + fi +} + +src_unpack() { + unpack ${A} + epatch cfs_${MY_PV}-${DEB_PV}.diff + cd "${S}" + sed -i 's/$(CC)/$(CC) $(LDFLAGS)/g' Makefile || die "sed failed" +} + +src_compile() { + make cfs CC=$(tc-getCC) COPT="${CFLAGS} -DPROTOTYPES -g" || die "make failed!" +} + +src_install() { + make install_cfs BINDIR="${D}"/usr/bin ETCDIR="${D}"/usr/sbin || \ + die "make install failed!" + newconfd "${FILESDIR}"/cfsd.conf cfsd +# exeinto /var/lib/cfs +# doexe debian/cfs_*mount.sh + keepdir /var/run/cfs + keepdir /var/cfs + keepdir /var/lib/cfs/.cfsfs + chmod 0 "${D}"/var/lib/cfs/.cfsfs + doman *.[18] + newinitd "${FILESDIR}"/cfsd.init cfsd + do-debian-credits + dodoc LEVELS README* VERSION + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinst() { + rm -f /var/lib/cfs/.cfsfs/.keep + einfo "Please read the Gentoo README in /usr/share/doc/${PF}/ for" + einfo "information on how to get started with CFS on Gentoo." +} |