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

Take care of busybox config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 07 14:54:07 2019 +0200 (5 weeks ago)
parents e5cfd000e4a6
children
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 AUTO_SELECTION="CONFIG_TELNETD"
12 DEPENDS="base-tiny"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/etc
18 }
20 post_install()
21 {
22 grep -q inetd $1/etc/rcS.conf ||
23 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
24 sed -i '/#telnet/d' $1/etc/inetd.conf
25 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
26 telnet stream tcp nowait root telnetd telnetd -i
27 EOT
28 }