summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornfnty2016-08-26 15:30:23 +0200
committernfnty2016-08-26 15:30:56 +0200
commitc252a487640169391821f2773a645c29e29be5f1 (patch)
tree7e8139fea9035decedcdb9109805504a9ef6bd88
downloadaur-c252a487640169391821f2773a645c29e29be5f1.tar.gz
Initial commit
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD46
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..566d51337de
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Fri Aug 26 13:30:55 UTC 2016
+pkgbase = rspamd-git
+ pkgdesc = Rapid spam filtering system
+ pkgver = r1
+ pkgrel = 1
+ url = https://github.com/vstakhov/rspamd
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = git
+ makedepends = cmake
+ makedepends = pkgconfig
+ makedepends = ragel
+ depends = openssl
+ depends = libevent
+ depends = glib2
+ depends = gmime
+ depends = luajit
+ depends = sqlite
+ depends = hiredis
+ depends = file
+ provides = rspamd
+ conflicts = rspamd
+ source = rspamd::git+https://github.com/vstakhov/rspamd.git
+ sha512sums = SKIP
+
+pkgname = rspamd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3931a200032
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+pkgname=('rspamd-git')
+_srcname='rspamd'
+pkgdesc='Rapid spam filtering system'
+pkgver='r1'
+pkgrel='1'
+arch=('i686' 'x86_64')
+url="https://github.com/vstakhov/${_srcname}"
+license=('Apache')
+
+depends=('openssl' 'libevent' 'glib2' 'gmime' 'luajit' 'sqlite' 'hiredis' 'file')
+makedepends=('git' 'cmake' 'pkgconfig' 'ragel')
+provides=("${pkgname[0]%-git}")
+conflicts=("${pkgname[0]%-git}")
+
+source=("${_srcname}::git+${url}.git")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_srcname}"
+
+ printf 'r%s.%s.%s\n' \
+ "$( git rev-list --count 'HEAD' )" \
+ "$( git log --max-count='1' --pretty='format:%ct' )" \
+ "$( git rev-parse --short 'HEAD' )"
+}
+
+build() {
+ cd "${srcdir}/${_srcname}"
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCONFDIR='/etc/rspamd' \
+ -DRUNDIR='/run/rspamd' \
+ -DDBDIR='/var/lib/rspamd' \
+ -DLOGDIR='/var/log/rspamd' \
+ -DWANT_SYSTEMD_UNITS='ON' \
+ .
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_srcname}"
+
+ make DESTDIR="${pkgdir}" install
+}