2023-08-30 19:27:59 -06:00
# Maintainer: DoctorZeus(Dan) <contact@techtonicsoftware.com>
# Contributor: Gabriel Morrison Lima Dantas <gabrielmldantas@gmail.com>
# Contributor: Aleksey Kamenskikh <aleksey.kamenskikh@gmail.com>
pkgname = mssql-server
2023-11-17 16:19:52 -06:00
pkgver = 16.0.4065.3
_remRevision = 4
2023-08-30 19:27:59 -06:00
_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 " )
2023-11-17 16:19:52 -06:00
sha256sums = ( '8d230df0a4927a82a6321128a97d22a20dc59f4fb5954d40335fb106fe82c186' )
2023-08-30 19:27:59 -06:00
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
}