blob: 536bb7d7b34aac6b70d00f20ee39d0d8e1c87f5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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.4135.4
_remRevision=3
_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'
'libldap24'
);
optdepends=(
'python-pyodbc'
'debugedit'
);
#This is a local azure instance that resolves as an alias of "packages.microsoft.com/rhel/8/mssql-server-2022" as some regions have different dir structures
source=("https://pmc-prod-afd-endpoint-evdhh8f8byhsezfp.b01.azurefd.net/rhel/8/mssql-server-2022/Packages/m/${pkgname}-${_prodver}.x86_64.rpm")
sha256sums=('391be2e3626d1c65fea4ae9fc09ebc23881e0d48ce0031b6f58decd72ccb2c8e')
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
}
|