diff options
author | rany | 2021-11-19 01:09:28 +0200 |
---|---|---|
committer | rany | 2021-11-19 01:09:28 +0200 |
commit | 208e2958202a8def0934f4af8368522bb2642a41 (patch) | |
tree | e7b46d941b520479b42087d739438ccd39e13f85 | |
download | aur-208e2958202a8def0934f4af8368522bb2642a41.tar.gz |
inital release
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 86 | ||||
-rw-r--r-- | install.pl | 5 | ||||
-rw-r--r-- | pissircd.install | 9 | ||||
-rw-r--r-- | pissircd.service | 12 | ||||
-rw-r--r-- | pissircd.sysusers.d | 1 | ||||
-rw-r--r-- | pissircd.tmpfiles.d | 5 |
7 files changed, 148 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d9b47161f7c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = pissircd-git + pkgdesc = PissIRCd is an Open Source IRC Server meant for serving pissnet + pkgver = r9061.193da4738 + pkgrel = 3 + url = https://github.com/pissnet/pissircd + install = pissircd.install + arch = x86_64 + license = GPL2 + depends = openssl + depends = curl + depends = c-ares + depends = tre + depends = pcre2 + depends = libnsl + depends = argon2 + provides = pissircd + conflicts = pissircd + backup = etc/pissircd/unrealircd.conf + source = git+https://github.com/pissnet/pissircd.git + source = pissircd.service + source = pissircd.tmpfiles.d + source = pissircd.sysusers.d + source = install.pl + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = pissircd-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f84047594b20 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,86 @@ +# Maintainer: rany at riseup dot net + +pkgname=pissircd-git +pkgver=r9061.193da4738 +pkgrel=3 +pkgdesc="PissIRCd is an Open Source IRC Server meant for serving pissnet" +arch=('x86_64') +url="https://github.com/pissnet/pissircd" +license=('GPL2') +conflicts=('pissircd') +provides=('pissircd') +depends=('openssl' 'curl' 'c-ares' 'tre' 'pcre2' 'libnsl' 'argon2') +backup=('etc/pissircd/unrealircd.conf') +install=pissircd.install +source=("git+https://github.com/pissnet/pissircd.git" + pissircd.service + pissircd.tmpfiles.d + pissircd.sysusers.d + install.pl) +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') + +pkgver() { + cd "pissircd" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "pissircd" + sed -i \ + -e 's|$(INSTALL) -m 0700|$(INSTALL) -m 0755|g' \ + -e 's|$(INSTALL) -m 0600|$(INSTALL) -m 0644|g' \ + Makefile.in + sed -i \ + -e 's|@BINDIR@/unrealircd|@BINDIR@/pissircd|g' \ + -e 's|echo \"unrealircd|echo \"pissircd|g' \ + -e 's|UnrealIRCd|pissircd|g' \ + unrealircd.in +} + +build() { + cd "pissircd" + ./autogen.sh + ./configure \ + --with-pidfile=/run/pissircd/ircd.pid \ + --with-showlistmodes \ + --enable-ssl=/usr \ + --with-bindir=/usr/bin \ + --with-datadir=/var/lib/pissircd \ + --with-confdir=/etc/pissircd \ + --with-modulesdir=/usr/lib/pissircd \ + --with-logdir=/var/log/pissircd \ + --with-cachedir=/var/cache/pissircd \ + --with-docdir=/usr/share/doc/pissircd \ + --with-tmpdir=/tmp \ + --with-scriptdir=/usr \ + --with-nick-history=2000 \ + --with-sendq=3000000 \ + --with-permissions=0644 \ + --with-fd-setsize=1024 \ + --enable-dynamic-linking + make +} + +package() { + cd "pissircd" + + export pkgdir + mkdir -p "$pkgdir"/etc/pissircd/tls + touch "$pkgdir"/etc/pissircd/tls/server.cert.pem +# make INSTALL="$srcdir"/install.pl install DESTDIR="$pkgdir" + make install DESTDIR="$pkgdir" + mv "$pkgdir"/usr/unrealircd "$pkgdir"/etc/pissircd/pissircd + cp "$pkgdir"/etc/pissircd/examples/example.conf "$pkgdir"/etc/pissircd/unrealircd.conf + rm -rf "$pkgdir"/tmp "$pkgdir"/etc/pissircd/tls/server.cert.pem + + install -Dm0644 "$srcdir"/pissircd.service "$pkgdir"/usr/lib/systemd/system/pissircd.service + install -Dm0644 "$srcdir"/pissircd.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/pissircd.conf + install -Dm0644 "$srcdir"/pissircd.sysusers.d "$pkgdir"/usr/lib/sysusers.d/pissircd.conf + + mv "$pkgdir"/usr/bin/{unrealircd,pissircd} + mv "$pkgdir"/usr/bin/{unrealircd,pissircd}-upgrade-script +} diff --git a/install.pl b/install.pl new file mode 100644 index 000000000000..b06175edd00b --- /dev/null +++ b/install.pl @@ -0,0 +1,5 @@ +#!/usr/bin/perl -w +use Env qw(pkgdir); +my $last = pop @ARGV; +my $cmd = "/usr/bin/install ".(join ' ',@ARGV)." $pkgdir/$last"; +system($cmd); diff --git a/pissircd.install b/pissircd.install new file mode 100644 index 000000000000..47ef9b623aea --- /dev/null +++ b/pissircd.install @@ -0,0 +1,9 @@ +post_install() { + echo "SSL is enabled by default, so you need to create pem files" + echo "unrealircd.conf needs adjustments" + echo "See also: https://wiki.archlinux.org/index.php/UnrealIRCd" +} + +post_upgrade() { + post_install +} diff --git a/pissircd.service b/pissircd.service new file mode 100644 index 000000000000..1a4cb20eee73 --- /dev/null +++ b/pissircd.service @@ -0,0 +1,12 @@ +[Unit] +Description=IRC daemon +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +User=ircd +PIDFile=/run/pissircd/ircd.pid +ExecStart=/usr/bin/pissircd + +[Install] +WantedBy=multi-user.target diff --git a/pissircd.sysusers.d b/pissircd.sysusers.d new file mode 100644 index 000000000000..a382ade78d46 --- /dev/null +++ b/pissircd.sysusers.d @@ -0,0 +1 @@ +u ircd - "IRC daemon" /var/empty diff --git a/pissircd.tmpfiles.d b/pissircd.tmpfiles.d new file mode 100644 index 000000000000..f60aa4045861 --- /dev/null +++ b/pissircd.tmpfiles.d @@ -0,0 +1,5 @@ +d /run/pissircd 0755 ircd root - +Z /etc/pissircd - ircd ircd +Z /var/cache/pissircd - ircd ircd +Z /var/log/pissircd - ircd ircd +Z /var/lib/pissircd - ircd ircd |