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

dropbear: disable X11 forwarding
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 11:05:15 2020 +0000 (2020-06-25)
parents e37956962a84
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 busybox-net"
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 }