~ubuntu-branches/ubuntu/trusty/isdnutils/trusty

« back to all changes in this revision

Viewing changes to debian/ipppd.config

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2013-11-15 00:02:58 UTC
  • mfrom: (1.1.8) (31.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131115000258-tt9v3gasgrdml07k
Tags: 1:3.25+dfsg1-3.3ubuntu1
* Merge from Debian unstable:
  - resolves licensing issues with package contents.  LP: #511988.
  - includes proper upstream fix for ipppd on ARM.  LP: #453159.
  - resolves isdnutils-base removal failures.  LP: #813771.
  - fixes capiutils init script to not try to mount obsolete capifs.
    LP: #1064347.
* Remaining changes:
  - Switch libreadline5-dev to libreadline-gplv2-dev since this package
    appears to be GPLv2
  - debian/patches/no-imake.patch: Don't build xisdnload/xmonisdn using
    xmkmf/imake.  This patch was dropped in Debian without explanation;
    it still applies and seems to still be a good idea for eventual
    upstreaming, since imake is quite obsolete.
  - capi.conf: Fix typo for fcdsl2 firmware. LP: #189132.
  - Remove dependencies on /etc/inittab.
    - Disable the installation code to modify /etc/inittab.
    - isdnutils-base: Add ttyI0 example script, which needs to be installed
      in /etc/event.d/ttyI0.
    - isdnvboxserver: Add ttyI1 example script, which needs to be installed
      in /etc/event.d/ttyI1.
    - The two upstart scripts need to be edited.
    - Further improvements and documentation welcome.
* Changes included in Debian:
  - replace calls to ./MAKEDEV with /sbin/MAKEDEV
  - Build-depend on ppp-dev.
  - Switch to newer tcl -dev.
  - update to newer automake
  - debian/rules: use autoreconf to update the autotools in the capi20
    directory
  - debian/{compat,rules,*.files,.dirs}: Convert to Multi-arch.
  - debian/libcapi20-dev.install: Remove .la files (no builds use them).
* Changes included upstream:
  - fix for ARM FTBFS.
  - fix bashisms in vboxplay.
  - debian/patches/{config_libdir,toplevel-make}.patch: add CONFIG_LIBDIR
    override to upstream build system to support Multi-arch.
* Dropped changes:
  - kick dpatch to the curb.
* Handle migrating the blacklist file from
  /etc/modprobe.d/blacklist-capiutils.conf to the path used in Debian,
  /etc/modprobe.d/capiutils.conf.
* Handle rename of /etc/ppp/ip-down.d/99-ipppd and /etc/ppp/ip-up.d/00-ipppd
  to /etc/ppp/ip-down.d/ipppd and /etc/ppp/ip-up.d/ipppd
* Handle rename of /etc/init.d/isdnutils to /etc/init.d/isdnutils-base
* Restore standard.tcl to /usr/share/isdnvboxserver/default; maintainer
  scripts must not depend on contents of /usr/share/doc.
* Apply patches that were preserved in the 3.0 (quilt) migration, but
  were inadvertently not applied:
  - debian/patches/capifax.additional_error_codes.patch
  - debian/patches/capifax.3_1kHz_audio.patch
* Drop debian/isdnutils-base.cron.d, which isn't a cronjob example at all
  but an inittab example gone astray.
* debian/dotconfig*: don't use embedded quotes for paths; this confuses
  vbox's Makefiles something fierce, and causes files to be missed from
  debian/tmp'/usr/share/man/' at install time.
* Fix isdnlog and ipppd to not ship files used in the postinst under
  /usr/share/doc.
* Modernize the upstart examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Source debconf library.
4
4
. /usr/share/debconf/confmodule
5
 
 
 
5
 
 
6
set -e
 
7
 
6
8
loop=true
7
9
while $loop; do
8
 
    db_input low ipppd/whichif
 
10
    db_input low ipppd/whichif || true
9
11
    db_go
10
12
    db_get ipppd/whichif || true
11
13
    case "x$RET" in
18
20
            loop=false
19
21
            ;;
20
22
        *)
21
 
            db_input low ipppd/wrongif
 
23
            db_input low ipppd/wrongif || true
22
24
            db_go
23
25
            ;;
24
26
    esac
25
27
done
26
 
    
 
28
 
27
29
ipppd_if="$RET"
28
30
 
29
31
if [ -s "/etc/isdn/device.$ipppd_if" -o -s "/etc/isdn/ipppd.$ipppd_if" ]; then
30
 
    db_subst ipppd/ispwontdoit IPPP0 "$ipppd_if"
31
 
    db_input high ipppd/ispwontdoit
 
32
    db_subst ipppd/ispwontdoit IPPP0 "$ipppd_if" || true
 
33
    db_input high ipppd/ispwontdoit || true
32
34
    # db_set ipppd/ispphone 'manual'
33
35
    db_go
34
36
    exit 0      # files are there, not touching
35
37
fi
36
38
 
37
 
db_input high ipppd/ispphone
38
 
db_go
39
 
if [ $? -eq 30 ]; then
 
39
db_input high ipppd/ispphone || true
 
40
status=0
 
41
db_go || status=$?
 
42
if [ $status -eq 30 ]; then
40
43
        db_stop
41
44
        exit 0  # cancel selected
42
45
fi
47
50
    exit 0      # no configuration wanted
48
51
fi
49
52
 
50
 
db_input medium ipppd/eaz
51
 
db_input high ipppd/isplogin
52
 
db_input high ipppd/isppasswd
 
53
db_input medium ipppd/eaz || true
 
54
db_input high ipppd/isplogin || true
 
55
db_input high ipppd/isppasswd || true
53
56
db_go
54
57
RET=''
55
58
db_get ipppd/isplogin || true
56
59
if grep "^$RET[         ]" /etc/ppp/pap-secrets >/dev/null 2>&1; then
57
60
    if grep "^$RET[     ]" /etc/ppp/chap-secrets >/dev/null 2>&1; then
58
 
        db_input high ipppd/isploginpapchapalreadythere
 
61
        db_input high ipppd/isploginpapchapalreadythere || true
59
62
    else
60
 
        db_input high ipppd/isploginpapalreadythere
 
63
        db_input high ipppd/isploginpapalreadythere || true
61
64
    fi
62
65
    db_go
63
66
else
64
67
    if grep "^$RET[     ]" /etc/ppp/chap-secrets >/dev/null 2>&1; then
65
 
        db_input high ipppd/isploginchapalreadythere
 
68
        db_input high ipppd/isploginchapalreadythere || true
66
69
        db_go
67
70
    fi
68
71
fi
69
72
 
70
 
#if [ $? -eq 30 ]; then
71
 
#        db_stop
72
 
#        exit 0  # cancel selected
73
 
#fi
74
 
 
75
73
db_stop
76
74
exit 0