mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/dspam: Moderning abuild
dspam APKBUILD applies the build manually instead of using the default_prepare() helper. Also using the $builddir variable.
This commit is contained in:
parent
eaa30e4715
commit
47800ee3b0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user