aboutsummaryrefslogtreecommitdiffstats
path: root/community/hermes/APKBUILD
blob: 3d330c3332631774e3a7e27b60b58aa34576b1c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=hermes
pkgver=1.9
pkgrel=2
pkgdesc="Hermes is an anti-spam transparent SMTP proxy"
url="http://hermes-project.com/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="libspf2-dev sqlite-dev perl gettext-dev libressl-dev doxygen"
install=""
subpackages="$pkgname-doc"
source="http://hermes-project.com/files/${pkgname}-${pkgver}.tar.bz2
         Utils.cpp.patch"

_builddir=${srcdir}/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
        ./configure \
           --build=$CBUILD \
           --host=$CHOST \
           --prefix=/usr \
           --enable-spf \
           --enable-openssl || return 1
        make || return 1
}

package() {
	cd "$_builddir"
        make DESTDIR="$pkgdir" install || return 1
}

md5sums="61358b37c13f127632269b230a3eb382  hermes-1.9.tar.bz2
95c21d75b4d5591ff3bb69f9f9d74587  Utils.cpp.patch"
sha256sums="3c1691d70588f1ac373c0395512f2bba14a2e6870d77901f3e2a578610bee696  hermes-1.9.tar.bz2
545253d8c1e0c368b73dab0cbd740de3853114327d61b0fe5a1018d0935f8b35  Utils.cpp.patch"
sha512sums="9861177cee7d4936e2221f3ff9f60c030385d6c2ab1cbc320f4e03880220117c580a11188e011f9051c79691e1ab8399c03be8cbbc4f18519a1a9b966bf767b9  hermes-1.9.tar.bz2
ac5859bed41c5b484adf8b42d66d69cf49966df84e664f9f6978d3c4fa6200858ea024c6631c2f1fd02c09d7f95e6102b3fce68b3f92f5223c4f8a253fd57d0c  Utils.cpp.patch"