Date: Monday, April 11, 2022 @ 21:27:18 Author: grawlinson Revision: 1185896
archrelease: copy trunk to community-x86_64 Added: soft-serve/repos/community-x86_64/PKGBUILD (from rev 1185895, soft-serve/trunk/PKGBUILD) soft-serve/repos/community-x86_64/soft-serve.conf (from rev 1185895, soft-serve/trunk/soft-serve.conf) soft-serve/repos/community-x86_64/systemd.service (from rev 1185895, soft-serve/trunk/systemd.service) soft-serve/repos/community-x86_64/sysusers.conf (from rev 1185895, soft-serve/trunk/sysusers.conf) soft-serve/repos/community-x86_64/tmpfiles.conf (from rev 1185895, soft-serve/trunk/tmpfiles.conf) Deleted: soft-serve/repos/community-x86_64/PKGBUILD soft-serve/repos/community-x86_64/soft-serve.conf soft-serve/repos/community-x86_64/systemd.service soft-serve/repos/community-x86_64/sysusers.conf soft-serve/repos/community-x86_64/tmpfiles.conf -----------------+ PKGBUILD | 188 +++++++++++++++++++++++++++--------------------------- soft-serve.conf | 10 +- systemd.service | 94 +++++++++++++-------------- sysusers.conf | 2 tmpfiles.conf | 2 5 files changed, 148 insertions(+), 148 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-11 21:26:10 UTC (rev 1185895) +++ PKGBUILD 2022-04-11 21:27:18 UTC (rev 1185896) @@ -1,94 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Contributor: Christian Muehlhaeuser <muesli at gmail dot com> - -pkgname=soft-serve -pkgver=0.2.3 -pkgrel=1 -pkgdesc="A self-hosted Git server for the command line" -arch=('x86_64') -url="https://github.com/charmbracelet/soft-serve" -license=('MIT') -depends=('glibc') -makedepends=('git' 'go') -backup=('etc/soft-serve.conf') -options=('!lto') -_commit='192c4d92f8b8c9963fe62819dce2f88c21db261b' # v0.2.3 -source=( - "git+$url.git#commit=$_commit" - 'soft-serve.conf' - 'systemd.service' - 'sysusers.conf' - 'tmpfiles.conf' -) -sha512sums=('SKIP' - 'aabe56fe8a242724e25e5c30412802fddcd377b54093c00a2581a87031d8b04b797561d612412caf56aa413f29495ff548af7cac83ff2c8bdbab946b208fab58' - '1748823790423d23b0d4abaee3078d4908c197142145f4d703c13ce66c83a982ef38e351d4bca513734e74e2b76191ed007c64d3b658b1208b156ba81b0a893c' - '81fd8d61cdadb194a224eb3d3f293968fd9d78e0488399eff933f2b376eb927e29d8d083c4d76b92eb7ef313a513023866dc80f651ff5d1f5d2a1573fd4f02e9' - 'ece4b43029ac22bbac3b2afebab134df5781d92deed5ef24a96d720da3a0f1a033f0cf3a4a5f6ab40d379f5fb4d10730e8873b1ef94943876cdca8f209b89a59') -b2sums=('SKIP' - '193864256a1330347f1f9c015cad82a38fa2b3fcc43bfd37c6926d0444f8c5a25463c357a13c7842db54cc8ebaf503845511a9b05f5e4f7526511b6caddf323c' - '85ed30ee809aaffe05d6784adc6478d564be51a6115c4ecbbf176ca9022008bce34269af75e151e1b8cf3ebd67f879749d4f3e2eee992ac43026736fdc0ccec9' - '7e8593e368507d96bdfd7cf8a4b73bb02f473deba3d99017101487fb0843161e14e929f5641f66c1bec015aa4f4505708d26453a7d0bcc1f23a4daa47e009393' - '9866f155a948357582b464e4a5ea79464ed06c4067add77c444378f4bfc7aab57e7afc455e23a51725e1c0d2ceecda087d811dae3f49178e07ae60afc7361b8b') - -pkgver() { - cd "$pkgname" - - git describe --tags | sed 's/^v//' -} - -prepare() { - cd "$pkgname" - - # create directory for build output - mkdir build - - # download dependencies - go mod download -} - -build() { - cd "$pkgname" - - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - - go build -v \ - -trimpath \ - -buildmode=pie \ - -mod=readonly \ - -modcacherw \ - -ldflags "-linkmode external -extldflags $LDFLAGS \ - -X main.Version=$pkgver \ - -X main.CommitSHA=$_commit" \ - -o build \ - ./cmd/... -} - -check() { - cd "$pkgname" - - go test -v ./... -} - -package() { - # systemd integration - install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service" - install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" - install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" - install -vDm644 soft-serve.conf -t "$pkgdir/etc" - - cd "$pkgname" - - # binary - install -vDm755 -t "$pkgdir/usr/bin" build/soft - - # man page - install -vDm644 -t "$pkgdir/usr/share/man/man1" cmd/soft/soft.1 - - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE -} - -# vim:set ts=2 sw=2 et: Copied: soft-serve/repos/community-x86_64/PKGBUILD (from rev 1185895, soft-serve/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-11 21:27:18 UTC (rev 1185896) @@ -0,0 +1,94 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Contributor: Christian Muehlhaeuser <muesli at gmail dot com> + +pkgname=soft-serve +pkgver=0.3.0 +pkgrel=1 +pkgdesc="A self-hosted Git server for the command line" +arch=('x86_64') +url="https://github.com/charmbracelet/soft-serve" +license=('MIT') +depends=('glibc') +makedepends=('git' 'go') +backup=('etc/soft-serve.conf') +options=('!lto') +_commit='d3669af2fb497c638db3885af61afba048156a69' +source=( + "git+$url.git#commit=$_commit" + 'soft-serve.conf' + 'systemd.service' + 'sysusers.conf' + 'tmpfiles.conf' +) +sha512sums=('SKIP' + 'aabe56fe8a242724e25e5c30412802fddcd377b54093c00a2581a87031d8b04b797561d612412caf56aa413f29495ff548af7cac83ff2c8bdbab946b208fab58' + '1748823790423d23b0d4abaee3078d4908c197142145f4d703c13ce66c83a982ef38e351d4bca513734e74e2b76191ed007c64d3b658b1208b156ba81b0a893c' + '81fd8d61cdadb194a224eb3d3f293968fd9d78e0488399eff933f2b376eb927e29d8d083c4d76b92eb7ef313a513023866dc80f651ff5d1f5d2a1573fd4f02e9' + 'ece4b43029ac22bbac3b2afebab134df5781d92deed5ef24a96d720da3a0f1a033f0cf3a4a5f6ab40d379f5fb4d10730e8873b1ef94943876cdca8f209b89a59') +b2sums=('SKIP' + '193864256a1330347f1f9c015cad82a38fa2b3fcc43bfd37c6926d0444f8c5a25463c357a13c7842db54cc8ebaf503845511a9b05f5e4f7526511b6caddf323c' + '85ed30ee809aaffe05d6784adc6478d564be51a6115c4ecbbf176ca9022008bce34269af75e151e1b8cf3ebd67f879749d4f3e2eee992ac43026736fdc0ccec9' + '7e8593e368507d96bdfd7cf8a4b73bb02f473deba3d99017101487fb0843161e14e929f5641f66c1bec015aa4f4505708d26453a7d0bcc1f23a4daa47e009393' + '9866f155a948357582b464e4a5ea79464ed06c4067add77c444378f4bfc7aab57e7afc455e23a51725e1c0d2ceecda087d811dae3f49178e07ae60afc7361b8b') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # create directory for build output + mkdir build + + # download dependencies + go mod download +} + +build() { + cd "$pkgname" + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + + go build -v \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags $LDFLAGS \ + -X main.Version=$pkgver \ + -X main.CommitSHA=$_commit" \ + -o build \ + ./cmd/... +} + +check() { + cd "$pkgname" + + go test -v ./... +} + +package() { + # systemd integration + install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service" + install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" + install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" + install -vDm644 soft-serve.conf -t "$pkgdir/etc" + + cd "$pkgname" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" build/soft + + # man page + install -vDm644 -t "$pkgdir/usr/share/man/man1" cmd/soft/soft.1 + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} + +# vim:set ts=2 sw=2 et: Deleted: soft-serve.conf =================================================================== --- soft-serve.conf 2022-04-11 21:26:10 UTC (rev 1185895) +++ soft-serve.conf 2022-04-11 21:27:18 UTC (rev 1185896) @@ -1,5 +0,0 @@ -#SOFT_SERVE_PORT=23231 -#SOFT_SERVE_HOST=0.0.0.0 -#SOFT_SERVE_KEY_PATH=.ssh/soft_serve_server_ed25519 -#SOFT_SERVE_REPO_PATH=.repos -#SOFT_SERVE_INITIAL_ADMIN_KEY="" Copied: soft-serve/repos/community-x86_64/soft-serve.conf (from rev 1185895, soft-serve/trunk/soft-serve.conf) =================================================================== --- soft-serve.conf (rev 0) +++ soft-serve.conf 2022-04-11 21:27:18 UTC (rev 1185896) @@ -0,0 +1,5 @@ +#SOFT_SERVE_PORT=23231 +#SOFT_SERVE_HOST=0.0.0.0 +#SOFT_SERVE_KEY_PATH=.ssh/soft_serve_server_ed25519 +#SOFT_SERVE_REPO_PATH=.repos +#SOFT_SERVE_INITIAL_ADMIN_KEY="" Deleted: systemd.service =================================================================== --- systemd.service 2022-04-11 21:26:10 UTC (rev 1185895) +++ systemd.service 2022-04-11 21:27:18 UTC (rev 1185896) @@ -1,47 +0,0 @@ -[Unit] -Description=Soft Serve git server 🍦 -Documentation=https://github.com/charmbracelet/soft-serve -Requires=network-online.target -After=network-online.target - -[Service] -Type=simple -User=soft-serve -Group=soft-serve -Restart=always -RestartSec=1 -ExecStart=/usr/bin/soft -EnvironmentFile=-/etc/soft-serve.conf -WorkingDirectory=/var/lib/soft-serve - -# Hardening -ReadWritePaths=/var/lib/soft-serve -UMask=0027 -NoNewPrivileges=true -LimitNOFILE=1048576 -ProtectSystem=strict -ProtectHome=true -PrivateUsers=yes -PrivateTmp=true -PrivateDevices=true -ProtectHostname=true -ProtectClock=true -ProtectKernelTunables=true -ProtectKernelModules=true -ProtectKernelLogs=true -ProtectControlGroups=true -RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 -RestrictNamespaces=true -LockPersonality=true -MemoryDenyWriteExecute=true -RestrictRealtime=true -RestrictSUIDSGID=true -RemoveIPC=true -CapabilityBoundingSet= -AmbientCapabilities= -SystemCallFilter=@system-service -SystemCallFilter=~@privileged @resources -SystemCallArchitectures=native - -[Install] -WantedBy=multi-user.target Copied: soft-serve/repos/community-x86_64/systemd.service (from rev 1185895, soft-serve/trunk/systemd.service) =================================================================== --- systemd.service (rev 0) +++ systemd.service 2022-04-11 21:27:18 UTC (rev 1185896) @@ -0,0 +1,47 @@ +[Unit] +Description=Soft Serve git server 🍦 +Documentation=https://github.com/charmbracelet/soft-serve +Requires=network-online.target +After=network-online.target + +[Service] +Type=simple +User=soft-serve +Group=soft-serve +Restart=always +RestartSec=1 +ExecStart=/usr/bin/soft +EnvironmentFile=-/etc/soft-serve.conf +WorkingDirectory=/var/lib/soft-serve + +# Hardening +ReadWritePaths=/var/lib/soft-serve +UMask=0027 +NoNewPrivileges=true +LimitNOFILE=1048576 +ProtectSystem=strict +ProtectHome=true +PrivateUsers=yes +PrivateTmp=true +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 +RestrictNamespaces=true +LockPersonality=true +MemoryDenyWriteExecute=true +RestrictRealtime=true +RestrictSUIDSGID=true +RemoveIPC=true +CapabilityBoundingSet= +AmbientCapabilities= +SystemCallFilter=@system-service +SystemCallFilter=~@privileged @resources +SystemCallArchitectures=native + +[Install] +WantedBy=multi-user.target Deleted: sysusers.conf =================================================================== --- sysusers.conf 2022-04-11 21:26:10 UTC (rev 1185895) +++ sysusers.conf 2022-04-11 21:27:18 UTC (rev 1185896) @@ -1 +0,0 @@ -u soft-serve - "Soft Serve daemon user" /var/lib/soft-serve Copied: soft-serve/repos/community-x86_64/sysusers.conf (from rev 1185895, soft-serve/trunk/sysusers.conf) =================================================================== --- sysusers.conf (rev 0) +++ sysusers.conf 2022-04-11 21:27:18 UTC (rev 1185896) @@ -0,0 +1 @@ +u soft-serve - "Soft Serve daemon user" /var/lib/soft-serve Deleted: tmpfiles.conf =================================================================== --- tmpfiles.conf 2022-04-11 21:26:10 UTC (rev 1185895) +++ tmpfiles.conf 2022-04-11 21:27:18 UTC (rev 1185896) @@ -1 +0,0 @@ -d /var/lib/soft-serve 0750 soft-serve soft-serve Copied: soft-serve/repos/community-x86_64/tmpfiles.conf (from rev 1185895, soft-serve/trunk/tmpfiles.conf) =================================================================== --- tmpfiles.conf (rev 0) +++ tmpfiles.conf 2022-04-11 21:27:18 UTC (rev 1185896) @@ -0,0 +1 @@ +d /var/lib/soft-serve 0750 soft-serve soft-serve