diff options
author | Wout Mertens <wmertens@gentoo.org> | 2003-03-19 01:43:05 +0000 |
---|---|---|
committer | Wout Mertens <wmertens@gentoo.org> | 2003-03-19 01:43:05 +0000 |
commit | e03ffe7595eb0f4bc4dddcf4c47d01ad72ebc414 (patch) | |
tree | b0f47103fb7ffe637aed0afe6c5bdc64fb7278f8 /net-fs/sfs | |
parent | whoops. (diff) | |
download | historical-e03ffe7595eb0f4bc4dddcf4c47d01ad72ebc414.tar.gz historical-e03ffe7595eb0f4bc4dddcf4c47d01ad72ebc414.tar.bz2 historical-e03ffe7595eb0f4bc4dddcf4c47d01ad72ebc414.zip |
Initial import
Diffstat (limited to 'net-fs/sfs')
-rw-r--r-- | net-fs/sfs/Changelog | 8 | ||||
-rw-r--r-- | net-fs/sfs/files/digest-sfs-0.7.2 | 1 | ||||
-rw-r--r-- | net-fs/sfs/files/sfscd | 20 | ||||
-rw-r--r-- | net-fs/sfs/files/sfsrwsd_config | 13 | ||||
-rw-r--r-- | net-fs/sfs/files/sfssd | 25 | ||||
-rw-r--r-- | net-fs/sfs/sfs-0.7.2.ebuild | 103 |
6 files changed, 170 insertions, 0 deletions
diff --git a/net-fs/sfs/Changelog b/net-fs/sfs/Changelog new file mode 100644 index 000000000000..1a42ee5c13e6 --- /dev/null +++ b/net-fs/sfs/Changelog @@ -0,0 +1,8 @@ +# ChangeLog for <CATEGORY>/<PACKAGE_NAME> +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/sfs/Changelog,v 1.1 2003/03/19 01:43:05 wmertens Exp $ + +*sfs-0.7.2 (19 Mar 2003) + + 19 Mar 2003; Wout Mertens <wmertens@gentoo.org> : + Initial import. Ebuild submitted by Marshall T. Vandegrift <vandem2@rpi.edu> diff --git a/net-fs/sfs/files/digest-sfs-0.7.2 b/net-fs/sfs/files/digest-sfs-0.7.2 new file mode 100644 index 000000000000..da02937f83fc --- /dev/null +++ b/net-fs/sfs/files/digest-sfs-0.7.2 @@ -0,0 +1 @@ +MD5 1fb559f144c4d367ef01e93beb1dea1e sfs-0.7.2.tar.gz 1283652 diff --git a/net-fs/sfs/files/sfscd b/net-fs/sfs/files/sfscd new file mode 100644 index 000000000000..970ed4791f41 --- /dev/null +++ b/net-fs/sfs/files/sfscd @@ -0,0 +1,20 @@ +#! /sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-fs/sfs/files/sfscd,v 1.1 2003/03/19 01:43:05 wmertens Exp $ + +depend() { + need net portmap +} + +start() { + ebegin "Starting SFS client daemon" + start-stop-daemon --start --quiet --exec /sbin/sfscd 1>&2 + eend $? +} + +stop() { + ebegin "Stopping SFS client daemon" + start-stop-daemon --stop --quiet --exec /sbin/sfscd 1>&2 + eend $? +} diff --git a/net-fs/sfs/files/sfsrwsd_config b/net-fs/sfs/files/sfsrwsd_config new file mode 100644 index 000000000000..f020e0dc3d07 --- /dev/null +++ b/net-fs/sfs/files/sfsrwsd_config @@ -0,0 +1,13 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/sfs/files/sfsrwsd_config,v 1.1 2003/03/19 01:43:05 wmertens Exp $ + +# Example sfsrwd_config file for serving files with SFS. All exported +# directories must exist within the SFS root export directory and must +# also be exported to localhost via NFS. Read the SFS documentation +# for full information about configuring an SFS server. + +Keyfile /etc/sfs/sfs_host_key + +# Export /var/sfs/root / +# Export /home /home diff --git a/net-fs/sfs/files/sfssd b/net-fs/sfs/files/sfssd new file mode 100644 index 000000000000..f5e3dc5852c6 --- /dev/null +++ b/net-fs/sfs/files/sfssd @@ -0,0 +1,25 @@ +#! /sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-fs/sfs/files/sfssd,v 1.1 2003/03/19 01:43:05 wmertens Exp $ + +depend() { + need net portmap nfs +} + +start() { + ebegin "Starting SFS server daemon" + start-stop-daemon --start --quiet --exec /sbin/sfssd 1>&2 + eend $? +} + +stop() { + # Stopping/restarting will likely cause any connected SFS clients + # to hang messily until they are restarted. Just keep this in + # mind, as I do not believe that the current version has a + # work-around. + + ebegin "Stopping SFS server daemon" + start-stop-daemon --stop --quiet --exec /sbin/sfssd 1>&2 + eend $? +} diff --git a/net-fs/sfs/sfs-0.7.2.ebuild b/net-fs/sfs/sfs-0.7.2.ebuild new file mode 100644 index 000000000000..a0c640b86ebc --- /dev/null +++ b/net-fs/sfs/sfs-0.7.2.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/sfs/sfs-0.7.2.ebuild,v 1.1 2003/03/19 01:43:05 wmertens Exp $ + +DESCRIPTION="SFS (Self-certifying File System) client and server daemons" +HOMEPAGE="http://www.fs.net/" +SRC_URI="http://www.fs.net/sfs/@new-york.lcs.mit.edu,u83s4uk49nt8rmp4uwmt2exvz6d3cavh/pub/sfswww/dist/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +IUSE="ssl" +KEYWORDS="~x86" + +DEPEND="virtual/glibc + >=dev-libs/gmp-4.1 + >=net-fs/nfs-utils-0.3.3 + ssl? ( >=dev-libs/openssl-0.9.6 )" + +RDEPEND="$DEPEND + >=net-nds/portmap-5b-r6" + +S="${WORKDIR}/${P}" + +pkg_setup() { + local sfs_gid=71 + local sfs_uid=71 + + # checking for NFS support *seems* like a good idea, but since + # nfs-utils doesn't do it, sfs won't either + + # add the sfs group if necessary + if ! grep "^sfs:" /etc/group &>/dev/null; then + while grep ":${sfs_gid}:" /etc/group &>/dev/null; do + sfs_gid++ ; + done + + ewarn "Creating group 'sfs' (w/ gid ${sfs_gid})..." + groupadd -g ${sfs_gid} sfs + fi + + # add the sfs user if necessary + if ! grep "^sfs:" /etc/passwd &>/dev/null; then + while grep "^[^:]*:[^:]*:${sfs_uid}:" /etc/passwd &>/dev/null; do + sfs_uid++ ; + done + + ewarn "Creating user 'sfs' (w/ uid ${sfs_uid})..." + useradd -u ${sfs_uid} -g sfs -d / -s /dev/null \ + -c "Self-certifying file system" sfs + fi +} + +src_compile() { + if [ "`use ssl`" ]; then + EXTRA_ECONF="${EXTRA_ECONF} --with-openssl=/usr" + else + EXTRA_ECONF="${EXTRA_ECONF} --without-openssl" + fi + EXTRA_ECONF="${EXTRA_ECONF} --with-gmp=/usr --with-gnuld --prefix=/" + + econf + + # won't parallel build w/o baby-sitting + EXTRA_EMAKE="${EXTRA_EMAKE} -j1" emake || die +} + +src_install() { + einstall prefix=${D}/ + + insinto /etc/sfs/ + doins ${FILESDIR}/sfsrwsd_config + + dodoc AUTHORS COPYING ChangeLog NEWS \ + README README.0.7-upgrade \ + STANDARDS TODO + + exeinto /etc/init.d/ + doexe ${FILESDIR}/sfscd \ + ${FILESDIR}/sfssd + + dosym /lib/${P}/newaid /bin/newaid +} + +pkg_postinst() { + einfo "Execute '/etc/init.d/sfscd start' to start the SFS client," + einfo " or 'rc-update add sfscd default' to add it to the" + einfo " default runlevel." + einfo "" + einfo "See the SFS documentation for server configuration." + einfo "" + einfo "Both the client and server require kernel support" + einfo " for NFS version 3 in order to operate properly." + einfo "" + + # Running depscan since we introduced some new init scripts + /etc/init.d/depscan.sh + return 0 +} + +pkg_config() { + einfo "Generating SFS host key..." + sfskey gen -P /etc/sfs/sfs_host_key +} |