Compare commits

..

2 commits

Author SHA1 Message Date
leafee98 e7fafb3fb6 fix: gitignore ignore DEBBUILD
All checks were successful
ci/woodpecker/push/build_bin Pipeline was successful
ci/woodpecker/push/build_other Pipeline was successful
2023-08-04 17:34:44 +08:00
leafee98 362c5bf523 add package apt-repo-updater 2023-08-04 17:34:34 +08:00
3 changed files with 40 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,7 +1,7 @@
/secrets.env /secrets.env
/*/* /*/*
!/*/PKGBUILD !/*/DEBBUILD
!/*/materials !/*/materials
!/script/* !/script/*

29
apt-repo-updater/DEBBUILD Normal file
View file

@ -0,0 +1,29 @@
#/usr/bin/env bash
pkgname="apt-repo-updater-git"
pkgver=0.0.1.0.g8a9cb1e
pkgrel=1
arch="all"
pkgcommit=""
section="utils" # https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
priority="optional" # https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities
pkgdesc="monitor a dir and execute reprepro to include new .deb files"
url="https://git.leafee98.com/leafee98/apt-repo-updater"
maintainer="Leafee98 <me@leafee98.com>"
source=(
"apt-repo-updater::git+https://git.leafee98.com/leafee98/apt-repo-updater.git"
"apt-repo-updater.service::materials/apt-repo-updater.service"
)
function pkgver {
(
cd apt-repo-updater
git describe --tags --long | sed 's/^v//;s/-/./g'
)
}
function package {
install -Dm755 "${srcdir}/apt-repo-updater/apt-repo-updater" "${pkgdir}/usr/bin/apt-repo-updater"
install -Dm644 "${srcdir}/apt-repo-updater.service" "${pkgdir}/usr/lib/systemd/system/apt-repo-updater.service"
}

View file

@ -0,0 +1,10 @@
[Unit]
Description=monitor a dir and execute reprepro to include new .deb files
[Service]
# dont just start this service, use your own overwrited service
ExecStart=/usr/bin/apt-repo-updater --work-dir /srv/apt-repo-updater
Restart=on-failure
[Install]
WantedBy=multi-user.target