aboutsummaryrefslogtreecommitdiffstats
path: root/extra/fetchmail/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-05-29 09:32:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-05-29 09:32:25 +0000
commite504121aac389456ee7383f44e6d44e54631e01e (patch)
tree946da14960d25db20c5731754efff397b3ddfe87 /extra/fetchmail/APKBUILD
parente318f7eac680691aa974f0860075cadb69036b43 (diff)
downloadaports-e504121aac389456ee7383f44e6d44e54631e01e.tar.bz2
aports-e504121aac389456ee7383f44e6d44e54631e01e.tar.xz
extra/fetchmail: create fetchmail user and fix init.d script
Diffstat (limited to 'extra/fetchmail/APKBUILD')
-rw-r--r--extra/fetchmail/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/extra/fetchmail/APKBUILD b/extra/fetchmail/APKBUILD
index e04e23c349..1431ac7776 100644
--- a/extra/fetchmail/APKBUILD
+++ b/extra/fetchmail/APKBUILD
@@ -2,16 +2,17 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fetchmail
pkgver=6.3.9
-pkgrel=0
+pkgrel=1
pkgdesc="A remote-mail retrieval and forwarding utility"
url="http://fetchmail.berlios.de/"
license="GPL"
depends="openssl uclibc"
-makedepends="openssl-dev"
-install=
+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.initrd"
+ $install
+ fetchmail.initd"
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -24,6 +25,7 @@ build() {
make || return 1
make DESTDIR="$pkgdir" install
install -Dm755 $srcdir/fetchmail.initrd "$pkgdir"/etc/init.d/fetchmail
+ install -d "$pkgdir"/var/lib/fetchmail
}
fetchmailconf() {
@@ -36,4 +38,6 @@ fetchmailconf() {
}
md5sums="72c20ad2b9629f1a109668b05a84d823 fetchmail-6.3.9.tar.bz2
-b6b95767279d77c98acdc3aa4d00ec89 fetchmail.initrd"
+5a2fc8e8b3115fe2b9bf23503fb8f0a4 fetchmail.pre-install
+e27237ed73ad183ddd06dfd5e3dd0da7 fetchmail.post-install
+9a64c2b77d1a03a1eb8648a32d46b2c5 fetchmail.initd"