aboutsummaryrefslogtreecommitdiffstats
path: root/mail/youbin/pkg-req
blob: 54c20c0a27aef118125fa96e3d665814c00c1134 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
case "$2" in
    INSTALL|BUILD)
    echo '**********************************************************************'
    echo '*  WARNING!!!                                                        *'
    echo '*  Youbin has potential security problem!!                           *'
    echo '*  It is discouraged to use this program to avoid any security       *'
    echo '*  problem.                                                          *'
    echo '**********************************************************************'
    if [ ! -z "${PACKAGE_BUILDING}" || ! -z "${BATCH}" ]; then
       exit 0
    fi
    read -p 'Would you like to proceed (y/n)? ' ans
    case "X$ans" in
      Xy*|XY*)
        exit 0
        ;;
      *)
        exit 1
        ;;
    esac
    ;;
esac