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 }}."
|
34
PKGBUILD
34
PKGBUILD
|
@ -1,5 +1,5 @@
|
|||
# vim: ft=sh
|
||||
# % Trigger: 32489271948127389 %
|
||||
# Author: Kevin MacMartin <prurigro@gmail.com>
|
||||
# Imported for use on https://code.fleshless.org
|
||||
|
||||
pkgname=ircd-ratbox
|
||||
pkgver=3.0.10
|
||||
|
@ -10,25 +10,37 @@ license=( 'GPL' )
|
|||
depends=('openssl' 'sqlite' 'libtool')
|
||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
||||
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() {
|
||||
cd "$pkgname-$pkgver"
|
||||
./configure --prefix=/usr/share/"$pkgname" \
|
||||
--with-confdir=/etc/"$pkgname" \
|
||||
--with-logdir=/var/log/"$pkgname" \
|
||||
|
||||
./configure --prefix="/usr/share/$pkgname" \
|
||||
--with-confdir="/etc/$pkgname" \
|
||||
--with-logdir="/var/log/$pkgname" \
|
||||
--bindir=/usr/bin
|
||||
|
||||
make
|
||||
cd contrib
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -m755 "$pkgdir/etc"
|
||||
|
||||
cd "$pkgname-$pkgver"
|
||||
install -d "$pkgdir/etc/$pkgname"
|
||||
install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||
install -Dm644 $pkgname.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
|
||||
cd $pkgname-$pkgver
|
||||
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