Wed Jan 30 09:39:13 2008 UTC ()
Provide an rc script. PKGREVISION++


(tnn)
diff -r1.2 -r1.3 pkgsrc/net/unfs3/Makefile
diff -r1.1.1.1 -r1.2 pkgsrc/net/unfs3/PLIST
diff -r0 -r1.1 pkgsrc/net/unfs3/files/unfsd.sh

cvs diff -r1.2 -r1.3 pkgsrc/net/unfs3/Makefile (expand / switch to unified diff)

--- pkgsrc/net/unfs3/Makefile 2008/01/17 04:00:47 1.2
+++ pkgsrc/net/unfs3/Makefile 2008/01/30 09:39:13 1.3
@@ -1,29 +1,31 @@ @@ -1,29 +1,31 @@
1# $NetBSD: Makefile,v 1.2 2008/01/17 04:00:47 tnn Exp $ 1# $NetBSD: Makefile,v 1.3 2008/01/30 09:39:13 tnn Exp $
2# 2#
3 3
4DISTNAME= unfs3-0.9.20 4DISTNAME= unfs3-0.9.20
 5PKGREVISION= 1
5CATEGORIES= net 6CATEGORIES= net
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=unfs3/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=unfs3/}
7 8
8MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://unfs3.sourceforge.net/ 10HOMEPAGE= http://unfs3.sourceforge.net/
10COMMENT= Userspace NFSv3 server 11COMMENT= Userspace NFSv3 server
11 12
12GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
13PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
14 15
15CONF_FILES+= ${PREFIX}/share/examples/unfs3/exports \ 16CONF_FILES+= ${PREFIX}/share/examples/unfs3/exports \
16 ${PKG_SYSCONFDIR}/exports 17 ${PKG_SYSCONFDIR}/exports
 18RCD_SCRIPTS= unfsd
17 19
18INSTALLATION_DIRS+= share/examples/unfs3 20INSTALLATION_DIRS+= share/examples/unfs3
19 21
20SUBST_CLASSES+= exports 22SUBST_CLASSES+= exports
21SUBST_STAGE.exports= pre-configure 23SUBST_STAGE.exports= pre-configure
22SUBST_MESSAGE.exports= Fixing path to exports(5) 24SUBST_MESSAGE.exports= Fixing path to exports(5)
23SUBST_FILES.exports= daemon.c unfsd.8 25SUBST_FILES.exports= daemon.c unfsd.8
24SUBST_SED.exports= -e 's,/etc/exports,${PKG_SYSCONFDIR}/exports,g' 26SUBST_SED.exports= -e 's,/etc/exports,${PKG_SYSCONFDIR}/exports,g'
25 27
26.include "../../mk/bsd.prefs.mk" 28.include "../../mk/bsd.prefs.mk"
27 29
28.if ${OPSYS} == "NetBSD" 30.if ${OPSYS} == "NetBSD"
29BUILDLINK_TRANSFORM+= rm:-lrpcsoc 31BUILDLINK_TRANSFORM+= rm:-lrpcsoc

cvs diff -r1.1.1.1 -r1.2 pkgsrc/net/unfs3/PLIST (expand / switch to unified diff)

--- pkgsrc/net/unfs3/PLIST 2008/01/17 03:29:16 1.1.1.1
+++ pkgsrc/net/unfs3/PLIST 2008/01/30 09:39:13 1.2
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1@comment $NetBSD: PLIST,v 1.1.1.1 2008/01/17 03:29:16 tnn Exp $ 1@comment $NetBSD: PLIST,v 1.2 2008/01/30 09:39:13 tnn Exp $
2man/man7/tags.7 2man/man7/tags.7
3man/man8/unfsd.8 3man/man8/unfsd.8
4sbin/unfsd 4sbin/unfsd
 5share/examples/rc.d/unfsd
5share/examples/unfs3/exports 6share/examples/unfs3/exports
6@dirrm share/examples/unfs3 7@dirrm share/examples/unfs3

File Added: pkgsrc/net/unfs3/files/unfsd.sh
#!@RCD_SCRIPTS_SHELL@
#
# 	$NetBSD: unfsd.sh,v 1.1 2008/01/30 09:39:13 tnn Exp $
#
# PROVIDE: unfsd
# REQUIRE: DAEMON rpcbind

if [ -f /etc/rc.subr ]
then
	. /etc/rc.subr
fi

name="unfsd"
rcvar="${name}"
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
command_args="-i ${pidfile}"

load_rc_config $name
load_rc_config_var rpcbind rpcbind
run_rc_command "$1"