summaryrefslogblamecommitdiff
path: root/user/freetds/APKBUILD
blob: 0dd8562cf7446efce70c62d71c56d72490295580 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                 
             
        
                                                                  
                              

                   
          
                                                    



                                                                        



                      
         














                                           



                                        


                                          
                                                                                                                                                                   
                                                                                                                                                     
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=freetds
pkgver=1.1.40
pkgrel=0
pkgdesc="Library for accessing Sybase and MS SQL Server databases"
url="https://www.freetds.org/"
arch="all"
license="LGPL-2.0+"
depends=""
makedepends="linux-headers openssl-dev unixodbc-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
	fix-includes.patch"

# secfixes:
#   1.1.40-r0:
#     - CVE-2019-13508

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-msdblib \
		--with-openssl=/usr \
		--enable-odbc \
		--with-unixodbc=/usr
	make
}

check() {
	make -C "src/replacements" check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="03f6d1e7f57f69068771e1706bbe4a3131e82b00f0191c988ec7d25f571d07caba9ef61598dc381eace1b1e88bc74af8f8506bd79236f9be15a56419a3e5c4c0  freetds-1.1.40.tar.gz
d75d1aab6687586697f3e430db1e82f21208f10076b45996542eea682e36cbbbb344f479a9336fcfd294b5b87d7acb2ec5fb8ddd1914e990e23dd5e7ae93a0b6  fix-includes.patch"