wok-tiny view ppp-plugins-atm/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 a6d2ddc65590
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ppp-plugins-atm"
4 VERSION="2.4.7"
5 CATEGORY="network"
6 SHORT_DESC="ppp extras ADSL using pppoatm"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL"
9 WEB_SITE="http://ppp.samba.org/"
10 DEPENDS="ppp"
11 WANTED="ppp"
12 CONFIG_FILES="/etc/ppp/"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/lib/pppd/$VERSION
18 cp -a $install/usr/lib/pppd/$VERSION/pppoatm.so $fs/usr/lib/pppd/$VERSION
19 }
21 config_form()
22 {
23 [ -n "$OPTIONS" -a "$OPTIONS" != "lock" ] || OPTIONS="lock
24 plugin pppoatm.so 8.35
25 name provider-ID
26 noipdefault
27 usepeerdns
28 defaultroute
29 persist
30 noauth
32 "
33 cat <<EOT
34 <table>
35 <tr>
36 <td>Options</td>
37 <td><textarea name="OPTIONS" cols="60" wrap="off">
38 $OPTIONS
39 </textarea></td>
40 </tr>
41 <tr>
42 <td></td><td><pre>$(cat $1/etc/ppp/chap-secrets)</pre></td>
43 </tr>
44 <tr>
45 <td>chap-secrets</td>
46 <td><textarea name="CHAPSECRETS" cols="60" wrap="off">
47 $CHAPSECRETS
48 </textarea></td>
49 </tr>
50 <tr>
51 <td></td><td><pre>$(cat $1/etc/ppp/pap-secrets)</pre></td>
52 </tr>
53 <tr>
54 <td>pap-secrets</td>
55 <td><textarea name="PAPSECRETS" cols="60" wrap="off">
56 $PAPSECRETS
57 </textarea></td>
58 </tr>
59 </table>
60 EOT
61 }
63 post_install()
64 {
65 dos2unix > $1/etc/ppp/options <<EOT
66 $OPTIONS
67 EOT
68 dos2unix >> $1/etc/ppp/pap-secrets <<EOT
69 $PAPSECRETS
70 EOT
71 dos2unix >> $1/etc/ppp/chap-secrets <<EOT
72 $CHAPSECRETS
73 EOT
74 }