fixed xinetd init-script (DaKa2)
authorOyvind Repvik <nail@nslu2-linux.org>
Tue, 12 Jul 2005 14:30:31 +0000 (14:30 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 12 Jul 2005 14:30:31 +0000 (14:30 +0000)
added default saned xinetd config file (DaKa2)

packages/sane-backends/sane-backends-1.0.15/saned.xinetd [new file with mode: 0644]
packages/sane-backends/sane-backends_1.0.15.bb
packages/xinetd/xinetd/xinetd.init
packages/xinetd/xinetd_2.3.13.bb

diff --git a/packages/sane-backends/sane-backends-1.0.15/saned.xinetd b/packages/sane-backends/sane-backends-1.0.15/saned.xinetd
new file mode 100644 (file)
index 0000000..f4e890f
--- /dev/null
@@ -0,0 +1,10 @@
+service sane-port
+{
+       socket_type = stream
+       server = /usr/sbin/saned
+       protocol = tcp
+       user = nobody
+       group = nogroup
+       wait = no
+       disable = no
+}
index 30c4c75..187b996 100644 (file)
@@ -1,18 +1,22 @@
 MAINTAINER="Oyvind Repvik <nail@nslu2-linux.org>"
 DESCRIPTION="Scanner drivers for SANE"
-PR="r2"
+PR="r4"
 DEPENDS="jpeg libusb"
 
 SRC_URI="ftp://ftp.sane-project.org/pub/sane/sane-backends-${PV}/sane-backends-${PV}.tar.gz \
-       file://sane-plustek.patch;patch=1\
-       file://Makefile.in.patch;patch=1"
+       file://sane-plustek.patch;patch=1 \
+       file://Makefile.in.patch;patch=1 \
+       file://saned.xinetd \
+       "
        
-EXTRA_OECONF="--prefix=/usr --sysconfdir=/etc --disable-translations"
+EXTRA_OECONF="--disable-translations"
 
 inherit autotools
 
 do_install_append() {
+       install -d "${D}/${sysconfdir}/xinetd.d"
        install -m 755 "${S}/tools/.libs/sane-find-scanner" "${D}/${bindir}"
+       install -m 644 "${WORKDIR}/saned.xinetd" "${D}/${sysconfdir}/xinetd.d/saned"
 }
 
 PACKAGES = "libsane saned sane-utils"
@@ -23,9 +27,11 @@ RCONFLICTS = "sane-backends"
 RRECOMMENDS_libsane = "saned sane-utils"
 
 RDEPENDS_saned = "libsane"
+RRECOMMENDS_saned = "xinetd"
 FILES_saned = "/usr/sbin/saned"
 
 RDEPENDS_sane-utils = "libsane"
 FILES_sane-utils = "/usr/bin"
 
+CONFFILES_libsane = "${sysconfdir}/sane.d/abaton.conf ${sysconfdir}/sane.d/agfafocus.conf ${sysconfdir}/sane.d/apple.conf ${sysconfdir}/sane.d/artec.conf ${sysconfdir}/sane.d/avision.conf ${sysconfdir}/sane.d/bh.conf ${sysconfdir}/sane.d/canon.conf ${sysconfdir}/sane.d/canon630u.conf ${sysconfdir}/sane.d/coolscan.conf ${sysconfdir}/sane.d/coolscan2.conf ${sysconfdir}/sane.d/dc25.conf ${sysconfdir}/sane.d/dmc.conf ${sysconfdir}/sane.d/epson.conf ${sysconfdir}/sane.d/fujitsu.conf ${sysconfdir}/sane.d/gt68xx.conf ${sysconfdir}/sane.d/hp.conf  ${sysconfdir}/sane.d/leo.conf ${sysconfdir}/sane.d/matsushita.conf ${sysconfdir}/sane.d/microtek.conf ${sysconfdir}/sane.d/microtek2.conf ${sysconfdir}/sane.d/mustek.conf ${sysconfdir}/sane.d/mustek_usb.conf ${sysconfdir}/sane.d/nec.conf ${sysconfdir}/sane.d/pie.conf ${sysconfdir}/sane.d/plustek.conf ${sysconfdir}/sane.d/plustek_pp.conf ${sysconfdir}/sane.d/ricoh.conf ${sysconfdir}/sane.d/s9036.conf ${sysconfdir}/sane.d/sceptre.conf ${sysconfdir}/sane.d/sharp.conf ${sysconfdir}/sane.d/sp15c.conf ${sysconfdir}/sane.d/st400.conf ${sysconfdir}/sane.d/tamarack.conf ${sysconfdir}/sane.d/test.conf ${sysconfdir}/sane.d/teco1.conf ${sysconfdir}/sane.d/teco2.conf ${sysconfdir}/sane.d/teco3.conf ${sysconfdir}/sane.d/umax.conf ${sysconfdir}/sane.d/umax_pp.conf ${sysconfdir}/sane.d/umax1220u.conf ${sysconfdir}/sane.d/artec_eplus48u.conf ${sysconfdir}/sane.d/ma1509.conf ${sysconfdir}/sane.d/ibm.conf ${sysconfdir}/sane.d/hp5400.conf ${sysconfdir}/sane.d/u12.conf ${sysconfdir}/sane.d/snapscan.conf ${sysconfdir}/sane.d/dc210.conf ${sysconfdir}/sane.d/dc240.conf ${sysconfdir}/sane.d/gphoto2.conf ${sysconfdir}/sane.d/qcam.conf ${sysconfdir}/sane.d/v4l.conf ${sysconfdir}/sane.d/net.conf ${sysconfdir}/sane.d/dll.conf ${sysconfdir}/sane.d/saned.conf"
 
index 2a84131..26dbea7 100644 (file)
@@ -30,18 +30,18 @@ case "$1" in
        ;;
     stop)
        echo -n "Stopping internet superserver: xinetd"
-       start-stop-daemon --stop --signal 3 --quiet --oknodo --exec /usr/sbin/xinetd
+       start-stop-daemon --stop --signal 3 --quiet --exec /usr/sbin/xinetd
        echo "."
        ;;
     reload)
        echo -n "Reloading internet superserver configuration: xinetd"
-       start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd
+       start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/xinetd
        echo "."
        ;;
     force-reload)
        echo "$0 force-reload: Force Reload is deprecated"
        echo -n "Forcefully reloading internet superserver configuration: xinetd"
-       start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd
+       start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/xinetd
        echo "."
        ;;
     restart)
index 07a517b..b0643c7 100644 (file)
@@ -1,7 +1,7 @@
 DEPENDS = ""
 DESCRIPTION = "Highly configurable, modular and secure inetd"
 MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
-PR="r1"
+PR="r2"
 
 SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \
          file://xinetd.init \
@@ -34,3 +34,5 @@ do_install() {
        install -m 755 "${S}/xinetd/itox" "${D}/usr/sbin"
 
 }
+
+CONFFILES_${PN} = "${sysconfdir}/xinetd.conf"