summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-11-10 02:55:27 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-11-10 02:55:27 +0800
commita6d3f91d698d421a8b98eebcfe2b37fe4904f46c (patch)
treeb733353690b57870f02aa8786d677160e214cd39
parent01e1e83823f17ab9e65771eed1efd401c33bb141 (diff)
downloadmarcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.gz
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.bz2
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.lz
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.xz
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.zst
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.zip
Add an rc.d script for s-t-b as this backend needs to start as root. Thanks
to Carlos Garnacho for pointing this out. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7895 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--sysutils/system-tools-backends/Makefile5
-rw-r--r--sysutils/system-tools-backends/files/system-tools-backends.in24
2 files changed, 28 insertions, 1 deletions
diff --git a/sysutils/system-tools-backends/Makefile b/sysutils/system-tools-backends/Makefile
index 3e5e83255..56c4d1a40 100644
--- a/sysutils/system-tools-backends/Makefile
+++ b/sysutils/system-tools-backends/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/sysutils/system-tools-backends/Makefile,v 1.24 2006/11/04 19:33:54 marcus Exp $
+# $MCom: ports/sysutils/system-tools-backends/Makefile,v 1.25 2006/11/07 07:10:27 marcus Exp $
#
PORTNAME= system-tools-backends
PORTVERSION= 1.9.91
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
@@ -24,6 +25,8 @@ USE_GMAKE= yes
USE_PERL5= yes
USE_GNOME= gnomehack gnometarget intlhack
GNU_CONFIGURE= yes
+USE_RC_SUBR= system-tools-backends
+USE_GNOME_SUBR= yes
CONFIGURE_ARGS= --with-stb-group=wheel
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/sysutils/system-tools-backends/files/system-tools-backends.in b/sysutils/system-tools-backends/files/system-tools-backends.in
new file mode 100644
index 000000000..c51019790
--- /dev/null
+++ b/sysutils/system-tools-backends/files/system-tools-backends.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+# $FreeBSD$
+# $MCom$
+
+# PROVIDE: system-tools-backends
+# REQUIRE: DAEMON dbus
+#
+# Add the following to /etc/rc.conf to start SystemToolsBackends at boot time:
+#
+# system_tools_backends_enable="YES"
+#
+
+. %%RC_SUBR%%
+. %%GNOME_SUBR%%
+
+system_tools_backends_enable=${system_tools_backends_enable-${gnome_enable}}
+
+name=system_tools_backends
+rcvar=`set_rcvar`
+command="%%PREFIX%%/share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl"
+pidfile="/var/run/system-tools-backends.pid"
+
+load_rc_config ${name}
+run_rc_command "$1"