aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dspam/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/dspam/APKBUILD')
-rw-r--r--testing/dspam/APKBUILD14
1 files changed, 6 insertions, 8 deletions
diff --git a/testing/dspam/APKBUILD b/testing/dspam/APKBUILD
index 3b6f164232..f7774fb8fb 100644
--- a/testing/dspam/APKBUILD
+++ b/testing/dspam/APKBUILD
@@ -23,19 +23,17 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_ver.tar.gz
musl-fixes.patch"
+builddir="$srcdir/$pkgname-$_ver"
+
prepare() {
- cd "$srcdir"/$pkgname-$_ver
- for i in "$srcdir"/*.patch; do
- [ -f "$i" ] || continue
- msg "Applying $i"
- patch -p1 -i "$i" || return 1
- done
+ cd "$builddir"
update_config_guess || return 1
+ default_prepare || return 1
#aclocal -I m4 && libtoolize && autoconf && automake
}
build() {
- cd "$srcdir"/$pkgname-$_ver
+ cd "$builddir"
./autogen.sh || return 1
./configure --prefix=/usr \
--sysconfdir=/etc/dspam \
@@ -50,7 +48,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$_ver
+ cd "$builddir"
make install DESTDIR="$pkgdir"
install -Dm755 "$srcdir"/dspam.initd "$pkgdir"/etc/init.d/dspam
install -Dm644 "$srcdir"/dspam.logrotate "$pkgdir"/etc/logrotate.d/dspam