diff options
-rw-r--r-- | sysutils/system-tools-backends/Makefile | 5 | ||||
-rw-r--r-- | sysutils/system-tools-backends/files/system-tools-backends.in | 24 |
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" |