diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-06 10:01:07 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-06 10:01:07 +0000 |
| commit | f88ef47373483aa543edde08162ebdabb38e90cf (patch) | |
| tree | 2f48dd4f1dd6b766fe8eaf7e8d78cb8a0c425b10 /testing | |
| parent | eaa39dc222add56290b7875459880229d71d3a4c (diff) | |
| parent | cfd885a53fe7d9ebcc5ebbd8d76f2774b24d20d5 (diff) | |
| download | aports-f88ef47373483aa543edde08162ebdabb38e90cf.tar.bz2 aports-f88ef47373483aa543edde08162ebdabb38e90cf.tar.xz | |
Merge git://git.alpinelinux.org/fcolista/aports-fcolista
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/calibre/APKBUILD | 6 | ||||
| -rw-r--r-- | testing/calibre/calibre.confd | 6 | ||||
| -rw-r--r-- | testing/calibre/calibre.initd | 17 |
3 files changed, 26 insertions, 3 deletions
diff --git a/testing/calibre/APKBUILD b/testing/calibre/APKBUILD index f9a346a77..f996d6ac8 100644 --- a/testing/calibre/APKBUILD +++ b/testing/calibre/APKBUILD @@ -2,10 +2,10 @@ # Maintainer: pkgname=calibre pkgver=0.8.7 -pkgrel=3 +pkgrel=4 pkgdesc="Ebook management application" url="http://calibre-ebook.com/" -arch="" +arch="all" license="GPL3" depends= depends_dev="python-dev imagemagick-dev py-qt py-sip py-imaging libusb-dev @@ -55,4 +55,4 @@ package() { } md5sums="d7132ec75f5e742e04e196fc8e2c0884 calibre-0.8.7.tar.gz a53086675b33859da1d18cc21daa090b calibre.confd -d245fe44b51b48de128290de8485c92e calibre.initd" +96a7744a8b5d63ed8fbe3c4919b0e40f calibre.initd" diff --git a/testing/calibre/calibre.confd b/testing/calibre/calibre.confd new file mode 100644 index 000000000..c20e67699 --- /dev/null +++ b/testing/calibre/calibre.confd @@ -0,0 +1,6 @@ +DAEMON=/usr/bin/$NAME +PIDFILE=/var/run/$NAME.pid +CONTENT=/var/lib/calibre +PORT=8080 +MAX_COVER=600x800 +DAEMON_ARGS="--auto-reload --with-library=$CONTENT --pidfile=$PIDFILE --port=$PORT --max-cover=$MAX_COVER --daemonize" diff --git a/testing/calibre/calibre.initd b/testing/calibre/calibre.initd new file mode 100644 index 000000000..25117ed37 --- /dev/null +++ b/testing/calibre/calibre.initd @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net + after firewall +} +start() { + ebegin "Starting Calibre Server" + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS + eend $? +} + +stop() { + ebegin "Stopping Calibre Server" + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + eend $? +} |
