diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 12 | ||||
-rw-r--r-- | src/irbox.conf | 0 | ||||
-rwxr-xr-x | src/irbox.init | 68 |
3 files changed, 9 insertions, 71 deletions
diff --git a/src/Makefile b/src/Makefile index c8381ed..1b64dea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -50,11 +50,17 @@ clean: install: all test -d $(PREFIX)/usr/bin || mkdirhier $(PREFIX)/usr/bin - test -d $(PREFIX)$(IRBOX_DIR) || mkdirhier $(PREFIX)$(IRBOX_DIR) install -m755 irbox $(PREFIX)/usr/bin + test -d $(PREFIX)/usr/man/man5 || mkdirhier $(PREFIX)/usr/man/man5 + install -m 644 ../doc/irbox.5 $(PREFIX)/usr/man/man5 + test -d $(PREFIX)/usr/man/man8 || mkdirhier $(PREFIX)/usr/man/man8 + install -m 644 ../doc/irbox.8 $(PREFIX)/usr/man/man8 + test -d $(PREFIX)$(IRBOX_DIR) || mkdirhier $(PREFIX)$(IRBOX_DIR) for f in `find ../data -type f -maxdepth 1`; do \ - install -m 644 $$f $(PREFIX)$(IRBOX_DIR); \ - done + install -m 644 $$f $(PREFIX)$(IRBOX_DIR); \ + done + + rpm:: /usr/bin/rpmize diff --git a/src/irbox.conf b/src/irbox.conf deleted file mode 100644 index e69de29..0000000 --- a/src/irbox.conf +++ /dev/null diff --git a/src/irbox.init b/src/irbox.init deleted file mode 100755 index 1fa91c4..0000000 --- a/src/irbox.init +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh -# -# irbox: Starts the irbox Ivy agent -# -# Version: @(#) /etc/rc.d/init.d/irbox.init 1.0 -# -# chkconfig: - 98 02 -# description: This is a daemon that drives an Irman infra-red device and \ -# emits its events on an Ivy bus -# processname: irbox -# config: /etc/irbox.conf - -# Source function library. -. /etc/rc.d/init.d/functions - -. /etc/irbox.conf - -if [ -z $BUS ]; then - busopt= -else - busopt="-b $BUS" -fi - -if [ -z $DEVICE ]; then - devopt= -else - devopt="-d $DEVICE" -fi - -if [ -z $APPNAME ]; then - appopt= -else - appopt="-n $APPNAME" -fi - - - -# See how we were called. -case "$1" in - start) - echo -n "Infra-red Ivy driver... " - daemon irbox $busopt $devopt $appopt & - echo - touch /var/lock/subsys/irbox - ;; - stop) - echo -n "Shutting down Infra-red Ivy driver: " - killproc irbox - rm -f /var/lock/subsys/irbox - echo - ;; - status) - status irbox - ;; - reload) - killproc -HUP irbox - ;; - restart) - $0 stop - $0 start - ;; - *) - echo "*** Usage: irbox {start|stop|status|restart¦reload}" - exit 1 -esac - -exit 0 - |