aboutsummaryrefslogblamecommitdiffstats
path: root/main/fetchmail/APKBUILD
blob: 0196c9c1810ca49fae286bb670a0565adee0a339 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
                 

             

                                                        
          
             
        

                                                      
                                        
                                                                     
                        






                                           
                            

                             



                                     
                                      
                                                                               
                                                                          

 


                                                                    
                





                                                      
                                                                   
                                                  
# Contributor: Michael Mason <ms13sp@gmail.com> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fetchmail
pkgver=6.3.22
pkgrel=0
pkgdesc="A remote-mail retrieval and forwarding utility"
url="http://fetchmail.berlios.de/"
arch="all"
license="GPL"
depends=
makedepends="openssl-dev python"
install="fetchmail.pre-install fetchmail.post-install"
subpackages="$pkgname-doc fetchmailconf"
source="http://download.berlios.de/fetchmail/$pkgname-$pkgver.tar.bz2
	fetchmail.initd"
build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-ssl \
		--disable-nls
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/fetchmail.initd "$pkgdir"/etc/init.d/fetchmail
	install -d "$pkgdir"/var/lib/fetchmail "$pkgdir"/var/run/fetchmail
}

fetchmailconf() {
	depends="python"
	pkgdesc="A GUI for generating fetchmail configuration files"
	install=
	mkdir -p "$subpkgdir"/usr/bin
	cd "$pkgdir" 
	mv usr/bin/fetchmailconf "$subpkgdir"/usr/bin/
	mv usr/lib "$subpkgdir"/usr/
}

md5sums="dcf3fd2e213b2ac5518119941642c2b5  fetchmail-6.3.22.tar.bz2
b27fe01a7c25534d62d175c8ba22fc48  fetchmail.initd"