aboutsummaryrefslogtreecommitdiffstats
path: root/mail/youbin/pkg-req
blob: e0e8b4d69f127f33423e9d2d94314edbf597366f (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}" -o ! -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