-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc2c5f1
commit 78baca2
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
exec 2>&1 | ||
[ -r ./conf ] && . ./conf | ||
export LEMMY_CONFIG_LOCATION=${LEMMY_CONFIG_LOCATION:-/etc/lemmy/lemmy.hjson} | ||
cd /var/lib/lemmy || exit 1 | ||
exec chpst -u _lemmy:_lemmy lemmy_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Template file for 'lemmy' | ||
pkgname=lemmy | ||
version=0.18.3 | ||
revision=1 | ||
_translation_commit=153351ad2f2fbd03ca4c0b353a84f9d622a5ab91 | ||
build_style=cargo | ||
configure_args="--features=embed-pictrs" | ||
hostmakedepends="pkg-config protobuf" | ||
makedepends="openssl-devel libpqxx-devel libzstd-devel" | ||
depends="ImageMagick ffmpeg exiftool" | ||
short_desc="Link aggregator and forum for the fediverse" | ||
maintainer="Joel Beckmeyer <[email protected]>" | ||
license="AGPL-3.0-only" | ||
homepage="https://join-lemmy.org/" | ||
changelog="https://raw.githubusercontent.com/LemmyNet/lemmy/main/RELEASES.md" | ||
distfiles="https://github.com/LemmyNet/lemmy/archive/refs/tags/${version}.tar.gz | ||
https://github.com/LemmyNet/lemmy-translations/archive/${_translation_commit}.tar.gz" | ||
checksum="cc649b92390c86a95de625912f8515b09e3c0579df8c5bf5d0d8e02109783ecf | ||
a91bc15aeb47d6612f7a73249c51f2bb8658f0ab460184e36a179ac1f02bcc6b" | ||
system_accounts="_lemmy" | ||
make_dirs="/var/lib/lemmy 0700 _lemmy _lemmy" | ||
_lemmy_homedir="/var/lib/lemmy" | ||
conf_files="/etc/lemmy/lemmy.hjson" | ||
|
||
post_extract() { | ||
cp -r lemmy-${version}/. . | ||
cp -r lemmy-translations-${_translation_commit}/. crates/utils/translations | ||
rm -rf lemmy-${version} lemmy-translations-${_translation_commit} | ||
} | ||
|
||
post_patch() { | ||
vsed -i "s/unknown version/$version/" crates/utils/src/version.rs | ||
} | ||
|
||
post_install() { | ||
vsconf config/defaults.hjson | ||
vinstall config/config.hjson 644 etc/lemmy lemmy.hjson | ||
vsv lemmy | ||
vlicense LICENSE | ||
} |