[med-svn] r349 - trunk/packages/fact++/trunk/debian
smoe-guest at alioth.debian.org
smoe-guest at alioth.debian.org
Sat Jun 30 20:31:43 UTC 2007
Author: smoe-guest
Date: 2007-06-30 20:31:43 +0000 (Sat, 30 Jun 2007)
New Revision: 349
Added:
trunk/packages/fact++/trunk/debian/fact++.init
Modified:
trunk/packages/fact++/trunk/debian/control
trunk/packages/fact++/trunk/debian/rules
Log:
added build daemon, seems to work, the ++ in the package
name require a fix to update-rc.d, though. A respective
bug+patch was submitted (#431224).
Cheers,
Steffen
Modified: trunk/packages/fact++/trunk/debian/control
===================================================================
--- trunk/packages/fact++/trunk/debian/control 2007-06-30 18:04:33 UTC (rev 348)
+++ trunk/packages/fact++/trunk/debian/control 2007-06-30 20:31:43 UTC (rev 349)
@@ -2,7 +2,7 @@
Section: science
Priority: optional
Maintainer: Steffen Moeller <steffen_moeller at gmx.de>
-Build-Depends: debhelper (>= 5), libxerces27-dev
+Build-Depends: debhelper (>= 5), libxerces27-dev, libsablevm1-dev
Standards-Version: 3.7.2
Package: fact++
Added: trunk/packages/fact++/trunk/debian/fact++.init
===================================================================
--- trunk/packages/fact++/trunk/debian/fact++.init (rev 0)
+++ trunk/packages/fact++/trunk/debian/fact++.init 2007-06-30 20:31:43 UTC (rev 349)
@@ -0,0 +1,88 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels at cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock at gnu.ai.mit.edu>.
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels at cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/FaCT++.Server
+NAME=fact++
+DESC="FaCT++ DL reasoner"
+USER=nobody
+
+test -x $DAEMON || exit 0
+
+# Include fact++ defaults if available
+if [ -f /etc/default/fact++ ] ; then
+ . /etc/default/fact++
+fi
+
+set -e
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --chuid $USER --background --start --quiet --pidfile /var/run/$NAME.pid \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ if [ -r /var/run/$NAME.pid ]; then
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/$NAME.pid --exec $DAEMON
+ echo "$NAME."
+ else
+ start-stop-daemon --user $USER --stop --quiet \
+ --exec $DAEMON
+ echo "$NAME."
+ fi
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+# force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart" except that it does nothing if the
+ # daemon isn't already running.
+ # check wether $DAEMON is running. If so, restart
+# start-stop-daemon --stop --test --quiet --pidfile \
+# /var/run/$NAME.pid --exec $DAEMON \
+# && $0 restart \
+# || exit 0
+# ;;
+# restart)
+# echo -n "Restarting $DESC: "
+# start-stop-daemon --stop --quiet --pidfile \
+# /var/run/$NAME.pid --exec $DAEMON
+# sleep 1
+# start-stop-daemon --start --quiet --pidfile \
+# /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+# echo "$NAME."
+# ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: trunk/packages/fact++/trunk/debian/fact++.init
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/packages/fact++/trunk/debian/rules
===================================================================
--- trunk/packages/fact++/trunk/debian/rules 2007-06-30 18:04:33 UTC (rev 348)
+++ trunk/packages/fact++/trunk/debian/rules 2007-06-30 20:31:43 UTC (rev 349)
@@ -31,7 +31,7 @@
dh_testdir
# Add here commands to compile the package.
- $(MAKE) -C src CL_LTYPE=shared CFLAGS="$(CFLAGS)"
+ $(MAKE) -C src LTYPE=shared CFLAGS="$(CFLAGS)"
#docbook-to-man debian/fact++.sgml > fact++.1
touch $@
@@ -77,6 +77,7 @@
dh_installdocs
dh_installexamples
# dh_install
+ dh_installinit
# dh_installmenu
dh_installman
dh_link
More information about the debian-med-commit
mailing list