mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 17:33:03 +02:00
PopCorn: update to 0.3.
This commit is contained in:
parent
ba60bdb505
commit
03f23200b0
3 changed files with 19 additions and 5 deletions
2
srcpkgs/PopCorn/files/pqueryd/conf
Normal file
2
srcpkgs/PopCorn/files/pqueryd/conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
PORT=8002
|
||||||
|
DATA_DIR=/srv/www/popcorn/
|
5
srcpkgs/PopCorn/files/pqueryd/run
Normal file
5
srcpkgs/PopCorn/files/pqueryd/run
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -r ./conf ] && . ./conf
|
||||||
|
|
||||||
|
exec chpst -u _popcorn:_popcorn pqueryd --checkpoint_enabled=false --port $PORT --data_dir $DATA_DIR
|
|
@ -1,10 +1,13 @@
|
||||||
# Template file for 'PopCorn'
|
# Template file for 'PopCorn'
|
||||||
pkgname=PopCorn
|
pkgname=PopCorn
|
||||||
version=0.2.1
|
version=0.3
|
||||||
revision=2
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/the-maldridge/popcorn"
|
go_import_path="github.com/the-maldridge/popcorn"
|
||||||
go_package="${go_import_path}/cmd/popcorn ${go_import_path}/cmd/popcornctl ${go_import_path}/cmd/statrepo"
|
go_package="${go_import_path}/cmd/popcorn
|
||||||
|
${go_import_path}/cmd/popcornctl
|
||||||
|
${go_import_path}/cmd/statrepo
|
||||||
|
${go_import_path}/cmd/pqueryd"
|
||||||
hostmakedepends="dep"
|
hostmakedepends="dep"
|
||||||
depends="snooze"
|
depends="snooze"
|
||||||
short_desc="Package statistics system"
|
short_desc="Package statistics system"
|
||||||
|
@ -12,7 +15,7 @@ maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/the-maldridge/PopCorn"
|
homepage="https://github.com/the-maldridge/PopCorn"
|
||||||
distfiles="https://github.com/the-maldridge/PopCorn/archive/v${version}.tar.gz"
|
distfiles="https://github.com/the-maldridge/PopCorn/archive/v${version}.tar.gz"
|
||||||
checksum=9ce2ade5ebae5bb31443423b41ab5d6355a2ac3d65cba1d36c3a5616f323a4a9
|
checksum=5e61970c3ba5fd83f6b5b86c30264213461f4a5af8aacd2ba1757333ece05260
|
||||||
|
|
||||||
system_accounts="_popcorn"
|
system_accounts="_popcorn"
|
||||||
_popcorn_homedir="/var/lib/popcorn"
|
_popcorn_homedir="/var/lib/popcorn"
|
||||||
|
@ -30,16 +33,20 @@ post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vsv popcorn
|
vsv popcorn
|
||||||
vsv statrepo
|
vsv statrepo
|
||||||
|
vsv pqueryd
|
||||||
}
|
}
|
||||||
|
|
||||||
PopCorn-Server_package() {
|
PopCorn-Server_package() {
|
||||||
short_desc+=" - Server"
|
short_desc+=" - Server"
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
conf_files="/etc/sv/statrepo/conf"
|
conf_files="/etc/sv/statrepo/conf
|
||||||
|
/etc/sv/pqueryd/conf"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/statrepo
|
vmove usr/bin/statrepo
|
||||||
vmove usr/bin/popcornctl
|
vmove usr/bin/popcornctl
|
||||||
|
vmove usr/bin/pqueryd
|
||||||
|
|
||||||
vmove etc/sv/statrepo
|
vmove etc/sv/statrepo
|
||||||
|
vmove etc/sv/pqueryd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue