Compare commits
3 commits
8c0ab63c3f
...
d658653b67
Author | SHA1 | Date | |
---|---|---|---|
d658653b67 | |||
eb08c76520 | |||
fce0ac96cc |
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[submodule "makedeb"]
|
||||||
|
path = makedeb
|
||||||
|
url = https://cgit.leafee98.com/makedeb.git/
|
||||||
|
branch = main
|
32
dufs/DEBBUILD
Normal file
32
dufs/DEBBUILD
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#/usr/bin/env bash
|
||||||
|
|
||||||
|
pkgname="dufs"
|
||||||
|
pkgver="0.33.0"
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A file server that supports static serving, uploading, searching, accessing control, webdav..."
|
||||||
|
url="https://github.com/sigoden/dufs"
|
||||||
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
|
|
||||||
|
arch="x86_64"
|
||||||
|
platform="unknown-linux-musl"
|
||||||
|
|
||||||
|
|
||||||
|
source=(
|
||||||
|
"dufs-v${pkgver}-${arch}-${platform}.tar.gz::https://github.com/sigoden/dufs/releases/download/v${pkgver}/dufs-v${pkgver}-${arch}-${platform}.tar.gz"
|
||||||
|
"dufs.service::materials/dufs.service"
|
||||||
|
)
|
||||||
|
|
||||||
|
function package {
|
||||||
|
install -Dm755 "${srcdir}/dufs" "${pkgdir}/usr/local/bin/dufs"
|
||||||
|
install -Dm644 "${srcdir}/dufs.service" "${pkgdir}/usr/lib/systemd/system/dufs.service"
|
||||||
|
}
|
||||||
|
|
||||||
|
function debian_postinst {
|
||||||
|
cat << EOF
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
useradd --system dufs
|
||||||
|
mkdir -p /srv/dufs
|
||||||
|
chown dufs:dufs -R /srv/dufs
|
||||||
|
systemctl daemon-reload
|
||||||
|
EOF
|
||||||
|
}
|
13
dufs/materials/dufs.service
Normal file
13
dufs/materials/dufs.service
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A simple file server support webdav
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=dufs
|
||||||
|
Group=dufs
|
||||||
|
ExecStart=/usr/local/bin/dufs --auth /@dufs:dufs /srv/dufs
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
33
forgejo/DEBBUILD
Normal file
33
forgejo/DEBBUILD
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#/usr/bin/env bash
|
||||||
|
|
||||||
|
pkgname="forgejo"
|
||||||
|
pkgrel=1
|
||||||
|
pkgver="1.19.0-2"
|
||||||
|
pkgdesc="A painless selfhost git service."
|
||||||
|
url="https://codeberg.org/forgejo/forgejo"
|
||||||
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
|
|
||||||
|
source=(
|
||||||
|
"forgejo-${pkgver}-linux-amd64.xz::https://codeberg.org/attachments/5f7f9d36-b85e-40db-b390-9bf39acbbbc5"
|
||||||
|
"forgejo.service::materials/forgejo.service"
|
||||||
|
)
|
||||||
|
|
||||||
|
function package {
|
||||||
|
install -Dm755 "${srcdir}/forgejo-${pkgver}-linux-amd64" "${pkgdir}/usr/bin/forgejo"
|
||||||
|
install -Dm644 "${srcdir}/forgejo.service" "${pkgdir}/usr/lib/systemd/system/forgejo.service"
|
||||||
|
}
|
||||||
|
|
||||||
|
function debian_postinst {
|
||||||
|
cat << EOF
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mkdir -p /var/lib/forgejo
|
||||||
|
mkdir -p /etc/forgejo
|
||||||
|
touch /etc/forgejo/app.ini
|
||||||
|
|
||||||
|
useradd --system git
|
||||||
|
chown -R git:git /var/lib/forgejo /etc/forgejo /etc/forgejo/app.ini
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
EOF
|
||||||
|
}
|
13
forgejo/materials/forgejo.service
Normal file
13
forgejo/materials/forgejo.service
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A painless self Git service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
|
||||||
|
User=git
|
||||||
|
Group=git
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/forgejo --custom-path /etc/forgejo --config /etc/forgejo/app.ini --work-path /var/lib/forgejo
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
1
makedeb
Submodule
1
makedeb
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 29574d90b49e716c0e53c821db38a4e5197a198a
|
Loading…
Reference in a new issue