diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-24 07:54:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-24 07:54:38 +0000 |
commit | a8ce72414a2261d1095a37de32829860edcd2e8b (patch) | |
tree | e7f0f0670a338b517d0f06a621aacf89dfa22f1c | |
parent | c64ea16dce848a328da4f289eab769480a9a74ee (diff) | |
parent | 188a3a44b3edaf42f912f5a59a1294c223f08abb (diff) | |
download | aports-a8ce72414a2261d1095a37de32829860edcd2e8b.tar.bz2 aports-a8ce72414a2261d1095a37de32829860edcd2e8b.tar.xz |
Merge git://git.alpinelinux.org/fcolista/aports-fcolista
-rw-r--r-- | testing/sofia-sip/APKBUILD | 7 | ||||
-rw-r--r-- | testing/sphinx/APKBUILD | 54 | ||||
-rw-r--r-- | testing/sphinx/sphinx.initd | 33 |
3 files changed, 92 insertions, 2 deletions
diff --git a/testing/sofia-sip/APKBUILD b/testing/sofia-sip/APKBUILD index 6074696e11..987b26f040 100644 --- a/testing/sofia-sip/APKBUILD +++ b/testing/sofia-sip/APKBUILD @@ -1,5 +1,5 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> -# Maintainer: +# Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=sofia-sip pkgver=1.12.11 pkgrel=0 @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --prefix=/usr \ + --enable-64 \ + --enable-staic=yes \ --with-openssl make } diff --git a/testing/sphinx/APKBUILD b/testing/sphinx/APKBUILD new file mode 100644 index 0000000000..032d67b16a --- /dev/null +++ b/testing/sphinx/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=sphinx +pkgver=2.0.6 +pkgrel=0 +pkgdesc="Free open-source SQL full-text search engine" +url="http://www.sphinxsearch.com" +arch="all" +license="GPL2" +depends="" +depends_dev="postgresql-dev mysql-dev unixodbc-dev expat-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://sphinxsearch.com/files/$pkgname-$pkgver-release.tar.gz + sphinx.initd" + +_builddir="$srcdir"/$pkgname-$pkgver-release +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 --prefix=/usr \ + --exec-prefix=/usr \ + --localstatedir=/var/lib/sphinx \ + --sysconfdir=/etc/sphinx \ + --with-pgsql \ + --with-mysql \ + --with-unixodbc \ + --with-syslog \ + --enable-id64 + make || return 1 + +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname \ + || return 1 + + +} + +md5sums="de6be5ee20b1bfafa2a0cea7155a8331 sphinx-2.0.6-release.tar.gz +38a9a10e6b927c597005d571be737f70 sphinx.initd" diff --git a/testing/sphinx/sphinx.initd b/testing/sphinx/sphinx.initd new file mode 100644 index 0000000000..c6799653fd --- /dev/null +++ b/testing/sphinx/sphinx.initd @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/sphinx/files/searchd.rc,v 1.1 2009/11/05 15:41:56 graaff Exp $ + +depend() { + need net + use logger +} + +checkconfig() { + if [ ! -f /etc/sphinx/sphinx.conf ] ; then + eerror "Please create /etc/sphinx/sphinx.conf" + eerror "Sample conf: /etc/sphinx/sphinx.conf.dist" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting sphinx searchd" + start-stop-daemon --start --exec /usr/bin/searchd + eend $? "Failed to start sphinx searchd" +} + +stop() { + ebegin "Stopping sphinx searchd" + start-stop-daemon --stop --exec /usr/bin/searchd + eend $? "Failed to stop sphinx searchd" +} + |