summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiyoshi Aman <aphrael@alpinelinux.org>2011-04-02 08:22:17 -0400
committerKiyoshi Aman <aphrael@alpinelinux.org>2011-04-04 09:14:00 -0400
commit3047f559ec6ad0d64ee68c630b1e838326f4f46a (patch)
tree5d78d36f086f67896ee544d5c789cf942755e6d7
parent6b3a963d7662960c0467d54c99e72b3ed8d39b3e (diff)
downloadaports-3047f559ec6ad0d64ee68c630b1e838326f4f46a.tar.bz2
aports-3047f559ec6ad0d64ee68c630b1e838326f4f46a.tar.xz
testing/drizzle: new aport
-rw-r--r--testing/drizzle/APKBUILD65
-rw-r--r--testing/drizzle/drizzle.initd29
-rw-r--r--testing/drizzle/drizzle.post-install2
3 files changed, 96 insertions, 0 deletions
diff --git a/testing/drizzle/APKBUILD b/testing/drizzle/APKBUILD
new file mode 100644
index 000000000..5b27d476f
--- /dev/null
+++ b/testing/drizzle/APKBUILD
@@ -0,0 +1,65 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+pkgname=drizzle
+pkgver=2011.03.13
+pkgrel=0
+pkgdesc="A MySQL-derived RDBMS for cloud usage and webapps"
+url="http://launchpad.net/drizzle"
+arch="all"
+license="GPL"
+depends=
+depends_dev=
+makedepends="gperf protobuf-dev pcre-dev boost-dev intltool"
+install="drizzle.post-install"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-client $pkgname-libs $pkgname-plugins"
+source="
+ http://launchpad.net/drizzle/elliott/2011-03-14/+download/drizzle7-$pkgver.tar.gz
+ drizzle.initd
+ "
+
+_builddir="$srcdir"/drizzle7-$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 --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-nls \
+ --without-slave-plugin \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+client() {
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+libs() {
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/lib*.so* "$subpkgdir"/usr/lib
+}
+
+plugins() {
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/drizzle7 "$subpkgdir"/usr/lib
+}
+
+md5sums="e152edfec45779c0bd34ece707aa022d drizzle7-2011.03.13.tar.gz
+000974e04609dbffb3e1e78b268fcc73 drizzle.initd"
diff --git a/testing/drizzle/drizzle.initd b/testing/drizzle/drizzle.initd
new file mode 100644
index 000000000..55bdd9bf2
--- /dev/null
+++ b/testing/drizzle/drizzle.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+
+# Sample init.d file for alpine linux.
+
+name=drizzle
+daemon=/usr/sbin/$name
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${name}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${name}.pid \
+ --chuid drizzle:drizzle \
+ --exec ${daemon}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/$name.pid \
+ --exec ${daemon}
+ eend $?
+}
+
diff --git a/testing/drizzle/drizzle.post-install b/testing/drizzle/drizzle.post-install
new file mode 100644
index 000000000..effba7b27
--- /dev/null
+++ b/testing/drizzle/drizzle.post-install
@@ -0,0 +1,2 @@
+addgroup -S drizzle
+adduser -SDHG drizzle drizzle