initial import
This commit is contained in:
84
ngircd/PKGBUILD
Normal file
84
ngircd/PKGBUILD
Normal file
@@ -0,0 +1,84 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=ngircd
|
||||
pkgver=26.1
|
||||
_debver=$pkgver
|
||||
_debrel=1
|
||||
pkgrel=1
|
||||
pkgdesc="Next Generation IRC Daemon"
|
||||
arch=('i686' 'x86_64')
|
||||
backup=('etc/ngircd.conf')
|
||||
url='https://ngircd.barton.de/'
|
||||
license=('GPL-2')
|
||||
depends=('libressl' 'libident' 'zlib')
|
||||
makedepends=('quilt')
|
||||
source=("https://ngircd.barton.de/pub/ngircd/ngircd-$pkgver.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/n/ngircd/ngircd_${_debver}-${_debrel}+deb11u1.debian.tar.xz"
|
||||
"ngircd.initd"
|
||||
"ngircd.run")
|
||||
sha512sums=('4a3ee379dd8d8655a71134c745f750359ceb0512e184db555f65f2bcab68087480365a35680a9ec75b1e6eb0fef23e1cbe0a0e13c3c58d211e5a520a8eeaa71c'
|
||||
'05632606c36d3e7e1fe1d0ce2dba1c4de7e3ea4f7dff40b3b487bf2fce382c34dab6142bba002c8d90444d7665339690e73b1cc68565740402880b8025edfca5'
|
||||
'016389f74d3bab61ca3a88c989a92fd4c30293395df2733343fdc91ab71d48a27769ffdbe79fa582ebb9a0d7da5194f7c58a201b62d0040f6c885c3bef48c8c8'
|
||||
'35909cb2706b09617365746486f9f9475ecf20f11298464e3e3680a755886ce7ed64bc93e87207adf082f686b19397f73b8952a978094bcacc325691bb963f97')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
# Doesn't apply
|
||||
rm -v debian/patches/0001-Respect-SSLConnect-option-for-incoming-connections.patch || true
|
||||
rm -v debian/patches/0001-S2S-SSL-GnuTLS-Enable-CRL-verification_26.1.patch || true
|
||||
rm -v debian/patches/0002-Support-for-server-certificate-validation-on-server-.patch || true
|
||||
rm -v debian/patches/0003-S2S-TLS-Add-missing-CAFile-and-CRLFile-options-to-co.patch || true
|
||||
rm -v debian/patches/0004-S2S-TLS-Remove-leftover-debug-messages.patch || true
|
||||
rm -v debian/patches/0005-S2S-TLS-OpenSSL-Always-setup-host-name-verification.patch || true
|
||||
rm -v debian/patches/0006-S2S-TLS-OpenSSL-Set-the-verification-flags-only-once.patch || true
|
||||
rm -v debian/patches/0007-S2S-TLS-OpenSSL-Fix-handling-of-certificate-informat.patch || true
|
||||
rm -v debian/patches/0008-S2S-TLS-OpenSSL-Postpone-verification-of-TLS-session.patch || true
|
||||
rm -v debian/patches/0009-S2S-TLS-OpenSSL-Streamline-logging.patch || true
|
||||
rm -v debian/patches/0010-S2S-TLS-Fix-formatting-and-sort-new-SSL-options-in-n.patch || true
|
||||
rm -v debian/patches/0011-S2S-TLS-MAX_CERT_CHAIN_LENGTH-is-only-used-by-OpenSS.patch || true
|
||||
rm -v debian/patches/0012-S2S-TLS-GnuTLS-Update-SSL-code-for-GnuTLS-certificat.patch || true
|
||||
rm -v debian/patches/0013-S2S-TLS-GnuTLS-Fix-handling-of-certificate-informati.patch || true
|
||||
rm -v debian/patches/0014-S2S-TLS-GnuTLS-Streamline-logging.patch || true
|
||||
rm -v debian/patches/0015-S2S-TLS-Verify-the-TLS-certificates-by-default.patch || true
|
||||
rm -v debian/patches/0016-S2S-TLS-GnuTLS-Fix-handling-of-connections-without-p.patch || true
|
||||
rm -v debian/patches/0017-S2S-TLS-Convert-SSL.txt-to-Markdown-and-update-infor.patch || true
|
||||
rm -v debian/patches/0018-S2S-TLS-Add-notice-to-INSTALL.md.patch || true
|
||||
rm -v debian/patches/0019-S2S-TLS-Fix-make-check-in-separate-build-directory.patch || true
|
||||
rm -v debian/patches/0020-METADATA-Fix-unsetting-cloakhost.patch || true
|
||||
rm -v debian/patches/1713563399.rel-27-rc1-6-g3e3f6cbe.clarify-that-cafile-is-not-set-by-default.patch || true
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--with-ident \
|
||||
--with-openssl \
|
||||
--with-pam=no \
|
||||
--enable-ipv6
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
install -Dm755 "${srcdir}/ngircd.initd" "${pkgdir}/etc/init.d/ngircd"
|
||||
install -Dm755 "${srcdir}/ngircd.run" "${pkgdir}/etc/sv/ngircd/run"
|
||||
}
|
||||
Reference in New Issue
Block a user