angie.sh 3.89 KB
Newer Older
1 2 3
#!/bin/sh

PKGNAME=angie
4
SKIPREPACK=1
5 6
SUPPORTEDARCHES="x86_64 aarch64"
DESCRIPTION="ANGIE (a web server, that was forked from nginx) from the official site"
7
URL="https://angie.software/"
8 9 10 11 12 13 14 15 16

. $(dirname $0)/common.sh

reponame=$(epm print info --repo-name)
vendor=$(epm print info -s)
version=$(epm print info --base-version)

# Strict supported list
case $(epm print info -e) in
17
    Alpine/3.*)
18
        epm install --skip-installed ca-certificates
19
        epm repo addkey angie "https://angie.software/keys/angie-signing.rsa"
20 21
        epm repo add "https://download.angie.software/angie/alpine/v$version/main"
        ;;
22 23
    AstraLinuxSE/1.7)
        epm repo addkey angie "https://angie.software/keys/angie-signing.gpg"
24
        epm repo add "rpm [angie] https://download.angie.software/angie/astra-se/1.7/ unstable main"
25
        ;;
26
    ALTLinux/p10|ALTLinux/Sisyphus)
27
        epm repo addkey angie "https://angie.software/keys/angie-signing.gpg" "EB8EAF3D4EF1B1ECF34865A2617AB978CB849A76" "Angie (Signing Key) <devops@tech.wbsrv.ru>"
28
        epm repo add "rpm [angie] https://download.angie.software/angie/altlinux/10/ x86_64 main"
29 30 31 32
        ;;
    AlmaLinux/8|AlmaLinux/9)
        epm repo addkey angie 'https://download.angie.software/angie/centos/$releasever/' "https://angie.software/keys/angie-signing.gpg" "Angie repo"
        #epm repo add 'https://download.angie.software/angie/centos/$releasever/'
33 34
        ;;
    CentOS/8|CentOS/9)
35
        epm repo addkey angie 'https://download.angie.software/angie/centos/$releasever/' "https://angie.software/keys/angie-signing.gpg" "Angie repo"
36 37
        #epm repo add 'https://download.angie.software/angie/centos/$releasever/'
        ;;
38
    Debian/10|Debian/11|Debian/12)
39
        epm install --skip-installed ca-certificates lsb-release
40 41
        epm repo addkey angie "https://angie.software/keys/angie-signing.gpg"
        epm repo add "deb [angie] https://download.angie.software/angie/debian/ $reponame main"
42 43
        ;;
    Oracle/8|Oracle/9)
44
        epm repo addkey angie 'https://download.angie.software/angie/oracle/$releasever/' "https://angie.software/keys/angie-signing.gpg" "Angie repo"
45 46
        #epm repo add 'https://download.angie.software/angie/oracle/$releasever/'
        ;;
47 48 49 50 51 52 53
    RedOS/7*)
        epm repo addkey angie "https://download.angie.software/angie/redos/7/" "https://angie.software/keys/angie-signing.gpg" "Angie repo"
        epm repo add "https://download.angie.software/angie/redos/7/"
        ;;
    RedOS/8*)
        epm repo addkey angie "https://download.angie.software/angie/redos/8/" "https://angie.software/keys/angie-signing.gpg" "Angie repo"
        epm repo add "https://download.angie.software/angie/redos/8/"
54 55
        ;;
    RockyLinux/8|RockyLinux/9)
56
        epm repo addkey angie 'https://download.angie.software/angie/rocky/$releasever/' "https://angie.software/keys/angie-signing.gpg" "Angie repo"
57 58
        #epm repo add 'https://download.angie.software/angie/rocky/$releasever/'
        ;;
59
    Ubuntu/*)
60
        epm install --skip-installed ca-certificates lsb-release
61 62
        epm repo addkey angie "https://angie.software/keys/angie-signing.gpg"
        epm repo add "deb [angie] https://download.angie.software/angie/ubuntu/ $reponame main"
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
        ;;
    *)
        fatal "Unsupported distro $(epm print info -e). Ask application vendor for a support."
        ;;
esac


epm update
epm install $PKGNAME || exit

cat <<EOF

Note:
You can use serv command for start Angie service:
    # serv angie start
To make sure Angie starts on server reboot, run:
    # serv angie on
Also you can install an addional modules:
    # epm install angie-module-<module>

Angie repository provides following dynamic module packages:
  angie-module-auth-spnego
  angie-module-brotli
  angie-module-dav-ext
  angie-module-geoip2
  angie-module-headers-more
  angie-module-image-filter
  angie-module-ndk
  angie-module-njs
  angie-module-perl
  angie-module-rtmp
  angie-module-set-misc
  angie-module-xslt
EOF