v++, also actions
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m22s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m22s
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
3eb9cc5cc3
commit
d7847658e8
33
.gitea/workflows/build-package.yaml
Normal file
33
.gitea/workflows/build-package.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: autobuilder
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- /home/builder/public/spark-extra/import:/import
|
||||||
|
steps:
|
||||||
|
- name: Show job info
|
||||||
|
run: |
|
||||||
|
echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
|
echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Link the workdir into /buildroot # for script compatability with the old builder.
|
||||||
|
run: |
|
||||||
|
ln -vfs ${{ gitea.workspace }} /buildroot
|
||||||
|
- name: Build the package
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}
|
||||||
|
/build -s --noconfirm
|
||||||
|
# - name: Upload artifacts
|
||||||
|
# uses: actions/upload-artifact@v3
|
||||||
|
# with:
|
||||||
|
# name: package
|
||||||
|
# path: ./*.pkg.tar.zst
|
||||||
|
- name: Put the packages into the import dir
|
||||||
|
run: cp -v ./*.pkg.tar.zst /import
|
||||||
|
- run: echo "This job's status is ${{ job.status }}."
|
42
PKGBUILD
42
PKGBUILD
|
@ -1,34 +1,46 @@
|
||||||
# vim: ft=sh
|
# Author: Kevin MacMartin <prurigro@gmail.com>
|
||||||
# % Trigger: 32489271948127389 %
|
# Imported for use on https://code.fleshless.org
|
||||||
|
|
||||||
pkgname=ircd-ratbox
|
pkgname=ircd-ratbox
|
||||||
pkgver=3.0.10
|
pkgver=3.0.10
|
||||||
pkgrel=3
|
pkgrel=3
|
||||||
pkgdesc='An advanced, stable and fast ircd'
|
pkgdesc='An advanced, stable and fast ircd'
|
||||||
url='http://www.ratbox.org'
|
url='http://www.ratbox.org'
|
||||||
license=( 'GPL' )
|
license=('GPL')
|
||||||
depends=( 'openssl' 'sqlite' 'libtool' )
|
depends=('openssl' 'sqlite' 'libtool')
|
||||||
arch=( 'i686' 'x86_64' 'arm' 'armv6h' 'armv7h' )
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
||||||
backup=( "etc/$pkgname/ircd.motd" )
|
backup=("etc/$pkgname/ircd.motd")
|
||||||
options=( '!makeflags' )
|
install="$pkgname.install"
|
||||||
|
|
||||||
source=( "http://www.ratbox.org/download/$pkgname-$pkgver.tar.bz2" )
|
source=(
|
||||||
|
"http://www.ratbox.org/download/$pkgname-$pkgver.tar.bz2"
|
||||||
|
"$pkgname.service"
|
||||||
|
"$pkgname.conf"
|
||||||
|
)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname-$pkgver"
|
||||||
./configure --prefix=/usr/share/"$pkgname" \
|
|
||||||
--with-confdir=/etc/"$pkgname" \
|
./configure --prefix="/usr/share/$pkgname" \
|
||||||
--with-logdir=/var/log/"$pkgname" \
|
--with-confdir="/etc/$pkgname" \
|
||||||
|
--with-logdir="/var/log/$pkgname" \
|
||||||
--bindir=/usr/bin
|
--bindir=/usr/bin
|
||||||
|
|
||||||
make
|
make
|
||||||
|
cd contrib
|
||||||
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -m755 "$pkgdir/etc"
|
install -d "$pkgdir/etc/$pkgname"
|
||||||
|
install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||||
cd "$pkgname-$pkgver"
|
install -Dm644 $pkgname.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
|
||||||
|
cd $pkgname-$pkgver
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
|
install -d "$pkgdir/usr/share/$pkgname/modules/contrib/"
|
||||||
|
cp contrib/.libs/*.so "$pkgdir/usr/share/$pkgname/modules/contrib/"
|
||||||
}
|
}
|
||||||
|
|
||||||
sha1sums=('fa1645495c765cf921726b65172ff5eceeea008a')
|
sha1sums=('fa1645495c765cf921726b65172ff5eceeea008a'
|
||||||
|
'84fb85e7c8b858e8e11be11e8abe60e3cada3c80'
|
||||||
|
'3dd5270ced5243adf4dde43ef11c3a0a68001240')
|
||||||
|
|
1
ircd-ratbox.conf
Normal file
1
ircd-ratbox.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
d /var/log/ircd-ratbox 0770 ircd ircd -
|
33
ircd-ratbox.install
Normal file
33
ircd-ratbox.install
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
post_upgrade() {
|
||||||
|
systemd-tmpfiles --create ircd-ratbox.conf
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
Before starting the ircd, reload system modules by running:
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
If you haven't previously done so, copy /etc/ircd-ratbox/example.conf
|
||||||
|
to /etc/ircd-ratbox/ircd.conf and configure it to your needs carefully.
|
||||||
|
|
||||||
|
Once things are configured, you can start the ircd by running:
|
||||||
|
|
||||||
|
systemctl start ircd-ratbox
|
||||||
|
|
||||||
|
You can also have the ircd start automatically at boot by running:
|
||||||
|
|
||||||
|
systemctl enable ircd-ratbox
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
[[ ! `grep ircd /etc/passwd` ]] && useradd -r -U -s /bin/false -d / ircd && echo "Created 'ircd' user and group"
|
||||||
|
chown -R ircd.ircd /etc/ircd-ratbox
|
||||||
|
post_upgrade
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
[[ `grep ircd /etc/passwd` ]] && userdel ircd && echo "Removed 'ircd' user and group"
|
||||||
|
return 0
|
||||||
|
}
|
14
ircd-ratbox.service
Normal file
14
ircd-ratbox.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Ratbox IRC Daemon
|
||||||
|
Wants=network.target
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=ircd
|
||||||
|
Type=forking
|
||||||
|
GuessMainPID=yes
|
||||||
|
ExecStart=/usr/bin/ircd
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user