Commit 21443b33 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: update msqsql server install for new distros

parent 9269e001
...@@ -5,8 +5,6 @@ SUPPORTEDARCHES="x86_64" ...@@ -5,8 +5,6 @@ SUPPORTEDARCHES="x86_64"
DESCRIPTION="MS SQL Server 2019 from the official site" DESCRIPTION="MS SQL Server 2019 from the official site"
URL="https://packages.microsoft.com/" URL="https://packages.microsoft.com/"
DEBREPO="deb http://ftp.ru.debian.org/debian/ stretch main"
if [ "$1" = "--remove" ] ; then if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME epm remove $PKGNAME
echo echo
...@@ -22,19 +20,26 @@ serv mssql-server stop ...@@ -22,19 +20,26 @@ serv mssql-server stop
dname="$(epm print info -s)" dname="$(epm print info -s)"
dversion="$(epm print info -v)" dversion="$(epm print info -v)"
case "$(epm print info -d)" in case "$(epm print info -e)" in
AstraLinux*) AstraLinuxSE/1.7)
DEBREPO="deb http://ftp.ru.debian.org/debian/ stretch main"
# we have libc++1-9, but this package requires libc++1 # we have libc++1-9, but this package requires libc++1
epm ar $DEBREPO ; epm update epm ar $DEBREPO ; epm update
epm install libc++1 epm install libc++1
epm install https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019/pool/main/m/mssql-server/mssql-server_1*_amd64.deb epm install https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019/pool/main/m/mssql-server/mssql-server_1*_amd64.deb
epm rr $DEBREPO ; epm update epm rr $DEBREPO ; epm update
;; ;;
ALTLinux) AstraLinuxSE/1.8)
epm install https://packages.microsoft.com/debian/12/mssql-server-2019/pool/main/m/mssql-server/mssql-server_1*_amd64.deb
;;
ALTLinux/p10|ALTLinux/c10f2)
epm install --repack https://packages.microsoft.com/rhel/8/mssql-server-2019/Packages/m/mssql-server-[0-9]*.x86_64.rpm || fatal epm install --repack https://packages.microsoft.com/rhel/8/mssql-server-2019/Packages/m/mssql-server-[0-9]*.x86_64.rpm || fatal
;; ;;
Debian|Ubuntu) ALTLinux*)
epm install https://packages.microsoft.com/$dname/$dversion/mssql-server-2019/pool/main/m/mssql-server/mssql-server_1*_amd64.deb epm install --repack https://packages.microsoft.com/rhel/9/mssql-server-2022/Packages/m/mssql-server-[0-9]*.x86_64.rpm || fatal
;;
Ubuntu*)
epm install https://packages.microsoft.com/$dname/$dversion/mssql-server-2022/pool/main/m/mssql-server/mssql-server_1*_amd64.deb
;; ;;
*) *)
fatal "$(epm print info -d) is not supported yet." fatal "$(epm print info -d) is not supported yet."
......
#!/bin/sh #!/bin/sh
PKGNAME=mssql-tools PKGNAME="mssql-tools msodbcsql17"
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64"
DESCRIPTION="MS SQL Server sqlcmd and bcp from the official site" DESCRIPTION="MS SQL Server sqlcmd and bcp from the official site"
URL="https://packages.microsoft.com/" URL="https://packages.microsoft.com/"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME msodbcsql17
exit
fi
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
dname="$(epm print info -s)" dname="$(epm print info -s)"
......
...@@ -9,14 +9,13 @@ PREINSTALL_PACKAGES="libnuma libsss_nss_idmap bzip2 cyrus-sasl2 libcom_err libkr ...@@ -9,14 +9,13 @@ PREINSTALL_PACKAGES="libnuma libsss_nss_idmap bzip2 cyrus-sasl2 libcom_err libkr
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# for ALT only
# we need libssl/libcrypto-devel due libssl.so/libcrypto.so using (ALT bug 35559) # we need libssl/libcrypto-devel due libssl.so/libcrypto.so using (ALT bug 35559)
add_requires="python3 pbzip2 bzip2 gdb libnuma libkrb5 libsss_nss_idmap cyrus-sasl2 libsasl2-plugin-gssapi procps" add_requires python3 pbzip2 bzip2 gdb libnuma libkrb5 libsss_nss_idmap cyrus-sasl2 libsasl2-plugin-gssapi procps
# ALT's su does not support -p last 20 years # ALT's su does not support -p last 20 years
subst "s|su -p |su |" $BUILDROOT/opt/mssql/lib/mssql-conf/invokesqlservr.sh subst "s|su -p |su |" $BUILDROOT/opt/mssql/lib/mssql-conf/invokesqlservr.sh
set_autoreq 'yes,nopython,nopython3'
# fix typo # fix typo
subst "s|Руѝѝкий|Русский|" $BUILDROOT/opt/mssql/lib/mssql-conf/mssqlconfhelper.py subst "s|Руѝѝкий|Русский|" $BUILDROOT/opt/mssql/lib/mssql-conf/mssqlconfhelper.py
...@@ -29,3 +28,5 @@ for i in $BUILDROOT/opt/mssql/lib/libunwind-x86_64.so.8 ; do ...@@ -29,3 +28,5 @@ for i in $BUILDROOT/opt/mssql/lib/libunwind-x86_64.so.8 ; do
a= patchelf --set-rpath '$ORIGIN/' $i a= patchelf --set-rpath '$ORIGIN/' $i
done done
fi fi
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment