summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoragc <agc>2003-03-17 21:01:47 +0000
committeragc <agc>2003-03-17 21:01:47 +0000
commit8c2270f434b8f424d2571b0599b8c197bef414d8 (patch)
treeec46c531a17da1adcdb0afcc56f30193c20b2312 /security
parentd3b21693ca7c1764dab6383c3c9ae6e67eec33ce (diff)
downloadpkgsrc-8c2270f434b8f424d2571b0599b8c197bef414d8.tar.gz
Initial import of sfs-0.7.2 into the NetBSD Packages Collection.
Based on the sfs-0.6 package provided by Michael Santos in PR 18528. SFS is a secure, global network file system with completely decentralized control. SFS lets you access your files from anywhere and share them with anyone, anywhere. Anyone can set up an SFS server, and any user can access any server from any client. SFS lets you share files across administrative realms without involving administrators or certification authorities.
Diffstat (limited to 'security')
-rw-r--r--security/sfs/DEINSTALL12
-rw-r--r--security/sfs/DESCR6
-rw-r--r--security/sfs/MESSAGE29
-rw-r--r--security/sfs/Makefile58
-rw-r--r--security/sfs/PLIST222
-rw-r--r--security/sfs/distinfo4
-rw-r--r--security/sfs/files/sfscd16
-rw-r--r--security/sfs/files/sfsrwsd_config.sample21
-rw-r--r--security/sfs/files/sfssd41
9 files changed, 409 insertions, 0 deletions
diff --git a/security/sfs/DEINSTALL b/security/sfs/DEINSTALL
new file mode 100644
index 00000000000..4874ae17b5f
--- /dev/null
+++ b/security/sfs/DEINSTALL
@@ -0,0 +1,12 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+
+case "${STAGE}" in
+POST-DEINSTALL)
+ ${ECHO} ===========================================================================
+ ${ECHO}
+ ${ECHO} If you will not be reinstalling SFS, manually remove ${SFSDIR}
+ ${ECHO} and ${PREFIX}/etc/sfs.
+ ${ECHO}
+ ${ECHO} ===========================================================================
+ ;;
+esac
diff --git a/security/sfs/DESCR b/security/sfs/DESCR
new file mode 100644
index 00000000000..3c0a184b7ba
--- /dev/null
+++ b/security/sfs/DESCR
@@ -0,0 +1,6 @@
+SFS is a secure, global network file system with completely
+decentralized control. SFS lets you access your files from anywhere
+and share them with anyone, anywhere. Anyone can set up an SFS
+server, and any user can access any server from any client. SFS
+lets you share files across administrative realms without involving
+administrators or certification authorities.
diff --git a/security/sfs/MESSAGE b/security/sfs/MESSAGE
new file mode 100644
index 00000000000..443c7cf3395
--- /dev/null
+++ b/security/sfs/MESSAGE
@@ -0,0 +1,29 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+
+Quick Client Setup:
+
+1. Add to /etc/rc.conf:
+
+sfscd=YES
+
+2. Run: ${PREFIX}/etc/rc.d/sfscd start
+3. cd /sfs/sfs.fs.net:eu4cvv6wcnzscer98yn4qjpjnn9iv6pi
+4. cat CONGRATULATIONS
+
+Quick Server Setup:
+
+1. Add to /etc/rc.conf:
+
+mountd=YES
+nfs_server=YES
+sfssd=YES
+
+2. Run: /etc/rc.d/nfsd start
+3. Copy ${PREFIX}/etc/sfs/sfsrwsd_config.sample to
+ ${PREFIX}/etc/sfs/sfsrwsd_config and modify.
+4. Modify /etc/exports to match your sfsrwsd_config.
+5. Create the root directories in ${SFSDIR}/root.
+6. Run ${PREFIX}/etc/rc.d/sfssd start
+
+===========================================================================
diff --git a/security/sfs/Makefile b/security/sfs/Makefile
new file mode 100644
index 00000000000..bed43d7b196
--- /dev/null
+++ b/security/sfs/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+#
+
+DISTNAME= sfs-0.7.2
+CATEGORIES= net security
+MASTER_SITES= http://www.fs.net/sfs/@new-york.lcs.mit.edu,u83s4uk49nt8rmp4uwmt2exvz6d3cavh/pub/sfswww/dist/
+
+MAINTAINER= mike@ethmoid.org
+HOMEPAGE= http://www.fs.net/
+COMMENT= Secure, global, self-certifying network file system
+
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS+= --with-sfsuser=sfs
+CONFIGURE_ARGS+= --with-sfsgroup=sfs
+CONFIGURE_ARGS+= --with-etcdir=${PREFIX}/etc/sfs
+CONFIGURE_ARGS+= --disable-uvfs
+
+USE_PKGINSTALL= yes
+USE_BUILDLINK2= yes
+USE_PERL5= yes
+
+DIST_GCC= 2.95.3
+
+PKG_USERS= sfs:sfs::Self-certifying\\ file\\ system:/
+PKG_GROUPS= sfs
+
+.include "../../mk/bsd.prefs.mk"
+
+SFSDIR?= ${PREFIX}/var/sfs
+SFS_ROOT= ${SFSDIR}
+
+CONFIGURE_ARGS+= --with-sfsdir=${SFS_ROOT}
+
+MESSAGE_SUBST+= SFSDIR=${SFS_ROOT}
+
+INFO_FILES= sfs.info
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/etc/sfs
+ ${INSTALL_DATA_DIR} ${SFS_ROOT}
+
+post-install:
+ @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/sfscd \
+ > ${PREFIX}/etc/rc.d/sfscd
+ @${CHMOD} +x ${PREFIX}/etc/rc.d/sfscd
+ @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/sfssd \
+ > ${PREFIX}/etc/rc.d/sfssd
+ @${CHMOD} +x ${PREFIX}/etc/rc.d/sfssd
+ @${SED} -e 's|@SFSDIR@|${SFS_ROOT}|g' ${FILESDIR}/sfsrwsd_config.sample \
+ > ${PREFIX}/etc/sfs/sfsrwsd_config.sample
+
+.include "../../devel/gmp/buildlink2.mk"
+.include "../../lang/gcc/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
+
+.include "../../mk/texinfo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/sfs/PLIST b/security/sfs/PLIST
new file mode 100644
index 00000000000..d2c7ed1fd5a
--- /dev/null
+++ b/security/sfs/PLIST
@@ -0,0 +1,222 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+bin/dirsearch
+bin/fake-agent
+bin/newaid
+bin/rex
+bin/rpc_pcl
+bin/rpc_psrv
+bin/rpcc
+bin/sfsagent
+bin/sfsdeclog
+bin/sfskey
+bin/sfsproac
+bin/smkdirall
+bin/smount
+bin/snfsfstab
+bin/snfshost
+bin/snfsmount
+bin/snfspsrv
+bin/snfsumount
+bin/snfsuser
+bin/ssu
+bin/sumount
+bin/sumountall
+etc/rc.d/sfscd
+etc/rc.d/sfssd
+etc/rpc_pcl.conf
+etc/sfs/sfsrwsd_config.sample
+include/sfs
+include/${PKGNAME}/aclnt.h
+include/${PKGNAME}/aes.h
+include/${PKGNAME}/afsnode.h
+include/${PKGNAME}/agentconn.h
+include/${PKGNAME}/agentmisc.h
+include/${PKGNAME}/aiod.h
+include/${PKGNAME}/aiod_prot.h
+include/${PKGNAME}/aios.h
+include/${PKGNAME}/amisc.h
+include/${PKGNAME}/arc4.h
+include/${PKGNAME}/arena.h
+include/${PKGNAME}/arpc.h
+include/${PKGNAME}/array.h
+include/${PKGNAME}/asrv.h
+include/${PKGNAME}/async.h
+include/${PKGNAME}/autoconf.h
+include/${PKGNAME}/axprt.h
+include/${PKGNAME}/axprt_crypt.h
+include/${PKGNAME}/backoff.h
+include/${PKGNAME}/bbuddy.h
+include/${PKGNAME}/bench.h
+include/${PKGNAME}/bigint.h
+include/${PKGNAME}/bitvec.h
+include/${PKGNAME}/blowfish.h
+include/${PKGNAME}/callback.h
+include/${PKGNAME}/cbuf.h
+include/${PKGNAME}/crypt.h
+include/${PKGNAME}/crypt_prot.h
+include/${PKGNAME}/crypt_prot.x
+include/${PKGNAME}/crypthash.h
+include/${PKGNAME}/dns.h
+include/${PKGNAME}/dnsparse.h
+include/${PKGNAME}/err.h
+include/${PKGNAME}/esign.h
+include/${PKGNAME}/fdlim.h
+include/${PKGNAME}/getfh3.h
+include/${PKGNAME}/hashcash.h
+include/${PKGNAME}/ihash.h
+include/${PKGNAME}/init.h
+include/${PKGNAME}/itree.h
+include/${PKGNAME}/keyfunc.h
+include/${PKGNAME}/list.h
+include/${PKGNAME}/modalg.h
+include/${PKGNAME}/mount_prot.h
+include/${PKGNAME}/mount_prot.x
+include/${PKGNAME}/msb.h
+include/${PKGNAME}/nfs3_ext.x
+include/${PKGNAME}/nfs3_nonnul.h
+include/${PKGNAME}/nfs3_prot.h
+include/${PKGNAME}/nfs3_prot.x
+include/${PKGNAME}/nfs3close_prot.h
+include/${PKGNAME}/nfs3close_prot.x
+include/${PKGNAME}/nfs3exp_prot.h
+include/${PKGNAME}/nfs3exp_prot.x
+include/${PKGNAME}/nfs_prot.h
+include/${PKGNAME}/nfs_prot.x
+include/${PKGNAME}/nfsmounter.h
+include/${PKGNAME}/nfsmounter.x
+include/${PKGNAME}/nfsserv.h
+include/${PKGNAME}/nfstrans.h
+include/${PKGNAME}/opnew.h
+include/${PKGNAME}/parseopt.h
+include/${PKGNAME}/password.h
+include/${PKGNAME}/pcre.h
+include/${PKGNAME}/pmap_prot.h
+include/${PKGNAME}/pmap_prot.x
+include/${PKGNAME}/prime.h
+include/${PKGNAME}/prng.h
+include/${PKGNAME}/qhash.h
+include/${PKGNAME}/rabin.h
+include/${PKGNAME}/refcnt.h
+include/${PKGNAME}/rex.h
+include/${PKGNAME}/rex_prot.h
+include/${PKGNAME}/rex_prot.x
+include/${PKGNAME}/rpctypes.h
+include/${PKGNAME}/rwfd.h
+include/${PKGNAME}/rxx.h
+include/${PKGNAME}/schnorr.h
+include/${PKGNAME}/seqno.h
+include/${PKGNAME}/serial.h
+include/${PKGNAME}/sfs-internal.h
+include/${PKGNAME}/sfs_prot.h
+include/${PKGNAME}/sfs_prot.x
+include/${PKGNAME}/sfsagent.h
+include/${PKGNAME}/sfsagent.x
+include/${PKGNAME}/sfsauth_prot.h
+include/${PKGNAME}/sfsauth_prot.x
+include/${PKGNAME}/sfscd_prot.h
+include/${PKGNAME}/sfscd_prot.x
+include/${PKGNAME}/sfsclient.h
+include/${PKGNAME}/sfsconnect.h
+include/${PKGNAME}/sfscrypt.h
+include/${PKGNAME}/sfsextauth.h
+include/${PKGNAME}/sfskeymgr.h
+include/${PKGNAME}/sfskeymisc.h
+include/${PKGNAME}/sfsmisc.h
+include/${PKGNAME}/sfsro_prot.h
+include/${PKGNAME}/sfsro_prot.x
+include/${PKGNAME}/sfsschnorr.h
+include/${PKGNAME}/sfsserv.h
+include/${PKGNAME}/sfstty.h
+include/${PKGNAME}/sha1.h
+include/${PKGNAME}/srp.h
+include/${PKGNAME}/stllike.h
+include/${PKGNAME}/str.h
+include/${PKGNAME}/suio++.h
+include/${PKGNAME}/sysconf.h
+include/${PKGNAME}/tiger.h
+include/${PKGNAME}/union.h
+include/${PKGNAME}/uvfstrans.h
+include/${PKGNAME}/vatmpl.h
+include/${PKGNAME}/vec.h
+include/${PKGNAME}/wmstr.h
+include/${PKGNAME}/xdr_suio.h
+include/${PKGNAME}/xdrmisc.h
+include/${PKGNAME}/xhinfo.h
+include/sfs.h
+@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/sfs.info
+info/sfs.info
+info/sfs.info-1
+info/sfs.info-2
+info/sfs.info-3
+@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/sfs.info
+lib/libsfs.a
+lib/perl5/site_perl/5.6.1/SNFS.pm
+lib/perl5/site_perl/5.6.1/auto/SNFS/autosplit.ix
+lib/sfs
+lib/${PKGNAME}/aiod
+lib/${PKGNAME}/connect
+lib/${PKGNAME}/libarpc.a
+lib/${PKGNAME}/libarpc.la
+lib/${PKGNAME}/libasync.a
+lib/${PKGNAME}/libasync.la
+lib/${PKGNAME}/libsfscrypt.a
+lib/${PKGNAME}/libsfscrypt.la
+lib/${PKGNAME}/libsfsmisc.a
+lib/${PKGNAME}/libsfsmisc.la
+lib/${PKGNAME}/libsvc.a
+lib/${PKGNAME}/libsvc.la
+lib/${PKGNAME}/listen
+lib/${PKGNAME}/mallock.o
+lib/${PKGNAME}/moduled
+lib/${PKGNAME}/newaid
+lib/${PKGNAME}/nfsmounter
+lib/${PKGNAME}/pathinfo
+lib/${PKGNAME}/proxy
+lib/${PKGNAME}/ptyd
+lib/${PKGNAME}/rexd
+lib/${PKGNAME}/sfsauthd
+lib/${PKGNAME}/sfsrwcd
+lib/${PKGNAME}/sfsrwsd
+lib/${PKGNAME}/suidconnect
+lib/${PKGNAME}/ttyd
+lib/${PKGNAME}/xfer
+man/man1/dirsearch.1
+man/man1/newaid.1
+man/man1/rex.1
+man/man1/sfsagent.1
+man/man1/sfskey.1
+man/man1/ssu.1
+man/man5/sfs_config.5
+man/man5/sfs_srp_params.5
+man/man5/sfs_users.5
+man/man5/sfsauthd_config.5
+man/man5/sfscd_config.5
+man/man5/sfsrwsd_config.5
+man/man5/sfssd_config.5
+man/man7/sfs.7
+man/man8/funmount.8
+man/man8/sfsauthd.8
+man/man8/sfscd.8
+man/man8/sfsrwsd.8
+man/man8/sfssd.8
+man/man8/vidb.8
+sbin/funmount
+sbin/sfscd
+sbin/sfssd
+sbin/vidb
+share/sfs/agentrc
+share/sfs/sfs_config
+share/sfs/sfs_srp_parms
+share/sfs/sfsauthd_config
+share/sfs/sfscd_config
+share/sfs/sfssd_config
+@exec ${MKDIR} %D/var/sfs
+@dirrm var/sfs
+@dirrm var
+@dirrm share/sfs
+@dirrm lib/${PKGNAME}
+@dirrm lib/perl5/site_perl/5.6.1/auto/SNFS
+@dirrm lib/perl5/site_perl/5.6.1/auto
+@dirrm lib/perl5/site_perl/5.6.1
+@dirrm include/${PKGNAME}
+@dirrm etc/sfs
diff --git a/security/sfs/distinfo b/security/sfs/distinfo
new file mode 100644
index 00000000000..60f9a5873a5
--- /dev/null
+++ b/security/sfs/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+
+SHA1 (sfs-0.7.2.tar.gz) = 3619afc9b785e4aa41f7cdf202c5b233a6b5fe08
+Size (sfs-0.7.2.tar.gz) = 1283652 bytes
diff --git a/security/sfs/files/sfscd b/security/sfs/files/sfscd
new file mode 100644
index 00000000000..9546fa144a4
--- /dev/null
+++ b/security/sfs/files/sfscd
@@ -0,0 +1,16 @@
+#!/bin/sh
+# $NetBSD: sfscd,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+#
+# start script for SFS client daemon
+
+# PROVIDE: sfscd
+# REQUIRE: NETWORK
+
+. /etc/rc.subr
+
+name="sfscd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/security/sfs/files/sfsrwsd_config.sample b/security/sfs/files/sfsrwsd_config.sample
new file mode 100644
index 00000000000..89edc7c0cbc
--- /dev/null
+++ b/security/sfs/files/sfsrwsd_config.sample
@@ -0,0 +1,21 @@
+# $NetBSD: sfsrwsd_config.sample,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+#
+# Note:
+#
+# * /etc/exports must be modified as well
+#
+# For the directories below, /etc/exports would be:
+# @SFSDIR@ localhost
+# /disk/u1 localhost
+# /disk/u2 localhost
+#
+# * Create the root directories in @SFSDIR@
+# mkdir @SFSDIR@/root
+# mkdir @SFSDIR@/root/usr1
+# mkdir @SFSDIR@/root/usr2
+#
+# Local SFS name
+# ========================
+Export @SFSDIR@/root /
+Export /disk/u1 /usr1
+Export /disk/u2 /usr2
diff --git a/security/sfs/files/sfssd b/security/sfs/files/sfssd
new file mode 100644
index 00000000000..b2b66ee0f62
--- /dev/null
+++ b/security/sfs/files/sfssd
@@ -0,0 +1,41 @@
+#!/bin/sh
+# $NetBSD: sfssd,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $
+#
+# start script for SFS server daemon
+
+# PROVIDE: sfssd
+# REQUIRE: mountd
+
+. /etc/rc.subr
+
+name="sfssd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="@PREFIX@/etc/sfs/sfsrwsd_config"
+extra_commands="keygen"
+
+sfssd_keygen()
+{
+ (
+ umask 022
+ if [ -f @PREFIX@/etc/sfs/sfs_host_key ]; then
+ echo "You already have a host key" \
+ "in @PREFIX@/etc/sfs/sfs_host_key"
+ else
+ @PREFIX@/bin/sfskey gen -P @PREFIX@/etc/sfs/sfs_host_key
+ fi
+ )
+}
+
+sfssd_precmd()
+{
+ if [ ! -f @PREFIX@/etc/sfs/sfs_host_key ]; then
+ run_rc_command keygen
+ fi
+}
+
+keygen_cmd=sfssd_keygen
+start_precmd=sfssd_precmd
+
+load_rc_config $name
+run_rc_command "$1"