wok-tiny view telnet-config/receipt @ rev 109

Update custom-console
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 27 10:51:46 2016 +0100 (2016-02-27)
parents bb00d1e3b0f7
children e5cfd000e4a6
line source
1 # SliTaz package receipt.
3 PACKAGE="telnet-config"
4 VERSION="1.0"
5 CATEGORY="network"
6 SHORT_DESC="Enable Telnet server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://tiny.slitaz.org/"
10 DEPENDS="base-tiny"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/etc
16 }
18 post_install()
19 {
20 grep -q inetd $1/etc/rcS.conf ||
21 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
22 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
23 telnet stream tcp nowait root telnetd telnetd -i
24 EOT
25 }