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 | 7f4d79654632ed2707ecbb024fc08066d346eaeb (patch) | |
tree | 9bcf3eba8598b9aa8f38e313dc1d5223c80af8a2 /net-fs/sfs/sfs-0.7.2.ebuild | |
parent | java-commons eclass and functions were renamed to jakarta-commons. (diff) | |
download | gentoo-2-7f4d79654632ed2707ecbb024fc08066d346eaeb.tar.gz gentoo-2-7f4d79654632ed2707ecbb024fc08066d346eaeb.tar.bz2 gentoo-2-7f4d79654632ed2707ecbb024fc08066d346eaeb.zip |
Initial import
Diffstat (limited to 'net-fs/sfs/sfs-0.7.2.ebuild')
-rw-r--r-- | net-fs/sfs/sfs-0.7.2.ebuild | 103 |
1 files changed, 103 insertions, 0 deletions
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 +} |