summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <smitdane@gmail.com>2010-08-09 15:26:38 -0400
committerDane Smith <smitdane@gmail.com>2010-08-09 15:26:38 -0400
commitf7511efaa2fe456c140689656363064fc7a0d24e (patch)
treeee94883ccb90bda485e1fe4ec12261f2538ac865 /app-crypt/cfs
parentSmall change (diff)
downloadsmithdanea-f7511efaa2fe456c140689656363064fc7a0d24e.tar.gz
smithdanea-f7511efaa2fe456c140689656363064fc7a0d24e.tar.bz2
smithdanea-f7511efaa2fe456c140689656363064fc7a0d24e.zip
Updated ebuild for cfs
Diffstat (limited to 'app-crypt/cfs')
-rw-r--r--app-crypt/cfs/ChangeLog12
-rw-r--r--app-crypt/cfs/Manifest11
-rw-r--r--app-crypt/cfs/cfs-1.4.1.14.ebuild83
-rw-r--r--app-crypt/cfs/cfs-1.4.1.17.ebuild82
-rw-r--r--app-crypt/cfs/files/README.Gentoo47
-rw-r--r--app-crypt/cfs/files/cfsd.conf12
-rw-r--r--app-crypt/cfs/files/cfsd.init29
-rw-r--r--app-crypt/cfs/metadata.xml8
8 files changed, 284 insertions, 0 deletions
diff --git a/app-crypt/cfs/ChangeLog b/app-crypt/cfs/ChangeLog
new file mode 100644
index 0000000..71c0dfd
--- /dev/null
+++ b/app-crypt/cfs/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-crypt/cfs
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*cfs-1.4.1.17 (09 Aug 2010)
+*cfs-1.4.1.14 (09 Aug 2010)
+
+ 09 Aug 2010; Dane Smith (c1pher) <smithdanea@gmail.com>
+ +cfs-1.4.1.14.ebuild, +cfs-1.4.1.17.ebuild, +files/README.Gentoo,
+ +files/cfsd.conf, +files/cfsd.init, +metadata.xml:
+ Fixed both ebuilds to respect LDFLAGS wrt 331939.
+
diff --git a/app-crypt/cfs/Manifest b/app-crypt/cfs/Manifest
new file mode 100644
index 0000000..90c50f8
--- /dev/null
+++ b/app-crypt/cfs/Manifest
@@ -0,0 +1,11 @@
+AUX README.Gentoo 1584 RMD160 d1e5ed6ab7496e8cf67a768c6e4d284e6fa0d4d9 SHA1 3da888f5938d55ede9ccb866457fe1a7a2b4c1e3 SHA256 b8499aa748482950b72d1623519753b55ef1b3d01bb07cfa03c503df3482a733
+AUX cfsd.conf 341 RMD160 937c589da93c0ac762944958fac927f65aaddd4f SHA1 15632e7e695657913b0749946d77bfc8ca354f90 SHA256 d3839a8d9d551d38a9cc18f949a5fe8dd27f9daa36d83aa86e1ce5157f050c51
+AUX cfsd.init 671 RMD160 2cbdf921f424d010e592e9b80906fea576468228 SHA1 a9049b9b23272787269cfbdf1ecf2d88fe641916 SHA256 1344bbdb6ebca144bde0347f41328728cbc158ae0d2aedeeda617fac41edd8fa
+DIST cfs_1.4.1-14.diff.gz 17787 RMD160 6b26105f7fa7c34f40be4b6b881599b36bcefb35 SHA1 0edb8290903f77853747735f9aa13f48c4297fda SHA256 eefe6a9a4c7782c33eda14b93ab000eb7a5cc405a9af113284f93cdfd5564f7e
+DIST cfs_1.4.1-17.diff.gz 18581 RMD160 9fcd6c905f29de64e538c2fbc76c2894e57f14b6 SHA1 427924e1ab9cd92b2118b62164344922de19f13a SHA256 c0938cd88dd603b6ade9dc3cd3073dcd8e3a08e8a16685e62e383681a9506ade
+DIST cfs_1.4.1.orig.tar.gz 98376 RMD160 c78b17d920a4c2c3b9382da533a87ca7bea9d8d5 SHA1 ef3dcebcd21071cb04634ce0b3214e7967dde188 SHA256 86b52891c2cff4c80e4c3779337e690c54a6b8e132611269576c3d8d31ec4e74
+EBUILD cfs-1.4.1.14.ebuild 2322 RMD160 6dcd5a52a96f40a5685a3ce10a362fb7bc69ef64 SHA1 2e491bbbbdc16629cb78bf2eb500ab000ac4a490 SHA256 00ff2eabaac758c1f2695979affeb79a3469fbfdb51a83c6545722dbbf342de6
+EBUILD cfs-1.4.1.17.ebuild 2318 RMD160 8c898f8fec7f411848d72b6490e10459384279fe SHA1 896bb0960495b1ae8bfa6bd9267117765cbc4a3f SHA256 665bfea8febf83309e18f06f512d2ed6bc523f44c0ae33a83c2b144a04075527
+MISC ChangeLog 403 RMD160 215540cb95ad1bba926861bc97ef100547ab517f SHA1 e163d0c6d945723824ba20ff522e4909716a19ce SHA256 1d97bbea060cfb391b0a811b137dbc5a9093172a3608439e65262a8af1cc85ab
+MISC ChangeLog.new~ 353 RMD160 46d4ff32f2fadcd6c199283a995ab3f4085895a8 SHA1 5ddb3c9df01b524a496c05f1f317ea3d784a546c SHA256 cd69bce5cf30d0719e8847501a03cb163e8bbd7bc40bd7c96eba58ee4a88adc8
+MISC metadata.xml 233 RMD160 d81ec1a0582856aeac5ef3bfec5c80d9850216f6 SHA1 9b94f113e7f382076b1749c2a856e409c96cade3 SHA256 dce03f6cdd96135caf3c971a5ca4a8c916f44532fe8cfb6df88b7bdade407e8b
diff --git a/app-crypt/cfs/cfs-1.4.1.14.ebuild b/app-crypt/cfs/cfs-1.4.1.14.ebuild
new file mode 100644
index 0000000..70244c9
--- /dev/null
+++ b/app-crypt/cfs/cfs-1.4.1.14.ebuild
@@ -0,0 +1,83 @@
+# 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.14.ebuild,v 1.8 2008/12/17 00:15:51 halcy0n 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/unstable/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="~x86 ~ppc"
+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."
+}
diff --git a/app-crypt/cfs/cfs-1.4.1.17.ebuild b/app-crypt/cfs/cfs-1.4.1.17.ebuild
new file mode 100644
index 0000000..fab02d5
--- /dev/null
+++ b/app-crypt/cfs/cfs-1.4.1.17.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.ebuild,v 1.5 2008/12/17 00:15:51 halcy0n 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."
+}
diff --git a/app-crypt/cfs/files/README.Gentoo b/app-crypt/cfs/files/README.Gentoo
new file mode 100644
index 0000000..e757b45
--- /dev/null
+++ b/app-crypt/cfs/files/README.Gentoo
@@ -0,0 +1,47 @@
+-*- mode: outline -*-
+
+* Configuration on Gentoo
+
+Before starting CFS, you will need to setup NFS.
+
+Add an export line to your /etc/exports configuration. Such that an
+empty directory with no permissions is exported to localhost with
+read/write access. This directory is known as the "null export"
+directory. Portage has installed such a directory for you at
+/var/lib/cfs/.cfsfs, thus your /etc/exports line would look like this:
+
+ /var/lib/cfs/.cfsfs localhost(rw,sync)
+
+Add an entry to /etc/fstab which mounts the null export share to the
+"crypt root" mount point. By default, Portage has installed such a
+mount point for you at /var/cfs, thus your /etc/fstab entry will look
+like this:
+
+ localhost:/var/lib/cfs/.cfsfs /var/cfs nfs port=3049,intr,nfsvers=2 0 0
+
+At this point, you may restart NFS:
+
+ /etc/init.d/nfs restart
+ /etc/init.d/nfsmount restart
+
+Alternatively you can run the following commands:
+
+ exportfs -rv
+ mount -oport=3049,intr,nfsvers=2 localhost:/var/lib/cfs/.cfsfs /var/cfs
+
+Finally, start the CFS daemon:
+
+ /etc/init.d/cfs start
+
+* Differences between the Gentoo port and Debian port
+
+Differences in the Gentoo port include:
+
+ - No automatic manipulation of user configuration files such as
+ /etc/exports or /etc/fstab. It is the user's responsibility to
+ update those files.
+
+ - cfs_*mount.sh included in Debian are not used. The user must
+ manually add entries to /etc/fstab however the Gentoo RC system
+ will take care of automatically mounting/unmounting NFS and
+ starting CFS in the right order.
diff --git a/app-crypt/cfs/files/cfsd.conf b/app-crypt/cfs/files/cfsd.conf
new file mode 100644
index 0000000..82d78fa
--- /dev/null
+++ b/app-crypt/cfs/files/cfsd.conf
@@ -0,0 +1,12 @@
+# -*- mode: shell-script -*-
+
+# Configuration for the Cryptographic Filesystem (CFS)
+
+# Mount point for encrypted filesystems
+CRYPT_ROOT=/var/cfs
+
+# Se this if you don't want a symbolic link /crypt -> $CRYPT_ROOT.
+# NO_CRYPT_SYMLINK=true
+
+# An empty, permissionless directory that is used as the NFS export.
+NULL_EXPORT=/var/lib/cfs/.cfsfs
diff --git a/app-crypt/cfs/files/cfsd.init b/app-crypt/cfs/files/cfsd.init
new file mode 100644
index 0000000..a2d6277
--- /dev/null
+++ b/app-crypt/cfs/files/cfsd.init
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/cfs/files/cfsd.init,v 1.2 2004/09/28 00:18:13 swegener Exp $
+
+depend() {
+ need nfs
+ before nfsmount
+}
+
+start() {
+ ebegin "Starting cfsd"
+ NODAEMON=1 start-stop-daemon --start --pidfile /var/run/cfs.pid \
+ --make-pidfile --background --exec /usr/sbin/cfsd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cfsd"
+ start-stop-daemon --oknodo --stop --pidfile /var/run/cfs.pid \
+ && rm -f /var/run/cfs.pid
+ eend $?
+}
+
+# Local Variables:
+# mode: shell-script
+# indent-tabs-mode: t
+# tab-width: 4
+# End:
diff --git a/app-crypt/cfs/metadata.xml b/app-crypt/cfs/metadata.xml
new file mode 100644
index 0000000..73420b6
--- /dev/null
+++ b/app-crypt/cfs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>