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

Add lpd-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 21 19:04:10 2012 +0200 (2012-08-21)
parents 998910ee725e
children a6d2ddc65590
line source
1 # SliTaz package receipt.
3 PACKAGE="telnet-config"
4 VERSION="1.0"
5 CATEGORY="configuration"
6 SHORT_DESC="Enable Telnet server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://tiny.slitaz.org/"
9 DEPENDS="base-tiny"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p $fs/etc
15 }
17 post_install()
18 {
19 grep -q inetd $1/etc/rcS.conf ||
20 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
21 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
22 telnet stream tcp nowait root /usr/sbin/telnetd /usr/sbin/telnetd -i
23 EOT
24 }