aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/vlmcsd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-01-03 10:22:35 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2017-01-03 10:22:41 +0100
commit4dd914f90425cf71e54f9f75e7ed9ab7887d39d0 (patch)
tree8fcd8f104711b9ff1fcf75734ce97becd2f2396b /non-free/vlmcsd
parent01157f54b9b99d228bed8f3fabae1eae5796f7f9 (diff)
downloadaports-4dd914f90425cf71e54f9f75e7ed9ab7887d39d0.tar.bz2
aports-4dd914f90425cf71e54f9f75e7ed9ab7887d39d0.tar.xz
testing/vlmcsd: move to non-free due to missing license
Diffstat (limited to 'non-free/vlmcsd')
-rw-r--r--non-free/vlmcsd/APKBUILD55
-rw-r--r--non-free/vlmcsd/config.patch20
-rw-r--r--non-free/vlmcsd/vlmcsd.initd15
-rw-r--r--non-free/vlmcsd/vlmcsd.pre-install6
4 files changed, 96 insertions, 0 deletions
diff --git a/non-free/vlmcsd/APKBUILD b/non-free/vlmcsd/APKBUILD
new file mode 100644
index 0000000000..0602a1e15b
--- /dev/null
+++ b/non-free/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/non-free/vlmcsd/config.patch b/non-free/vlmcsd/config.patch
new file mode 100644
index 0000000000..fc2b479f0e
--- /dev/null
+++ b/non-free/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/non-free/vlmcsd/vlmcsd.initd b/non-free/vlmcsd/vlmcsd.initd
new file mode 100644
index 0000000000..ff524bd74f
--- /dev/null
+++ b/non-free/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/non-free/vlmcsd/vlmcsd.pre-install b/non-free/vlmcsd/vlmcsd.pre-install
new file mode 100644
index 0000000000..622fd09217
--- /dev/null
+++ b/non-free/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