wok-tiny annotate telnet-config/receipt @ rev 97
Fix libs build, inet.conf updates ...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 09 10:21:00 2015 +0200 (2015-10-09) |
parents | 371673f39e46 |
children | 0d8ef9102fc0 |
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@94 | 5 CATEGORY="meta" |
pascal@83 | 6 SHORT_DESC="Enable Telnet server" |
pascal@83 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@90 | 8 LICENSE="BSD" |
pascal@83 | 9 WEB_SITE="http://tiny.slitaz.org/" |
pascal@83 | 10 DEPENDS="base-tiny" |
pascal@83 | 11 |
pascal@83 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@83 | 13 genpkg_rules() |
pascal@83 | 14 { |
pascal@83 | 15 mkdir -p $fs/etc |
pascal@83 | 16 } |
pascal@83 | 17 |
pascal@83 | 18 post_install() |
pascal@83 | 19 { |
pascal@86 | 20 grep -q inetd $1/etc/rcS.conf || |
pascal@86 | 21 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf |
pascal@86 | 22 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT |
pascal@97 | 23 telnet stream tcp nowait root telnetd telnetd -i |
pascal@86 | 24 EOT |
pascal@83 | 25 } |