Skip to content

Commit

Permalink
New package: rustypaste-0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-jo committed Mar 31, 2023
1 parent 8c6ec73 commit 2f3816f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions srcpkgs/rustypaste/files/rustypaste/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
export CONFIG=${CONFIG:-/etc/rustypaste/config.toml}
cd /var/lib/rustypaste
exec chpst -u _rustypaste:_rustypaste rustypaste
27 changes: 27 additions & 0 deletions srcpkgs/rustypaste/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'rustypaste'
pkgname=rustypaste
version=0.8.4
revision=1
build_style=cargo
make_check_args="-- --test-threads 1"
short_desc="Minimal file upload/pastebin service"
maintainer="Lukas Jordan <dev@lukasjordan.com>"
license="MIT"
homepage="https://github.com/orhun/rustypaste"
changelog="https://raw.githubusercontent.com/orhun/rustypaste-cli/master/CHANGELOG.md"
distfiles="https://github.com/orhun/rustypaste-cli/archive/refs/tags/v${version}.tar.gz"
checksum=ccdfa0ae412f25b3ea8e3756ff8d8c0ecfee1332b3bc2e584899914056ed2e2d
conf_files="/etc/rustypaste/config.toml"

system_accounts="_rustypaste"
_rustypaste_homedir="/var/lib/rustypaste"
_rustypaste_descr="Minimal file upload/pastebin service"

make_dirs="/var/lib/rustypaste 0750 _rustypaste _rustypaste"

post_install() {
vinstall config.toml 644 etc/rustypaste
vlicense LICENSE
vdoc README.md
vsv rustypaste
}

0 comments on commit 2f3816f

Please sign in to comment.