diff options
-rw-r--r-- | main/lua-turbo/APKBUILD | 22 | ||||
-rw-r--r-- | main/lua-turbo/lua-turbo.confd | 4 | ||||
-rw-r--r-- | main/lua-turbo/lua-turbo.initd | 12 |
3 files changed, 33 insertions, 5 deletions
diff --git a/main/lua-turbo/APKBUILD b/main/lua-turbo/APKBUILD index dd51d391fc..de56909d90 100644 --- a/main/lua-turbo/APKBUILD +++ b/main/lua-turbo/APKBUILD @@ -4,7 +4,7 @@ pkgname=lua-turbo _jitver=2.0.4 pkgver=2.0.3 -pkgrel=0 +pkgrel=1 pkgdesc="a framework built for LuaJIT 2 and Linux" url="http://www.turbolua.org/" arch="all" @@ -14,7 +14,9 @@ depends_dev="" makedepends="$depends_dev openssl-dev" install="" subpackages="" -source="$pkgname-$pkgver.tar.gz::https://github.com/kernelsauce/turbo/archive/v$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/kernelsauce/turbo/archive/v$pkgver.tar.gz + ${pkgname}.initd + ${pkgname}.confd" _builddir="$srcdir/turbo-$pkgver" @@ -55,8 +57,18 @@ build() { package() { cd "$_builddir" make PREFIX="$pkgdir"/usr install || return 1 + install -Dm 755 "$srcdir"/${pkgname}.initd \ + $pkgdir/etc/init.d/$pkgname || return 1 + install -Dm 644 "$srcdir"/${pkgname}.confd \ + $pkgdir/etc/conf.d/$pkgname || return 1 } -md5sums="2e701b97838dcee8ebbd1c4d4a286a91 lua-turbo-2.0.3.tar.gz" -sha256sums="4c4d8367d68319974dc4a48f0e65930eca20a02ff9694c4947a9be14ee95cdc9 lua-turbo-2.0.3.tar.gz" -sha512sums="339fd95e0dda393d845fe2dc53e65936a7648f21e543ebdd88435f171791c48b4e281ed6702849c70e5b5bf3b117a99dffe1c1aa9553ebd8471c9ee535820533 lua-turbo-2.0.3.tar.gz" +md5sums="2e701b97838dcee8ebbd1c4d4a286a91 lua-turbo-2.0.3.tar.gz +61c475d79bef1c65d9913e7c8fbfc9e3 lua-turbo.initd +321fe55bbd0b124b65339ad22823eda0 lua-turbo.confd" +sha256sums="4c4d8367d68319974dc4a48f0e65930eca20a02ff9694c4947a9be14ee95cdc9 lua-turbo-2.0.3.tar.gz +379fe987aaab428051cf6ab4f3b9246b0ce29e09b0dee0b74a7b6c85b3e14629 lua-turbo.initd +9796bf17f8971440453b636f4fe2f132cbceea0ca091fe1165be274310746f4b lua-turbo.confd" +sha512sums="339fd95e0dda393d845fe2dc53e65936a7648f21e543ebdd88435f171791c48b4e281ed6702849c70e5b5bf3b117a99dffe1c1aa9553ebd8471c9ee535820533 lua-turbo-2.0.3.tar.gz +2e91d5dda33b4bf09667fd23c80a471e93605125a820c440c2b1b022b8bce6ab065493473b153f1fa1863e9655f6413dbe42dc983260da4ed8bee3b2e3743ec2 lua-turbo.initd +3d2816738a2ee615bb6523b6b0aff12a51062e56ade5dbaa4b1b63afda8dce0a532c099b8a03fe67d589058ac8a7d49434a68fb28d93b167a56c56acc7596fdb lua-turbo.confd" diff --git a/main/lua-turbo/lua-turbo.confd b/main/lua-turbo/lua-turbo.confd new file mode 100644 index 0000000000..d28f5893c4 --- /dev/null +++ b/main/lua-turbo/lua-turbo.confd @@ -0,0 +1,4 @@ +# Set the full path to the turbo script +TURBO_SCRIPT="" +TURBO_USER="nobody" +TURBO_GROUP="nobody" diff --git a/main/lua-turbo/lua-turbo.initd b/main/lua-turbo/lua-turbo.initd new file mode 100644 index 0000000000..6da1ffd79b --- /dev/null +++ b/main/lua-turbo/lua-turbo.initd @@ -0,0 +1,12 @@ +#!/sbin/openrc-run + +name="Turbo Lua" +command="/usr/bin/luajit" +command_args="${TURBO_SCRIPT}" +pidfile="/var/run/turbo.pid" +start_stop_daemon_args="-u ${TURBO_USER} -g ${TURBO_GROUP}" +command_background="yes" + +depend() { + need net +} |