diff options
author | ScrumpyJack <scrumpyjack@st.ilet.to> | 2016-08-18 12:58:33 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-18 21:11:39 +0000 |
commit | fad19051951129081c94d9ca641af6bbb1389e20 (patch) | |
tree | 4f6fac56923653086b9db2df0052a834b70b6966 /community/hermes | |
parent | 5df6fbc76284929c44d2db7db6d12f675a91958c (diff) | |
download | aports-fad19051951129081c94d9ca641af6bbb1389e20.tar.bz2 aports-fad19051951129081c94d9ca641af6bbb1389e20.tar.xz |
testing/[various]: move to community
Moves the following packages to community after successful build and testing.
bogofilter
corebird
fbpanel
hermes
libdbi-drivers
luufs
netsurf
opencpn
py-sensehat
rng-tools
volumeicon
Diffstat (limited to 'community/hermes')
-rw-r--r-- | community/hermes/APKBUILD | 50 | ||||
-rw-r--r-- | community/hermes/Utils.cpp.patch | 19 |
2 files changed, 69 insertions, 0 deletions
diff --git a/community/hermes/APKBUILD b/community/hermes/APKBUILD new file mode 100644 index 0000000000..f57a03428f --- /dev/null +++ b/community/hermes/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to> +# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> +pkgname=hermes +pkgver=1.9 +pkgrel=0 +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 openssl-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" diff --git a/community/hermes/Utils.cpp.patch b/community/hermes/Utils.cpp.patch new file mode 100644 index 0000000000..d5b5c16354 --- /dev/null +++ b/community/hermes/Utils.cpp.patch @@ -0,0 +1,19 @@ +--- hermes-1.9/src/Utils.cpp ++++ ../Utils.cpp.modified +@@ -418,9 +418,15 @@ + { + char buf[2048]=""; + char *strerr; +-// if(strerror_r(errnum,strerr,1024)!=-1) + #ifndef WIN32 ++ #ifdef __GLIBC__ + strerr=strerror_r(errnum,buf,2048); ++ #else ++ int retval = strerror_r(errnum, buf, sizeof buf); ++ strerr = buf; ++ if(retval != 0) ++ strcpy(buf, "error fetching error description"); ++ #endif + #else + strerr="Error "; + #endif //WIN32 |