aboutsummaryrefslogblamecommitdiffstats
path: root/testing/spampd/APKBUILD
blob: 956f6867ae85906196f3ad9c9da8d374ccb3ba1c (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                   
              
           
        

                                                                               
                                                    

                                                






                                                                                            


                  
         
                             













                                                                               
 

                                                                                                                                                          
                                                                                                                                                     
# Contributor: Chloe Kudryavtsev <toast@toast.cafe>
# Maintainer: Chloe Kudryavtsev <toast@toast.cafe>
pkgname=spampd
pkgver=2.53
pkgrel=1
pkgdesc="An L/SMTP proxy that marks spam using spamassassin"
url="http://www.worlddesign.com/index.cfm/page/software/open-source/spampd.htm"
arch="noarch !x86" # perl-mail-spamassassin->perl-db
license="GPL-2.0-or-later"
depends="perl-net-server perl-mail-spamassassin"
install="spampd.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="
	spampd.confd
	spampd.initd
	$pkgname-$pkgver.tar.gz::https://github.com/mpaperno/$pkgname/archive/$pkgver.tar.gz
	"
pkgusers="spampd"
pkggroups="spampd"

check() {
	./spampd.pl --version
}

package() {
	install -m755 -D "$builddir/$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
	install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
	install -m644 -D "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
	install -m644 -D "$builddir/$pkgname.html" \
		"$pkgdir/usr/share/html/$pkgname.html"
}

openrc() {
	mkdir -p "$subpkgdir"
	mv "$pkgdir/etc" "$subpkgdir/"
}

sha512sums="216ab774ac2cc8b54fb8f2155738fd41264b261efd5a7ab95d9910aad5b9699065f42211dbe8021383f0172bfb50cfc9087ea8dc1e53a2223dabd7faf490769c  spampd.confd
4adad6b44509abedcfb5726d09a63b66048468e5ee7942d0e586630a84fb93931f315ed9410894af2cc4e5bff04cd38600ea91cc0b18c3cedd67efe2af6e0e14  spampd.initd
538d905359bd455916aa8dcad9f3d77ce0fbf6cb722608bb723d186679e04abab784c9ae2c372954028dc1454642d74f4cfd0f63f52dcf439f35406220979ef5  spampd-2.53.tar.gz"