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

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (6 months ago)
parents 0d8ef9102fc0
children e37956962a84
line source
1 # SliTaz package receipt.
3 PACKAGE="telnet-config"
4 VERSION="1.0"
5 CATEGORY="meta"
6 GROUP="network"
7 SHORT_DESC="Enable Telnet server"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="http://tiny.slitaz.org/"
11 DEPENDS="base-tiny"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/etc
17 }
19 post_install()
20 {
21 grep -q inetd $1/etc/rcS.conf ||
22 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
23 sed -i '/#telnet/d' $1/etc/inetd.conf
24 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
25 telnet stream tcp nowait root telnetd telnetd -i
26 EOT
27 }