This commit is contained in:
parent
82734470d2
commit
6c1b8792da
34
packages/bin/remark42-bin/DEBBUILD
Normal file
34
packages/bin/remark42-bin/DEBBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
pkgname="remark42"
|
||||
pkgver=1.12.0
|
||||
pkgrel=1
|
||||
arch="amd64"
|
||||
pkgcommit=""
|
||||
section="utils"
|
||||
priority="optional"
|
||||
pkgdesc="A comment engine"
|
||||
url="https://github.com/umputun/remark42"
|
||||
maintainer="Leafee98 <me@leafee98.com>"
|
||||
|
||||
_archive_name="remark42.linux-amd64"
|
||||
|
||||
source=(
|
||||
"${_archive_name}.tar.gz::https://github.com/umputun/remark42/releases/download/v${pkgver}/${_archive_name}.tar.gz"
|
||||
"remark42.service::materials/remark42.service"
|
||||
)
|
||||
|
||||
function package {
|
||||
install -Dm755 "${srcdir}/${_archive_name}" "${pkgdir}/usr/bin/remark42"
|
||||
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/remark42/LICENSE"
|
||||
install -Dm644 "${srcdir}/README.md" "${pkgdir}/usr/share/doc/remark42/README.md"
|
||||
|
||||
install -Dm644 "${srcdir}/remark42.service" "${pkgdir}/usr/lib/systemd/system/remark42.service"
|
||||
}
|
||||
|
||||
function debian_postinst {
|
||||
cat << EOF
|
||||
touch /etc/default/remark42
|
||||
useradd --systemd remark42
|
||||
EOF
|
||||
}
|
18
packages/bin/remark42-bin/materials/remark42.service
Normal file
18
packages/bin/remark42-bin/materials/remark42.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Remark42 - a commenting system
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=remark42
|
||||
Group=remark42
|
||||
|
||||
EnvironmentFile=/etc/default/remark42
|
||||
ExecStart=/usr/bin/remark42 server
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
LimitNOFILE=1048576
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in a new issue