diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-01-02 15:05:45 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-01-02 15:05:50 +0100 |
commit | 2277b0dcd277f5f8cfecc66b709b555f3a61a4b0 (patch) | |
tree | ff29ce493f74609181f49df2ea302842aceb391a | |
parent | 8b24ae012866fd3053cba0b4aba7b71a1841d7c4 (diff) | |
download | aports-2277b0dcd277f5f8cfecc66b709b555f3a61a4b0.tar.bz2 aports-2277b0dcd277f5f8cfecc66b709b555f3a61a4b0.tar.xz |
testing/vlmcsd: new aport
-rw-r--r-- | testing/vlmcsd/APKBUILD | 55 | ||||
-rw-r--r-- | testing/vlmcsd/config.patch | 20 | ||||
-rw-r--r-- | testing/vlmcsd/vlmcsd.initd | 15 | ||||
-rw-r--r-- | testing/vlmcsd/vlmcsd.pre-install | 6 |
4 files changed, 96 insertions, 0 deletions
diff --git a/testing/vlmcsd/APKBUILD b/testing/vlmcsd/APKBUILD new file mode 100644 index 0000000000..0602a1e15b --- /dev/null +++ b/testing/vlmcsd/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=vlmcsd +pkgver=1107 +pkgrel=0 +pkgdesc="KMS Emulator in C" +url="http://forums.mydigitallife.info/threads/50234" +arch="all" +license="other" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="$pkgname.pre-install" +subpackages="$pkgname-doc" +source="vlmcsd-svn$pkgver.tar.gz::https://github.com/Wind4/vlmcsd/archive/svn$pkgver.tar.gz + $pkgname.initd + config.patch" +builddir="$srcdir/vlmcsd-svn$pkgver" + +build() { + cd "$builddir" + make || return 1 +} + +package() { + cd "$builddir" + install -Dm 755 bin/vlmcsd \ + "$pkgdir"/usr/bin/vlmcsd || return 1 + install -Dm 755 bin/vlmcs \ + "$pkgdir"/usr/bin/vlmcs || return 1 + install -Dm 644 etc/vlmcsd.ini \ + "$pkgdir"/etc/vlmcsd/vlmcsd.ini || return 1 + install -Dm 644 etc/vlmcsd.kmd \ + "$pkgdir"/etc/vlmcsd/vlmcsd.kmd || return 1 + install -Dm 644 man/vlmcs.1 \ + "$pkgdir"/usr/share/man/man1/vlmcs.1 || return 1 + install -Dm 644 man/vlmcsd.7 \ + "$pkgdir"/usr/share/man/man7/vlmcsd.7 || return 1 + install -Dm 644 man/vlmcsd.8 \ + "$pkgdir"/usr/share/man/man8/vlmcsd.8 || return 1 + install -Dm 644 man/vlmcsd.ini.5 \ + "$pkgdir"/usr/share/man/man5/vlmcsd.ini.5 || return 1 + install -Dm 755 "$srcdir"/vlmcsd.initd \ + "$pkgdir"/etc/init.d/vlmcsd || return 1 +} + +md5sums="861acedcf01f7be53915fd5c03b41de7 vlmcsd-svn1107.tar.gz +087b9bd67ff5903dfac0a13d1c3aff65 vlmcsd.initd +4f60f7e8a84fd4d998e4a371b1aaf787 config.patch" +sha256sums="f99d1c4692be0cd897a31a255af454c2972ca31db4f850e95c5d659068081126 vlmcsd-svn1107.tar.gz +e51b0f645570d24095f92784d0d2b3847e5917bd7c9eddb2f4a8baadba57a267 vlmcsd.initd +2c8006d4ce3269ad8f2f78fd28758c88efb9fe03470a2db5614ff0f03c001249 config.patch" +sha512sums="553d84306a03286bffdc6fc8490bf450e6907ce794bcf2040be05f4bf479fa1a8a0ad29900ab6564b870e99cb9ac5b0c40ff96310238aa72f5edc71247d8d154 vlmcsd-svn1107.tar.gz +f22dc88ff03baad52c7fb3eed88d739dfac5a94373401ea2de76f0bb2b9ec63b3a1c298a79c1842e81f92d20f762ead8698cf5aa7183cc3023f95999cb7fdfdb vlmcsd.initd +70d6e11a46d65ecee7f91b64775eed6df105b2b16f986b3d7f483c1b58a8f21ecfbdb0f43d2f48643a49cf36564f4c7dbd6603f7e19ce5f44ee180c8e5065971 config.patch" diff --git a/testing/vlmcsd/config.patch b/testing/vlmcsd/config.patch new file mode 100644 index 0000000000..fc2b479f0e --- /dev/null +++ b/testing/vlmcsd/config.patch @@ -0,0 +1,20 @@ +--- ./src/config.h.orig ++++ ./src/config.h +@@ -61,7 +61,7 @@ + * at a default location. + */ + +- //#define INI_FILE "/etc/vlmcsd.ini" ++ #define INI_FILE "/etc/vlmcsd/vlmcsd.ini" + + #endif // INI_FILE + +@@ -75,7 +75,7 @@ + * at a custom default location. + */ + +- //#define DATA_FILE "/etc/vlmcsd.kmd" ++ #define DATA_FILE "/etc/vlmcsd/vlmcsd.kmd" + + #endif // DATA_FILE + diff --git a/testing/vlmcsd/vlmcsd.initd b/testing/vlmcsd/vlmcsd.initd new file mode 100644 index 0000000000..ff524bd74f --- /dev/null +++ b/testing/vlmcsd/vlmcsd.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run + +command=/usr/bin/vlmcsd +pidfile=/run/vlmcsd/vlmcsd.pid +command_args="-l syslog -p ${pidfile}" +name=vlmcsd +start_stop_daemon_args="--user vlmcsd --group vlmcsd" + +depend() { + need networking +} + +start_pre() { + checkpath -d -o vlmcsd:vlmcsd -m 0775 ${pidfile%/*} +} diff --git a/testing/vlmcsd/vlmcsd.pre-install b/testing/vlmcsd/vlmcsd.pre-install new file mode 100644 index 0000000000..622fd09217 --- /dev/null +++ b/testing/vlmcsd/vlmcsd.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S vlmcsd 2>/dev/null +adduser -S -D -H -s /sbin/nologin -G vlmcsd -g vlmcsd vlmcsd 2>/dev/null + +exit 0 |