aboutsummaryrefslogblamecommitdiffstats
path: root/main/daq/APKBUILD
blob: 842b664cede174d9108a9d399a4d65ba493a2cc9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    
            
        


                                                       
              



                                    
                                                                

                          
 
                                   

         
                      



                                 


                                           
                                    

                                          





                      


           

                                      

 
                                                                                                                                                              
                                                                                                                                                     
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=daq
pkgver=2.0.6
pkgrel=2
pkgdesc="Data Acquisition library - packet I/O library"
url="http://www.snort.org/"
arch="all"
license="GPL2"
depends=
makedepends="libpcap-dev flex bison"
install=""
subpackages="$pkgname-dev"
source="https://www.snort.org/downloads/snort/daq-$pkgver.tar.gz
	fix-includes.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	# work around parallel build issue
	make -C sfbpf tokdefs.h
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="61dd5408c587e57999445b9549ac539ffc5bb16ddc179601de1065fc5e251c1893536d8aa2251096e34b54093529d3578e7b5d97e3514cb2bbf4de113639b08c  daq-2.0.6.tar.gz
ea769608e4b6ebfd186a5e637a1dbf16f300c5c40501655b891fdc0095879f65927d90872d4953a4a4e32ccc40306b19a1a1e7ae4dd8b3f7572db97aea48390e  fix-includes.patch"