diff options
author | lukem <lukem@pkgsrc.org> | 2003-03-25 06:45:00 +0000 |
---|---|---|
committer | lukem <lukem@pkgsrc.org> | 2003-03-25 06:45:00 +0000 |
commit | 15fbb8b0eb54cecf10c950922d0be5bda1ab625c (patch) | |
tree | 7576ecf36456a8328e9b8d3f2d7ae2b4cb8ae66a /security | |
parent | c6e623590a7f11e5bf4bd9f8ae7d441ae240637e (diff) | |
download | pkgsrc-15fbb8b0eb54cecf10c950922d0be5bda1ab625c.tar.gz |
both: use pidfile
sfssd: support "reload"
sfssd: call sfskey gen with "-K -l sfs_host_key" to prevent interactive Q's
bump PKGREVISION (to 2)
Diffstat (limited to 'security')
-rw-r--r-- | security/sfs/Makefile | 4 | ||||
-rw-r--r-- | security/sfs/files/sfscd | 3 | ||||
-rw-r--r-- | security/sfs/files/sfssd | 8 |
3 files changed, 9 insertions, 6 deletions
diff --git a/security/sfs/Makefile b/security/sfs/Makefile index 452963fa72d..7486876c719 100644 --- a/security/sfs/Makefile +++ b/security/sfs/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2003/03/23 14:28:32 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2003/03/25 06:45:00 lukem Exp $ # DISTNAME= sfs-0.7.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= net security MASTER_SITES= http://www.fs.net/sfs/@new-york.lcs.mit.edu,u83s4uk49nt8rmp4uwmt2exvz6d3cavh/pub/sfswww/dist/ diff --git a/security/sfs/files/sfscd b/security/sfs/files/sfscd index 9546fa144a4..77da99f9162 100644 --- a/security/sfs/files/sfscd +++ b/security/sfs/files/sfscd @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: sfscd,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $ +# $NetBSD: sfscd,v 1.2 2003/03/25 06:45:01 lukem Exp $ # # start script for SFS client daemon @@ -11,6 +11,7 @@ name="sfscd" rcvar=$name command="@PREFIX@/sbin/${name}" +pidfile="/var/run/${name}.pid" load_rc_config $name run_rc_command "$1" diff --git a/security/sfs/files/sfssd b/security/sfs/files/sfssd index b2b66ee0f62..0c7b7168b75 100644 --- a/security/sfs/files/sfssd +++ b/security/sfs/files/sfssd @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: sfssd,v 1.1.1.1 2003/03/17 21:01:47 agc Exp $ +# $NetBSD: sfssd,v 1.2 2003/03/25 06:45:01 lukem Exp $ # # start script for SFS server daemon @@ -11,8 +11,9 @@ name="sfssd" rcvar=$name command="@PREFIX@/sbin/${name}" +pidfile="/var/run/${name}.pid" required_files="@PREFIX@/etc/sfs/sfsrwsd_config" -extra_commands="keygen" +extra_commands="keygen reload" sfssd_keygen() { @@ -22,7 +23,8 @@ sfssd_keygen() 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 + @PREFIX@/bin/sfskey gen -P -K -l sfs_host_key \ + @PREFIX@/etc/sfs/sfs_host_key fi ) } |