update vlmcsd

This commit is contained in:
nyyu 2020-05-08 10:35:20 +02:00
parent 69f93c80ab
commit fc00abac00
2 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
pkgname=vlmcsd pkgname=vlmcsd
pkgver=svn1111 pkgver=svn1113
pkgrel=1 pkgrel=1
pkgdesc="KMS Emulator in C" pkgdesc="KMS Emulator in C"
arch=('i686' 'x86_64' 'armv6h') arch=('i686' 'x86_64' 'armv6h')
@ -7,18 +7,20 @@ url="http://forums.mydigitallife.info/threads/50234"
license=('custom') license=('custom')
source=("https://github.com/Wind4/vlmcsd/archive/${pkgver}.tar.gz" source=("https://github.com/Wind4/vlmcsd/archive/${pkgver}.tar.gz"
"${pkgname}.service") "${pkgname}.service")
sha256sums=('ee9ecb67c3f69896b050ffcceda84ba90c084ee5d367d8761491942520e599b0' sha256sums=('62f55c48f5de1249c2348ab6b96dabbe7e38899230954b0c8774efb01d9c42cc'
'a045c1af8cff956117feaf7b4702b4167f27c103f94dd71090a2ef566cd7080f') 'f0a462cc15f1d9afa18a92a6434d0b0ed68349ba69f878d0a8c84840b5fd4f7f')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
make -f GNUmakefile VLMCSD_VERSION=${pkgver} CFLAGS="-DINCLUDE_BETAS" make -f GNUmakefile VLMCSD_VERSION=${pkgver}
} }
package() { package() {
install -Dm644 ${source[1]} "${pkgdir}"/usr/lib/systemd/system/${source[1]} install -Dm644 ${source[1]} "${pkgdir}"/usr/lib/systemd/system/${source[1]}
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 bin/${pkgname} "${pkgdir}"/usr/bin/${pkgname} install -Dm755 bin/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
install -Dm644 man/vlmcsd.7 "${pkgdir}"/usr/share/man/man7/vlmcsd.7 install -Dm644 etc/${pkgname}.ini "${pkgdir}"/etc/${pkgname}.ini
install -Dm644 man/vlmcsd.8 "${pkgdir}"/usr/share/man/man8/vlmcsd.8 install -Dm644 etc/${pkgname}.kmd "${pkgdir}"/etc/${pkgname}.kmd
install -Dm644 man/${pkgname}.7 "${pkgdir}"/usr/share/man/man7/${pkgname}.7
install -Dm644 man/${pkgname}.8 "${pkgdir}"/usr/share/man/man8/${pkgname}.8
} }

View File

@ -3,7 +3,7 @@ Description=KMS Server Emulator
After=network.target After=network.target
[Service] [Service]
ExecStart=/usr/bin/vlmcsd -D -C 1036 -P 3128 -l syslog -v ExecStart=/usr/bin/vlmcsd -D -C 1033 -P 3128 -l syslog -v
User=nobody User=nobody
Group=nobody Group=nobody