pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/openafs Configure the ${PKG_SYSCONFDIR}/openafs & ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/538c7c52b16e
branches: trunk
changeset: 495653:538c7c52b16e
user: gendalia <gendalia%pkgsrc.org@localhost>
date: Thu Jun 16 17:27:12 2005 +0000
description:
Configure the ${PKG_SYSCONFDIR}/openafs & ${VARBASE}/openafs directories
correctly & completely, and add the startup script for the bosserver.
diffstat:
net/openafs/Makefile | 11 ++++++++---
net/openafs/PLIST | 3 ++-
net/openafs/files/bosserver.sh | 18 ++++++++++++++++++
3 files changed, 28 insertions(+), 4 deletions(-)
diffs (78 lines):
diff -r 78cc9590d930 -r 538c7c52b16e net/openafs/Makefile
--- a/net/openafs/Makefile Thu Jun 16 15:41:20 2005 +0000
+++ b/net/openafs/Makefile Thu Jun 16 17:27:12 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2005/06/10 15:57:05 gendalia Exp $
+# $NetBSD: Makefile,v 1.7 2005/06/16 17:27:12 gendalia Exp $
DISTNAME= openafs-1.3.84-src
PKGNAME= ${DISTNAME:C/-src//}
@@ -20,6 +20,7 @@
CONFIGURE_ARGS+= --enable-debug --enable-bos-new-config
CONFIGURE_ARGS+= --enable-namei-fileserver
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
USE_GNU_CONFIGURE_HOST= no
@@ -27,6 +28,7 @@
PKG_SUPPORTED_OPTIONS = pam
PKG_OPTIONS_VAR = PKG_OPTIONS.openafs
+RCD_SCRIPTS+= bosserver
.include "../../mk/bsd.options.mk"
USE_PKGINSTALL= yes
@@ -39,8 +41,11 @@
CONFIGURE_ARGS+= --disable-pam
.endif
PLIST_SRC+= ${.CURDIR}/PLIST
-OWN_DIRS+= ${VARBASE}/openafs
-OWN_DIRS+= ${VARBASE}/openafs/db
+OWN_DIRS+= ${PKG_SYSCONFDIR}/openafs
+OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/openafs/server ${ROOT_USER} ${ROOT_GROUP} 775
+OWN_DIRS_PERMS+= ${VARBASE}/openafs ${ROOT_USER} ${ROOT_GROUP} 770
OWN_DIRS+= ${VARBASE}/openafs/logs
+OWN_DIRS_PERMS+= ${VARBASE}/openafs/db ${ROOT_USER} ${ROOT_GROUP} 700
+FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q}
.include "../../mk/bsd.pkg.mk"
diff -r 78cc9590d930 -r 538c7c52b16e net/openafs/PLIST
--- a/net/openafs/PLIST Thu Jun 16 15:41:20 2005 +0000
+++ b/net/openafs/PLIST Thu Jun 16 17:27:12 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/05/03 19:30:40 agc Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/06/16 17:27:12 gendalia Exp $
bin/afsmonitor
bin/bos
bin/cmdebug
@@ -222,6 +222,7 @@
sbin/volinfo
sbin/vos
sbin/vsys
+share/examples/rc.d/bosserver
@dirrm sbin/kdump
@dirrm libexec/openafs
@exec ${MKDIR} %D/lib/openafs
diff -r 78cc9590d930 -r 538c7c52b16e net/openafs/files/bosserver.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openafs/files/bosserver.sh Thu Jun 16 17:27:12 2005 +0000
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: bosserver.sh,v 1.1 2005/06/16 17:27:12 gendalia Exp $
+#
+# PROVIDE: bosserver
+# BEFORE: arlad
+# REQUIRE: NETWORK
+
+. /etc/rc.subr
+
+name="bosserver"
+rcvar=$name
+hostname=`@HOSTNAME_CMD@`
+command="@PREFIX@/sbin/$name"
+stop_precmd="@PREFIX@/bin/bos shutdown $hostname -local -wait"
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index