~ubuntu-branches/ubuntu/trusty/rstatd/trusty

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Herbert Xu
  • Date: 2001-08-10 07:30:19 UTC
  • Revision ID: james.westby@ubuntu.com-20010810073019-r5snxn85ug5zb39f
Tags: 3.03-7
Added libc6-dev to build-time dependency for rpcgen (closes: #108179).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
# $Id: postinst,v 1.1 1999/09/17 05:42:11 herbert Exp $
 
3
 
 
4
case "$1" in
 
5
abort-upgrade | abort-deconfigure | abort-remove)
 
6
        update-inetd --enable rstatd
 
7
        ;;
 
8
configure)
 
9
        if [ -n "$2" ]; then
 
10
                update-inetd --enable rstatd
 
11
        else
 
12
                update-inetd --remove "rstatd/1-3       dgram   rpc/udp wait    root    /usr/sbin/tcpd  /usr/sbin/rpc.rstatd"
 
13
                update-inetd --group RPC --add "rstatd/1-5      dgram   rpc/udp wait    nobody  /usr/sbin/tcpd  /usr/sbin/rpc.rstatd"
 
14
        fi
 
15
        ;;
 
16
*)
 
17
        printf "$0: incorrect arguments: $*\n" >&2
 
18
        exit 1
 
19
        ;;
 
20
esac
 
21
 
 
22
#DEBHELPER#