aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-12-24 14:21:42 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-12-24 14:22:26 +0000
commit94a212d7c85c77694564c066835a67af309a71a7 (patch)
tree5fae4b30122dbe62c03e0a9ab61b2973659fa096
parent16817be7d5138bfedb7868b204ee26353e67aede (diff)
downloadaports-94a212d7c85c77694564c066835a67af309a71a7.tar.gz
aports-94a212d7c85c77694564c066835a67af309a71a7.tar.bz2
aports-94a212d7c85c77694564c066835a67af309a71a7.tar.xz
community/clamsmtp: update source, license and add openrc subpkg
Original source appears dead Modernize APKBUILD
-rw-r--r--community/clamsmtp/APKBUILD35
1 files changed, 13 insertions, 22 deletions
diff --git a/community/clamsmtp/APKBUILD b/community/clamsmtp/APKBUILD
index 6e6a62ed2b..6fb9e25956 100644
--- a/community/clamsmtp/APKBUILD
+++ b/community/clamsmtp/APKBUILD
@@ -2,42 +2,39 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=clamsmtp
pkgver=1.10
-pkgrel=15
+pkgrel=16
pkgdesc="An SMTP Virus Filter"
url="http://thewalter.net/stef/software/clamsmtp/"
arch="all"
-license="BSD"
-depends=""
-makedepends=""
+license="BSD-3-Clause"
install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-upgrade"
-subpackages="$pkgname-doc"
-source="http://thewalter.net/stef/software/clamsmtp/clamsmtp-$pkgver.tar.gz
+subpackages="$pkgname-doc $pkgname-openrc"
+source="http://deb.debian.org/debian/pool/main/c/clamsmtp/clamsmtp_$pkgver.orig.tar.gz
clamsmtpd.confd
clamsmtpd.initd
"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
# set default clam address and user
sed -e 's|^\#ClamAddress:.*|ClamAddress: /var/run/clamav/clamd.sock|'\
@@ -50,12 +47,6 @@ package() {
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="b068ba6e444859782bbdd88f290c1abf clamsmtp-1.10.tar.gz
-e84205681f64c07af9ec5b6a3dd8bc38 clamsmtpd.confd
-01cbffdd905736452e3ac50c16c2cea9 clamsmtpd.initd"
-sha256sums="a52fdb4b26e11ece30c478a806c95b1eda16f4e73937bd560ece7017fb0df92a clamsmtp-1.10.tar.gz
-2383e93e39f5228d50a6e94ae3d3d4983443a6981db23ab0fc8faac11b2518cc clamsmtpd.confd
-965999e302b9b6726c443e941ba58609032e82254e67e64acd96d15ba24e7ba6 clamsmtpd.initd"
-sha512sums="f28e2c1d78c965245d8d7a8810fbeb11d41e40383eba2e8fca500f94c2e4b8d9a2c0b9e4e8e967965bf50266968e0b9549fb62369f37724350a20174c89a044b clamsmtp-1.10.tar.gz
+sha512sums="f28e2c1d78c965245d8d7a8810fbeb11d41e40383eba2e8fca500f94c2e4b8d9a2c0b9e4e8e967965bf50266968e0b9549fb62369f37724350a20174c89a044b clamsmtp_1.10.orig.tar.gz
007b948a11ab4c8da737328d2088abd5b66dc7f83bf1b8bcb26a5deb639864e77553b7e7434139ddb8a916fe39beb4aabb35f766ce96274449b414268703a6ee clamsmtpd.confd
2540bcafa866249cd63cb961c4d589eca900e9d1bedfc06c5ae890118fd9e49f1bd126e6dc23d1d953cc1038b390a2a736b67032e9fb33e70227887a6cbc4a5c clamsmtpd.initd"