aboutsummaryrefslogblamecommitdiffstats
path: root/community/yadifa/APKBUILD
blob: 77e40567c9b33d6dd4c01556cb4d2955affd5bed (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           


              
                                                                        
                            
          
                      
                                                   
                               
                                                       
                                                                                                                     
                      

                      
                                           


                       

                         
 
         

                               

                                 
                                            
                                             
                                               
                               

                                    

                                   
                                              
                            


            
         


                  
           
                                      


                                                                             
                                                  

                                           

 
            
                                                                                                                                                     
                                                                                                                                              

                                                                                                                                              
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=yadifa
pkgver=2.5.3
_buildnr=10333
pkgrel=0
pkgdesc="Lightweight authoritative Name Server with DNSSEC capabilities"
url="https://www.yadifa.eu/"
arch="all"
license="BSD-3-Clause"
makedepends="openssl1.1-compat-dev libexecinfo-dev"
install="$pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://www.yadifa.eu/sites/default/files/releases/$pkgname-$pkgver-$_buildnr.tar.gz
	$pkgname.initd
	$pkgname.confd
	"
builddir=$srcdir/$pkgname-$pkgver-$_buildnr

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc/$pkgname \
		--localstatedir=/var/yadifa \
		--with-logdir=/var/log/yadifa \
		--enable-ctrl \
		--enable-static=no \
		--enable-shared \
		--enable-zonesign \
		--enable-keygen \
		--enable-non-aa-axfr-support \
		--enable-rrl
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -Dm755 etc/*.example "$pkgdir"/etc/$pkgname
	cp etc/yadifad.conf "$pkgdir"/etc/$pkgname
	mkdir -p "$pkgdir"/var/run/$pkgname
	mkdir -p "$pkgdir"/var/log/$pkgname
}

sha512sums="
941dbb10e2d89c8a39e2ebe97e29d2c562ad8963661bda11a57f8b8b53c68ce59f0c123b28d92e8dac5bfa873311e3ac31ec2d777b6797f096edcb036a93702f  yadifa-2.5.3.tar.gz
a3a65bf13f41838d9493facc2903d955aafd107a29d8a73d4ed021690e1e2c511f48915360a9490ccbf8d9573f8e9c3fca988cb6dd5e57546787384e2b2d075d  yadifa.initd
eac74148b58d3b7472602542622616bd0ef441b191356a5b7fd06d17284c579139c1fde9b35fbb30a8214394863e31bed4c8521aff7b3f7ea831f14c2a3ccf01  yadifa.confd
"