# HG changeset patch # User Pascal Bellard # Date 1345574567 -7200 # Node ID e2b369ee537bda468f236768a0608b2efe67de04 # Parent dc8eca11e97ccf14aae57e1dd978bd9ff4c9f467 Add lpd-spooling-config diff -r dc8eca11e97c -r e2b369ee537b dropbear-without-zlib/receipt --- a/dropbear-without-zlib/receipt Tue Aug 21 19:04:10 2012 +0200 +++ b/dropbear-without-zlib/receipt Tue Aug 21 20:42:47 2012 +0200 @@ -58,11 +58,13 @@ # Post message when installing. post_install() { - grep -q inetd $1/etc/rcS.conf || - sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf - grep -q dropbear $1/etc/inetd.conf || cat >> $1/etc/inetd.conf < +Start server during boot
diff -r dc8eca11e97c -r e2b369ee537b dropbear/receipt --- a/dropbear/receipt Tue Aug 21 19:04:10 2012 +0200 +++ b/dropbear/receipt Tue Aug 21 20:42:47 2012 +0200 @@ -58,11 +58,13 @@ # Post message when installing. post_install() { - grep -q inetd $1/etc/rcS.conf || - sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf - grep -q dropbear $1/etc/inetd.conf || cat >> $1/etc/inetd.conf < +Start server during boot
Server options
diff -r dc8eca11e97c -r e2b369ee537b lpd-spooling-config/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lpd-spooling-config/receipt Tue Aug 21 20:42:47 2012 +0200 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="lpd-spooling-config" +VERSION="1.0" +CATEGORY="configuration" +SHORT_DESC="Line printer server configuration" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://tiny.slitaz.org/" +DEPENDS="base-tiny" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/var/spool $fs/dev $fs/usr/sbin + cp stuff/lpd-helper $fs/usr/sbin +} + +config_form() +{ + cat < +EOT +} + +post_install() +{ + local n + grep -q inetd $1/etc/rcS.conf || + sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf + cat >> $1/etc/inetd.conf </dev/lp$n +rm -f ./"$DATAFILE"
Server options