aboutsummaryrefslogblamecommitdiffstats
path: root/main/amavisd-milter/APKBUILD
blob: 22ec5e58bfc09131131ec6f3d77b46d6d9d0e8c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                                                         
                      

            

                                                                   

                                           
                          


                           
                                                                                                        


                            
                                   

























                                                                             
                                                                                                                                                                         
                                                                                                                                                      
                                                                                                                                                       
# Contributor: Elias Werberich <elias@werberich.de>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=amavisd-milter
pkgver=1.7.1
pkgrel=0
pkgdesc="sendmail milter for amavisd-new using the AM.PDP protocol"
url="http://amavisd-milter.sourceforge.net/"
arch="all !x86" #amavis isn't build for x86
license="BSD-3-Clause"
depends="amavis libmilter"
makedepends="libmilter-dev"
subpackages="$pkgname-doc"
source="
	https://github.com/prehor/amavisd-milter/releases/download/$pkgver/amavisd-milter-$pkgver.tar.gz
	amavisd-milter.initd
	amavisd-milter.confd
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--target="" \
		--prefix=/usr
	make
}

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

package() {
	cd "$builddir"
	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 -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="db2fd53a3047a21fb20743fce7d01899eb92efffc62159d3022e0b5014dbfb3667e1664868734d84b58f5daadd8270d3e05a68c60a01a1ac35d104105cc86586  amavisd-milter-1.7.1.tar.gz
3f631248da7ecc36790123bad82b0d17a110947dd84aa03fc1e81c3ed99db43ae52d3cef10c048a9147d86973a8d730494b6c289f96195dbafab2804538191fd  amavisd-milter.initd
f44ab528c65050e23a2e78dafd937dae5bc73bd83ff780d7a193d47744674f3991c9d1ae99c4fb8ce1762c50ed6ca5fb604eb2c4cf69fe2e27e8a4076b6f2eec  amavisd-milter.confd"