pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/xentools20 Add a rc.d script to start xend. B...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bea1267c651d
branches: trunk
changeset: 490693:bea1267c651d
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Thu Mar 17 23:53:56 2005 +0000
description:
Add a rc.d script to start xend. Bump pkgrevision.
While here, clean up some complains from pkgling.
diffstat:
sysutils/xentools20/Makefile | 11 +++++++----
sysutils/xentools20/files/xend.sh | 22 ++++++++++++++++++++++
2 files changed, 29 insertions(+), 4 deletions(-)
diffs (68 lines):
diff -r dfe6efca8c9d -r bea1267c651d sysutils/xentools20/Makefile
--- a/sysutils/xentools20/Makefile Thu Mar 17 23:47:12 2005 +0000
+++ b/sysutils/xentools20/Makefile Thu Mar 17 23:53:56 2005 +0000
@@ -1,14 +1,13 @@
-# $NetBSD: Makefile,v 1.3 2005/03/10 19:43:25 bouyer Exp $
+# $NetBSD: Makefile,v 1.4 2005/03/17 23:53:56 bouyer Exp $
#
DISTNAME= xen-2.0.3-src
PKGNAME= xentools20-2.0.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/
EXTRACT_SUFX= .tgz
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
-#DISTFILES+= netbsd-xen-kernel-headers-040508.tar.gz
MAINTAINER= bouyer%NetBSD.org@localhost
HOMEPAGE= http://www.netbsd.org/Ports/xen/
@@ -16,6 +15,8 @@
DEPENDS+= ${PYPKGPREFIX}-twisted*:../../net/py-twisted
+USE_PKGINSTALL= yes
+
ONLY_FOR_PLATFORM= NetBSD-*-i386
WRKSRC= ${WRKDIR}/xen-2.0/tools
@@ -49,9 +50,11 @@
SUBST_SED.paths= -e "s|/usr/sbin|${PREFIX}/sbin|g"
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
+RCD_SCRIPTS= xend
+
pre-build:
${MKDIR} ${WRKSRC}/libxc/xen/NetBSD
- ${CP} files/xenio.h ${WRKSRC}/libxc/xen/NetBSD
+ ${CP} ${FILESDIR}/xenio.h ${WRKSRC}/libxc/xen/NetBSD
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
diff -r dfe6efca8c9d -r bea1267c651d sysutils/xentools20/files/xend.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools20/files/xend.sh Thu Mar 17 23:53:56 2005 +0000
@@ -0,0 +1,22 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: xend.sh,v 1.1 2005/03/17 23:53:56 bouyer Exp $
+#
+# PROVIDE: xend
+# REQUIRE: disks network
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="xend"
+rcvar=$name
+command="@PREFIX@/sbin/xend"
+ctl_command="@PREFIX@/sbin/xend"
+start_cmd="echo starting ${command} && ${command} start"
+stop_cmd="echo stopping ${command} && ${command} stop"
+restart_cmd="echo restarting ${command} && ${command} restart"
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index