diff options
author | cosmo0920 | 2015-06-23 23:57:25 +0900 |
---|---|---|
committer | cosmo0920 | 2015-06-23 23:58:05 +0900 |
commit | 6264e6623d7bbb021ea55766fa835d94f7cb66e4 (patch) | |
tree | d18d2ebd291862379b92dbbd062c54fc0694f63b | |
download | aur-6264e6623d7bbb021ea55766fa835d94f7cb66e4.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | groonga-httpd.service | 15 | ||||
-rw-r--r-- | groonga.install | 11 |
4 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..953b5a9e077e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = groonga + pkgdesc = An opensource fulltext search engine. + pkgver = 5.0.4 + pkgrel = 3 + url = http://groonga.org/ + arch = i686 + arch = x86_64 + arch = armv7h + license = LGPL2 + depends = zlib + depends = lz4 + depends = glib2 + depends = libedit + depends = zeromq + depends = libevent + depends = mecab + depends = mecab-ipadic + optdepends = cutter-test_framework + optdepends = ruby + optdepends = mercurial + optdepends = kytea + optdepends = snowball-c + source = http://packages.groonga.org/source/groonga/groonga-5.0.4.tar.gz + source = groonga-httpd.service + sha1sums = af0861bc79e387cba09dbca908d4e3820fd48b5e + sha1sums = 56b68b5ebfc6785f08ce101b263d6f56acd74d8a + +pkgname = groonga + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7a8e11006b44 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=groonga +pkgver=5.0.4 +pkgrel=3 +pkgdesc="An opensource fulltext search engine." +arch=('i686' 'x86_64' 'armv7h') +url="http://groonga.org/" +license=('LGPL2') +source=("http://packages.groonga.org/source/groonga/$pkgname-$pkgver.tar.gz" + "groonga-httpd.service") +depends=('zlib' 'lz4' 'glib2' 'libedit' 'zeromq' 'libevent' 'mecab' 'mecab-ipadic') +optdepends=('cutter-test_framework' 'ruby' 'mercurial' 'kytea' 'snowball-c') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --with-default-encoding=utf8 \ + --with-zlib \ + --with-lz4 \ + --without-stemmer \ + --enable-shared=yes \ + --enable-static=yes \ + --with-mecab \ + --with-mruby + + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR="$pkgdir" install + + # cleanup + rm -r "${pkgdir}/var/run" + + install -Dm644 ../groonga-httpd.service "$pkgdir"/usr/lib/systemd/system/groonga-httpd.service +} +sha1sums=('af0861bc79e387cba09dbca908d4e3820fd48b5e' + '56b68b5ebfc6785f08ce101b263d6f56acd74d8a') diff --git a/groonga-httpd.service b/groonga-httpd.service new file mode 100644 index 000000000000..c3c1d0324f07 --- /dev/null +++ b/groonga-httpd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Groonga HTTP server daemon +Wants=network-online.target +After=syslog.target network-online.target + +[Service] +Type=forking +ExecStartPre=-/usr/bin/mkdir -p /var/log/groonga/httpd /var/run/groonga +ExecStart=/usr/bin/groonga-httpd +ExecStop=/usr/bin/groonga-httpd -s stop +User=root +Group=root + +[Install] +WantedBy=multi-user.target diff --git a/groonga.install b/groonga.install new file mode 100644 index 000000000000..5472b46aa648 --- /dev/null +++ b/groonga.install @@ -0,0 +1,11 @@ +post_install(){ + if [ ! -d '/var/lib/groonga' ]; then + mkdir -p '/var/lib/groonga' + fi + if ! getent group groonga >/dev/null; then + groupadd -g 185 groonga + fi + if ! getent passwd groonga >/dev/null; then + useradd -c 'Groonga user' -u 185 -g groonga -d '/var/lib/groonga' -s /bin/false groonga + fi +} |