aboutsummaryrefslogblamecommitdiffstats
path: root/main/ndisc6/APKBUILD
blob: 6fba8bd5e5532d6be1aa4659ea9ed825ef7ae343 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                 
                                          
                                                  
              
            
        
                                                                


                                   
                                
                                                                                      
                                                                  


                                     
                                         
         

         
                     

                                
                               
                                      

                                      



            



                  
                                      
                                                                           







                                                          

 









                                                                                                 
                                                                                                                                                                  
                                                                                                                                                               
                                                                                                                                              

                                                                                                                                                                    
# Contributor: Tyler A <tylera@privatedemail.net>
# Contributor: ungleich <foss@ungleich.ch>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=ndisc6
pkgver=1.0.4
pkgrel=5
pkgdesc="a small collection of useful tools for IPv6 networking"
url="https://www.remlab.net/ndisc6"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers perl"
subpackages="$pkgname-doc rdnssd rdnssd-openrc:openrc:noarch $pkgname-dnssort::noarch"
source="https://www.remlab.net/files/ndisc6/ndisc6-$pkgver.tar.bz2
	remove-undef-gnu-source.patch
	rdnssd.initd
	rdnssd.resolvconf
	rdnssd-fix-merge-hook-regex.patch
	"

build() {
	./configure \
		--build=$BUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-suid-install
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m755 "$srcdir"/rdnssd.initd "$pkgdir"/etc/init.d/rdnssd
}

dnssort() {
	pkgdesc="ndisc6 dnssort (perl)"
	install_if="$pkgname perl"
	depends=perl
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/dnssort "$subpkgdir"/usr/bin/
}

rdnssd() {
	pkgdesc="autoconfigures the list of DNS servers through slateless IPv6 autoconfiguration"
	amove usr/sbin/rdnssd
	amove etc/rdnssd
	amove var/run/rdnssd

	install -D -m755 "$srcdir"/rdnssd.resolvconf \
		"$subpkgdir"/etc/rdnssd/resolvconf
}

sha512sums="6f6cd939fb7079518db5c1bcd11353c722237d7735d229f9fd20d03e9f16b1ddf07c7c78c91364886148f2a82d6805eafe7e27da6b4e7c99b111603ec5fab842  ndisc6-1.0.4.tar.bz2
182f365ab743185c594394a92a0408f0feac09e969367080be0b62b966a2e10ce59256e0aca263d5cd6809d81fa8e7370317e136659d843599daa1fb88b51bf8  remove-undef-gnu-source.patch
7225d35c258bc59c23850811583811e3f62936cc395a010e5e0d32734916dec5f7c434b0915075a26c4670bd218b2e47269b7a685a71eab185766ba614f6f3cf  rdnssd.initd
7b23eafa78bd88d43d0910dbb6cb8d248c00425edb0826571c4d4f9129de33f07093dba4a42f05a549ef1bb9a0fd301716a30bf95ceea18d445e291f0169a444  rdnssd.resolvconf
6e24c20f5b54ed4867ead508e7f85dddc86804441e0876778927e815f4871d31e35e3872e1631b2b147641b18f735dcca9609072217a9e622b10b328b19d2e73  rdnssd-fix-merge-hook-regex.patch"