diff options
| author | Michael Mason <ms13sp@gmail.com> | 2010-01-05 18:19:36 +0000 |
|---|---|---|
| committer | Michael Mason <ms13sp@gmail.com> | 2010-01-05 18:19:36 +0000 |
| commit | e4eba1521563c3d2ae3798557ca22886dda3cee9 (patch) | |
| tree | 92eaffc72fa693a0564ca284ffe76ade378266d4 /testing | |
| parent | 26e2614468c2d4ca450dc679dd756a1203c336a0 (diff) | |
| parent | 333f64e06a90a658f7d3082590c81e1b647208e6 (diff) | |
| download | aports-e4eba1521563c3d2ae3798557ca22886dda3cee9.tar.bz2 aports-e4eba1521563c3d2ae3798557ca22886dda3cee9.tar.xz | |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/cherokee/APKBUILD | 34 | ||||
| -rw-r--r-- | testing/cherokee/cherokee.confd | 10 | ||||
| -rwxr-xr-x | testing/cherokee/cherokee.initd | 41 |
3 files changed, 85 insertions, 0 deletions
diff --git a/testing/cherokee/APKBUILD b/testing/cherokee/APKBUILD new file mode 100644 index 0000000000..abc0da30ee --- /dev/null +++ b/testing/cherokee/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Mika Havela <mika.havela@gmail.com> +# Maintainer: Mika Havela <mika.havela@gmail.com> +pkgname=cherokee +pkgver=0.99.38 +pkgrel=0 +pkgdesc="A very fast, flexible and easy to configure Web Server" +url="http://www.cherokee-project.com/" +license="GPL2" +depends="pcre rrdtool" +makedepends="openssl-dev gettext-dev ffmpeg-dev" +install= +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.cherokee-project.com/download/0.99/${pkgver}/${pkgname}-${pkgver}.tar.gz + cherokee.initd + cherokee.confd + " + +build() { + cd "$srcdir"/$pkgname-$pkgver + + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --with-wwwroot=/var/www + make || return 1 + make DESTDIR="$pkgdir" install + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="67be28eda0673598fbb5b1cbd70de455 cherokee-0.99.38.tar.gz +4180dbb6701f928054079aa1e3bd5ebc cherokee.initd +bd6a840f72c630ce1eaabe058097584f cherokee.confd" diff --git a/testing/cherokee/cherokee.confd b/testing/cherokee/cherokee.confd new file mode 100644 index 0000000000..8f719df390 --- /dev/null +++ b/testing/cherokee/cherokee.confd @@ -0,0 +1,10 @@ +# Sample conf.d file for alpine linux + +# +# Specify daemon $OPTS here. +# + +OPTS="-d" +DAEMON_USER="root" +DAEMON_GROUP="root" + diff --git a/testing/cherokee/cherokee.initd b/testing/cherokee/cherokee.initd new file mode 100755 index 0000000000..6aed337b6f --- /dev/null +++ b/testing/cherokee/cherokee.initd @@ -0,0 +1,41 @@ +#!/sbin/runscript + +# Cherokee init.d file for alpine linux. + +NAME=cherokee +DAEMON=/usr/sbin/$NAME +DAEMON_USER=${DAEMON_USER:-root} +DAEMON_GROUP=${DAEMON_GROUP:-root} + +depend() { + need net +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet \ + --pidfile /var/run/${NAME}.pid \ + --chuid ${DAEMON_USER}:${DAEMON_GROUP} \ + --exec ${DAEMON} -- ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${NAME}" + start-stop-daemon --stop --quiet \ + --exec ${DAEMON} \ + --pidfile /var/run/${NAME}.pid + eend $? +} + +reload() { + ebegin "Reloading ${NAME}" + if ! service_started "${NAME}" ; then + eend 1 "${NAME} is not started" + return 1 + fi + start-stop-daemon --stop --oknodo --signal HUP \ + --exec ${DAEMON} --pidfile /var/run/${NAME}.pid + eend $? +} + |
