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

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 05 13:51:26 2013 +0200 (2013-07-05)
parents dc8eca11e97c
children 371673f39e46
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 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 /usr/sbin/telnetd /usr/sbin/telnetd -i
24 EOT
25 }