54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
# Maintainer: DoctorZeus(Dan) <contact@techtonicsoftware.com>
|
|
# Contributor: Gabriel Morrison Lima Dantas <gabrielmldantas@gmail.com>
|
|
# Contributor: Aleksey Kamenskikh <aleksey.kamenskikh@gmail.com>
|
|
pkgname=mssql-server
|
|
pkgver=16.0.4095.4
|
|
_remRevision=1
|
|
_prodver=${pkgver}-${_remRevision}
|
|
pkgrel=1
|
|
pkgdesc="Microsoft SQL Server for Linux"
|
|
arch=('x86_64')
|
|
url="https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-overview?view=sql-server-ver16"
|
|
license=('unknown')
|
|
depends=(
|
|
'libatomic_ops'
|
|
'libunwind'
|
|
'numactl'
|
|
'glibc'
|
|
'libc++'
|
|
'gdb'
|
|
'openssl-1.1'
|
|
'krb5'
|
|
'nss'
|
|
'sssd'
|
|
'gawk'
|
|
'sed'
|
|
'pam'
|
|
'libldap<=2.4.59'
|
|
);
|
|
optdepends=(
|
|
'python-pyodbc'
|
|
);
|
|
|
|
#This is a local azure instance that resolves as an alias of "packages.microsoft.com/rhel/7/mssql-server-2019" as some regions have different dir structures
|
|
source=("http://csd-apt-sea-d-4.southeastasia.cloudapp.azure.com/rhel/8/mssql-server-2022/Packages/m/${pkgname}-${_prodver}.x86_64.rpm")
|
|
|
|
sha256sums=('722ccf1f224a7a77bd7d8c02f96dce2a4d5d2e9814dbe23d998bcd48d27e49e2')
|
|
|
|
install=$pkgname.install
|
|
|
|
package() {
|
|
|
|
#Setup
|
|
cd $pkgdir
|
|
mv $srcdir/opt .
|
|
mv $srcdir/usr .
|
|
|
|
#Create links to non-breaking libssl and libcrypto libs
|
|
ln -sf /lib/libssl.so.1.1 $pkgdir/opt/mssql/lib/libssl.so
|
|
ln -sf /lib/libcrypto.so.1.1 $pkgdir/opt/mssql/lib/libcrypto.so
|
|
|
|
#Set systemd service file perms
|
|
chmod 644 $pkgdir/usr/lib/systemd/system/mssql-server.service
|
|
}
|