aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yam <alex@alexyam.com>2021-02-09 09:36:40 +1100
committerLeo <thinkabit.ukim@gmail.com>2021-02-28 09:21:28 +0000
commit833d6320e2b0a6c5ae7587f0e7521be0373ade4a (patch)
tree27d4f4e93f5f376152846a3477c81b9a57704834
parentab9928705fa70cca0bc8c69e6d492367aae8d59b (diff)
downloadaports-833d6320e2b0a6c5ae7587f0e7521be0373ade4a.tar.gz
aports-833d6320e2b0a6c5ae7587f0e7521be0373ade4a.tar.bz2
aports-833d6320e2b0a6c5ae7587f0e7521be0373ade4a.tar.xz
testing/unrealircd: new aport
https://www.unrealircd.org/ internet relay chat daemon (ircd)
-rwxr-xr-xtesting/unrealircd/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/unrealircd/APKBUILD b/testing/unrealircd/APKBUILD
new file mode 100755
index 0000000000..314e4ef840
--- /dev/null
+++ b/testing/unrealircd/APKBUILD
@@ -0,0 +1,60 @@
+# Contributor: Alex Yam <alex@alexyam.com>
+# Maintainer: Alex Yam <alex@alexyam.com>
+pkgname=unrealircd
+pkgver=5.0.8
+pkgrel=0
+pkgdesc="internet relay chat daemon (ircd)"
+url="https://www.unrealircd.org/"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="
+ argon2-dev
+ c-ares-dev
+ curl-dev
+ libnsl-dev
+ openssl-dev
+ pcre2-dev
+ tre-dev
+ "
+subpackages="$pkgname-doc"
+options="!check" # no test suite
+source="https://www.unrealircd.org/downloads/unrealircd-$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ # Patch ./configure to run without first running ./Config
+ sed -i 's/test "x$enable_dynamic_/test "$enable_dynamic_/' ./configure
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --enable-dynamic-linking \
+ --enable-ssl \
+ --with-bindir=/usr/bin \
+ --with-cachedir=/var/lib/unrealircd/cache \
+ --with-confdir=/etc/unrealircd \
+ --with-datadir=/var/lib/unrealircd/data \
+ --with-docdir=/usr/share/man/unrealircd \
+ --with-logdir=/var/log/unrealircd \
+ --with-modulesdir=/usr/lib/unrealircd/modules \
+ --with-nick-history=2000 \
+ --with-permissions=0600 \
+ --with-pidfile=/var/lib/unrealircd/run/unrealircd.pid \
+ --with-privatelibdir=/usr/lib/unrealircd/private_lib \
+ --with-scriptdir=/usr/lib/unrealircd/scripts \
+ --with-showlistmodes \
+ --with-tmpdir=/var/lib/unrealircd/tmp
+ make
+}
+
+package() {
+ mkdir -p $pkgdir/usr/lib/unrealircd/scripts
+ mkdir -p $pkgdir/var/lib/unrealircd/run
+ mkdir -p $pkgdir/usr/lib/unrealircd/private_lib
+ make DESTDIR="$pkgdir" install
+ #remove symlink to source
+ rm -v $pkgdir/usr/lib/unrealircd/scripts/source
+}
+
+sha512sums="45fc0758a870dbb9c3ff55fc7029d1ecff9dcf65680f31ff331f012efbf9c9bffa60a6fe27b9bab69302d26b8293a1089cfaf1c550a3f2802a549f25e4644770 unrealircd-5.0.8.tar.gz"