summaryrefslogblamecommitdiff
path: root/system/ssmtp/APKBUILD
blob: 8e2fb16d6c18261536891b677110e1178028d4c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                      
                                                 

             
         
                                                   
                                                   


                  
                           

                                  
                          
                                                                                            



                                    

         
                      









                                                              
                              



            
                      






                                                
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ssmtp
pkgver=2.64
pkgrel=12
pkgdesc="Simple MTA to transmit mail to a mail hub"
url="https://packages.debian.org/stable/mail/ssmtp"
arch="all"
options="!check"
license="GPL-2.0+"
provides=/usr/sbin/sendmail
depends=
makedepends="openssl-dev autoconf"
subpackages="$pkgname-doc"
source="https://ftp.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${pkgver}.orig.tar.bz2
	generate_config.patch
	libcrypto-underlinking.patch
	inet6-getaddrinfo.patch
	"

build() {
	cd "$builddir"
	sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
	autoconf

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--enable-ssl \
		--enable-inet6
	make
}

package() {
	cd "$builddir"
	make prefix="$pkgdir"/usr \
		etcdir="$pkgdir"/etc \
		mandir="$pkgdir"/usr/share/man \
		install
	ln -s ssmtp "$pkgdir"/usr/sbin/sendmail
}