wok-tiny annotate telnet-config/receipt @ rev 86
Add lpd-config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 21 19:04:10 2012 +0200 (2012-08-21) |
parents | 998910ee725e |
children | a6d2ddc65590 |
rev | line source |
---|---|
pascal@83 | 1 # SliTaz package receipt. |
pascal@83 | 2 |
pascal@83 | 3 PACKAGE="telnet-config" |
pascal@83 | 4 VERSION="1.0" |
pascal@83 | 5 CATEGORY="configuration" |
pascal@83 | 6 SHORT_DESC="Enable Telnet server" |
pascal@83 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@83 | 8 WEB_SITE="http://tiny.slitaz.org/" |
pascal@83 | 9 DEPENDS="base-tiny" |
pascal@83 | 10 |
pascal@83 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@83 | 12 genpkg_rules() |
pascal@83 | 13 { |
pascal@83 | 14 mkdir -p $fs/etc |
pascal@83 | 15 } |
pascal@83 | 16 |
pascal@83 | 17 post_install() |
pascal@83 | 18 { |
pascal@86 | 19 grep -q inetd $1/etc/rcS.conf || |
pascal@86 | 20 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf |
pascal@86 | 21 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT |
pascal@86 | 22 telnet stream tcp nowait root /usr/sbin/telnetd /usr/sbin/telnetd -i |
pascal@86 | 23 EOT |
pascal@83 | 24 } |